/*!
 * Digital Integrity Pledge — styles. Author: ALSA IT — https://alsait.com/
 * Bundled fonts: Noto Sans Bengali, Anek Bangla, Galada (SIL Open Font License 1.1).
 */
@font-face {
	font-family: "DIP Bangla";
	src: url("../fonts/dip-bangla-bengali.woff2") format("woff2-variations"), url("../fonts/dip-bangla-bengali.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "DIP Bangla";
	src: url("../fonts/dip-bangla-latin.woff2") format("woff2-variations"), url("../fonts/dip-bangla-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Certificate display fonts: Anek Bangla & Galada (SIL OFL 1.1) */
@font-face {
	font-family: "DIP Anek";
	src: url("../fonts/dip-anek-bengali.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "DIP Anek";
	src: url("../fonts/dip-anek-latin.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DIP Galada";
	src: url("../fonts/dip-galada-bengali.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "DIP Galada";
	src: url("../fonts/dip-galada-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dip-app {
	--dip-navy: #0d2f73;
	--dip-blue: #1450b6;
	--dip-ink: #14213d;
	--dip-muted: #5b6478;
	--dip-gold: #c99e30;
	--dip-gold-light: #f3d77a;
	--dip-green: #13803f;
	--dip-red: #b3141e;
	--dip-line: #d9e2f0;
	--dip-radius: 18px;
	font-family: "DIP Bangla", "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", system-ui, sans-serif;
	color: var(--dip-ink);
	line-height: 1.6;
	max-width: 920px;
	margin: 24px auto;
	-webkit-font-smoothing: antialiased;
}
.dip-app *, .dip-app *::before, .dip-app *::after { box-sizing: border-box; }
.dip-app [hidden] { display: none !important; }
.dip-app h2, .dip-app h3, .dip-app h4 { font-family: inherit; line-height: 1.3; margin: 0; }
.dip-app button { font-family: inherit; }

/* ---------- hero ---------- */
.dip-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	color: #fff;
	padding: 34px 24px 30px;
	border-radius: 24px;
	background:
		radial-gradient(circle at 15% 10%, rgba(255,255,255,.16), transparent 40%),
		radial-gradient(circle at 90% 90%, rgba(243,215,122,.18), transparent 45%),
		linear-gradient(135deg, #0a2766 0%, #1450b6 60%, #0d3a8f 100%);
	box-shadow: 0 18px 40px rgba(13, 47, 115, .25);
	border: 3px solid transparent;
	background-clip: padding-box;
}
.dip-hero::after {
	content: ""; position: absolute; inset: 8px; border-radius: 18px;
	border: 1.5px solid rgba(243, 215, 122, .55); pointer-events: none;
}
.dip-hero__logo { width: 96px; height: auto; background: #fff; border-radius: 50%; padding: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.dip-hero__event { margin: 14px 0 4px; color: var(--dip-gold-light); font-weight: 700; letter-spacing: .2px; }
.dip-hero__title { color: #fff !important; font-size: clamp(28px, 5.4vw, 44px) !important; font-weight: 800 !important; }
.dip-hero__lead { margin: 10px auto 0; max-width: 560px; opacity: .92; font-size: 16px; }
.dip-counter {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
	background: #fff; color: var(--dip-navy); border-radius: 999px; padding: 10px 20px;
	font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.dip-counter strong { font-size: 20px; color: var(--dip-blue); }
.dip-counter__dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: dip-pulse 1.8s infinite; }
@keyframes dip-pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- stepper ---------- */
.dip-stepper { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; counter-reset: none; }
.dip-stepper li {
	flex: 1; display: flex; align-items: center; gap: 10px; margin: 0;
	padding: 10px 14px; border-radius: 14px; background: #eef3fb; color: var(--dip-muted); font-weight: 700; font-size: 15px;
	transition: background .25s, color .25s;
}
.dip-stepper li span {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; border: 2px solid #c8d5ea; color: var(--dip-muted); font-size: 15px;
}
.dip-stepper li em { font-style: normal; }
.dip-stepper li.is-active { background: var(--dip-navy); color: #fff; }
.dip-stepper li.is-active span { border-color: var(--dip-gold-light); color: var(--dip-navy); }
.dip-stepper li.is-done { background: #e3f4ea; color: var(--dip-green); }
.dip-stepper li.is-done span { border-color: var(--dip-green); background: var(--dip-green); color: #fff; }

/* ---------- cards & form ---------- */
.dip-card {
	background: #fff; border: 1px solid var(--dip-line); border-radius: var(--dip-radius);
	padding: 28px; margin: 18px 0; box-shadow: 0 10px 30px rgba(13, 47, 115, .07);
	animation: dip-in .35s ease;
}
@keyframes dip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.dip-field { margin: 0 0 18px; }
.dip-field label { display: block; font-weight: 700; margin: 0 0 7px; color: var(--dip-ink); font-size: 16px; }
.dip-req { color: var(--dip-red); }
.dip-app .dip-field input, .dip-app .dip-field select, .dip-verify__form input {
	display: block; width: 100%; min-height: 52px; margin: 0;
	padding: 12px 15px; font: inherit; font-size: 16px; color: var(--dip-ink);
	background: #fbfcfe; border: 1.5px solid #c9d4e6; border-radius: 12px;
	box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none; appearance: none;
}
.dip-app .dip-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230d2f73' stroke-width='2' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.dip-app .dip-field input:focus, .dip-app .dip-field select:focus, .dip-verify__form input:focus {
	outline: none; border-color: var(--dip-blue); background: #fff; box-shadow: 0 0 0 4px rgba(20, 80, 182, .14);
}
.dip-app .dip-field select:disabled { background-color: #f0f3f8; color: #8a93a6; }
.dip-field.has-error input, .dip-field.has-error select { border-color: var(--dip-red); }
.dip-error { color: var(--dip-red); font-size: 14px; margin: 6px 0 0; }
.dip-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 15px; cursor: pointer; }
.dip-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--dip-navy); }
.dip-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.dip-privacy { font-size: 14px; color: var(--dip-muted); background: #f3f7fd; border-radius: 10px; padding: 10px 14px; margin: 0 0 6px; }

/* ---------- buttons ---------- */
.dip-app .dip-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	min-height: 54px; margin: 14px 0 0; padding: 14px 20px; border-radius: 14px; border: 2px solid transparent;
	font-size: 18px; font-weight: 800; line-height: 1.2; cursor: pointer; text-decoration: none; text-transform: none; letter-spacing: 0;
	transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.dip-app .dip-btn:active { transform: translateY(1px); }
.dip-app .dip-btn:disabled { opacity: .55; cursor: not-allowed; }
.dip-app .dip-btn svg { width: 22px; height: 22px; }
.dip-app .dip-btn--primary { background: linear-gradient(180deg, #1c5fc4, #0d2f73); color: #fff; box-shadow: 0 8px 20px rgba(13,47,115,.28); border-color: rgba(243,215,122,.6); }
.dip-app .dip-btn--primary:hover { box-shadow: 0 10px 26px rgba(13,47,115,.38); color: #fff; }
.dip-app .dip-btn--xl { min-height: 62px; font-size: 21px; }
.dip-app .dip-btn--ghost { background: transparent; color: var(--dip-navy); border-color: #c9d4e6; font-size: 16px; min-height: 48px; }
.dip-app .dip-btn--outline { background: #fff; color: var(--dip-navy); border-color: var(--dip-navy); font-size: 16px; margin: 0; }
.dip-app .dip-btn--outline:hover { background: #eef3fb; color: var(--dip-navy); }
.dip-app .dip-btn--share { background: linear-gradient(180deg, #17924a, #0d6b33); color: #fff; box-shadow: 0 8px 20px rgba(19,128,63,.3); }
.dip-app .dip-btn--share:hover { color: #fff; }
.dip-app .dip-btn--gold { background: linear-gradient(90deg, #d3a12a, #f3d77a, #d3a12a); color: #3b2a05; box-shadow: 0 6px 16px rgba(201,158,48,.35); }

/* ---------- step 2 ---------- */
.dip-person { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #f3f7fd; border-radius: 14px; }
.dip-person__avatar { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.dip-person strong { display: block; font-size: 20px; color: var(--dip-navy); }
.dip-person small { display: block; color: var(--dip-muted); font-size: 14px; }
.dip-oath {
	margin: 18px 0 6px; padding: 24px; border-radius: 16px; text-align: center;
	background: linear-gradient(180deg, #fffdf5, #fff); border: 2px solid var(--dip-gold);
	box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(201,158,48,.35);
}
.dip-oath h3 { color: var(--dip-gold); font-size: 18px; letter-spacing: .5px; }
.dip-app .dip-oath blockquote { margin: 12px 0 0; padding: 0; border: 0; font-size: clamp(19px, 3vw, 25px); font-weight: 700; color: var(--dip-ink); font-style: normal; quotes: none; background: none; }
.dip-turnstile { display: flex; justify-content: center; margin-top: 16px; min-height: 65px; }

/* ---------- step 3 ---------- */
.dip-success { display: flex; gap: 14px; align-items: flex-start; }
.dip-success__icon { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--dip-green); color: #fff; font-size: 26px; font-weight: 800; }
.dip-success h3 { color: var(--dip-green); font-size: 21px; }
.dip-success p { margin: 4px 0 0; color: var(--dip-muted); }
.dip-cert-frame { margin: 20px 0 0; border-radius: 14px; overflow: hidden; background: #eef3fb; aspect-ratio: 3 / 2; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(13,47,115,.18); }
.dip-cert-frame img { display: block; width: 100%; height: auto; -webkit-touch-callout: default; user-select: auto; }
.dip-cert-loading { display: flex; align-items: center; gap: 10px; color: var(--dip-navy); font-weight: 700; padding: 20px; }
.dip-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #c9d4e6; border-top-color: var(--dip-navy); animation: dip-spin .8s linear infinite; }
@keyframes dip-spin { to { transform: rotate(360deg); } }
.dip-inapp { margin: 12px 0 0; padding: 12px 14px; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 12px; font-size: 14px; color: #5c4510; }

.dip-social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.dip-app .dip-social__btn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 66px; margin: 0;
	border: 0; border-radius: 14px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px;
	transition: transform .15s, opacity .2s, box-shadow .2s;
}
.dip-app .dip-social__btn svg { width: 24px; height: 24px; }
.dip-app .dip-social__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); color: #fff; }
.dip-app .dip-social__btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.dip-social__btn--fb { background: #1877f2; }
.dip-social__btn--wa { background: #1fa855; }
.dip-social__btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.dip-social__btn--x { background: #111; }
.dip-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

.dip-caption { margin-top: 16px; border: 1.5px dashed #c9d4e6; border-radius: 14px; padding: 12px 16px; background: #fbfcfe; }
.dip-caption__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--dip-muted); font-weight: 700; }
.dip-app .dip-caption__head button, .dip-app .dip-verify-line button {
	border: 1.5px solid var(--dip-navy); background: #fff; color: var(--dip-navy); border-radius: 10px; padding: 6px 12px; margin: 0;
	font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.3; min-height: 0;
}
.dip-caption p { margin: 6px 0 0; font-size: 17px; font-weight: 700; color: var(--dip-ink); word-break: break-word; }
.dip-verify-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 16px; background: #f3f7fd; border-radius: 12px; font-size: 15px; }
.dip-verify-line strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; color: var(--dip-navy); }
.dip-app .dip-link-btn { display: block; margin: 14px auto 0; padding: 4px; background: none; border: 0; color: var(--dip-muted); text-decoration: underline; font-size: 14px; cursor: pointer; }

.dip-toast {
	position: fixed; left: 50%; bottom: 22px; z-index: 99999; transform: translate(-50%, 20px);
	max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px; background: #0d2f73; color: #fff;
	font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; transition: opacity .25s, transform .25s; text-align: center;
}
.dip-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- verify ---------- */
.dip-verify { background: #fff; border: 1px solid var(--dip-line); border-radius: var(--dip-radius); padding: 28px; box-shadow: 0 10px 30px rgba(13,47,115,.07); }
.dip-verify h2 { color: var(--dip-navy); font-size: 26px; }
.dip-verify > p { color: var(--dip-muted); margin: 6px 0 16px; }
.dip-verify__form { display: flex; gap: 10px; }
.dip-verify__form input { flex: 1; min-width: 0; text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .5px; }
.dip-app .dip-verify__form .dip-btn { width: auto; margin: 0; white-space: nowrap; }
.dip-verify__result { margin-top: 16px; }
.dip-alert { padding: 18px 20px; border-radius: 14px; }
.dip-alert h3 { font-size: 21px; margin-bottom: 8px; }
.dip-alert p { margin: 4px 0; }
.dip-alert--good { background: #e7f6ed; color: #0f5e30; border: 1px solid #b8e2c8; }
.dip-alert--bad { background: #fdecec; color: #8b1c1c; border: 1px solid #f3c2c2; }

/* ---------- LED dashboard ---------- */
.dip-dashboard {
	max-width: none; margin: 0; min-height: 100vh; padding: clamp(18px, 3vw, 44px);
	display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: auto 1fr; gap: clamp(16px, 2.5vw, 34px);
	color: #fff; border-radius: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(40,110,220,.45), transparent 50%),
		radial-gradient(circle at 85% 80%, rgba(201,158,48,.22), transparent 45%),
		linear-gradient(135deg, #061a45, #0b2f73 55%, #071d4d);
}
.dip-dash__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.dip-dash__head img { width: clamp(60px, 6vw, 96px); height: auto; background: #fff; border-radius: 50%; padding: 8px; }
.dip-dash__head h2 { color: #fff; font-size: clamp(24px, 3vw, 46px); font-weight: 800; }
.dip-dash__head p { margin: 2px 0 0; color: var(--dip-gold-light); font-size: clamp(15px, 1.6vw, 24px); font-weight: 700; }
.dip-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: rgba(239,68,68,.15); border: 1.5px solid #ef4444; color: #fecaca; padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: 1px; }
.dip-app .dip-fs { margin-left: 10px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.dip-dashboard:fullscreen { overflow: auto; }
.dip-dashboard:fullscreen .dip-fs { display: none; }
.dip-live i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; animation: dip-blink 1s infinite; }
@keyframes dip-blink { 50% { opacity: .25; } }
.dip-dash__count { align-self: center; text-align: center; padding: clamp(20px, 3vw, 40px); border-radius: 28px; background: rgba(255,255,255,.06); border: 2px solid rgba(243,215,122,.45); box-shadow: inset 0 0 60px rgba(0,0,0,.25); }
.dip-dash__count small { font-size: clamp(18px, 2vw, 30px); opacity: .85; }
.dip-dash__count strong { display: block; font-size: clamp(72px, 13vw, 220px); line-height: 1.05; font-weight: 800; color: #fff; text-shadow: 0 0 40px rgba(243,215,122,.45); font-variant-numeric: tabular-nums; }
.dip-dash__count h3 { color: var(--dip-gold-light); font-size: clamp(22px, 2.8vw, 44px); font-weight: 800; }
.dip-dash__today { margin: 10px 0 0; font-size: clamp(16px, 1.6vw, 26px); opacity: .9; }
.dip-dash__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dip-dash__qr { background: #fff; color: var(--dip-navy); border-radius: 24px; padding: 20px; text-align: center; border: 4px solid var(--dip-gold); }
.dip-dash__qr h4 { font-size: clamp(18px, 1.8vw, 28px); font-weight: 800; }
.dip-dash__qr p { margin: 6px 0 0; font-weight: 700; color: var(--dip-green); }
.dip-dash__qr [data-dip-qr] { display: flex; justify-content: center; padding: 8px 0; }
.dip-dash__qr canvas { width: min(100%, 260px); height: auto; image-rendering: pixelated; }
.dip-dash__recent { flex: 1; background: rgba(255,255,255,.07); border-radius: 22px; padding: 18px; overflow: hidden; }
.dip-dash__recent h4 { color: var(--dip-gold-light); font-size: clamp(17px, 1.6vw, 24px); margin-bottom: 8px; }
.dip-dash__recent ul { list-style: none; margin: 0; padding: 0; }
.dip-dash__recent li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; margin: 8px 0; border-radius: 12px; background: rgba(255,255,255,.08); animation: dip-in .4s ease; }
.dip-dash__recent li strong { font-size: clamp(15px, 1.4vw, 21px); }
.dip-dash__recent li small { opacity: .75; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
	.dip-app { margin: 12px auto; }
	.dip-hero { padding: 26px 16px 22px; border-radius: 18px; }
	.dip-hero__logo { width: 78px; }
	.dip-card, .dip-verify { padding: 20px 16px; }
	.dip-grid { grid-template-columns: 1fr; }
	.dip-stepper li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 13px; text-align: center; }
	.dip-social { grid-template-columns: repeat(2, 1fr); }
	.dip-downloads { grid-template-columns: 1fr; }
	.dip-verify__form { flex-direction: column; }
	.dip-app .dip-verify__form .dip-btn { width: 100%; }
	.dip-dashboard { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.dip-app *, .dip-app *::before, .dip-app *::after { animation: none !important; transition: none !important; }
}
