/* Durood Pak Campaign — v1.3. Fluid, compact, RTL.
   Every rule is scoped under .dpc-root so Elementor / theme styles cannot leak in.
   Sizes use clamp() so the same markup fits a 320px phone and a half-width desktop column. */

html body.dpc-body { margin: 0; background: #04231B; }

.dpc-root {
	--em: #0B3B2E; --em-d: #04231B; --jade: #1F8A70;
	--gold: #E2B857; --gold-l: #F3DFA6; --cream: #FBF6EA; --soft: #CFE0D2;
	position: relative; width: 100%; max-width: 100%; min-width: 0; color: #fff; text-align: start;
	font-family: 'Noto Nastaliq Urdu', 'Poppins', serif; font-size: 16px; line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}
.dpc-root *, .dpc-root *::before, .dpc-root *::after { box-sizing: border-box; }
.dpc-root h1, .dpc-root h2, .dpc-root p { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; }
.dpc-root svg { max-width: 100%; }

/* ---- full page ([durood_campaign]) ---- */
.dpc-root.dpc-full {
	min-height: 100vh; overflow: hidden;
	background: radial-gradient(800px 420px at 50% -6%, rgba(243, 223, 166, .16) 0%, transparent 60%),
		linear-gradient(180deg, #0B3B2E 0%, #04231B 100%);
}
.dpc-pattern {
	position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23E2B857' stroke-width='1'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/g%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(#000 0%, transparent 70%);
	mask-image: linear-gradient(#000 0%, transparent 70%);
}
.dpc-root .dpc-wrap { position: relative; max-width: 960px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) clamp(14px, 4vw, 28px) 28px; }
.dpc-root .dpc-head { text-align: center; }
.dpc-root .dpc-bismillah {
	color: var(--gold); font-size: clamp(16px, 2.6vw, 22px); line-height: 2.1;
	display: flex; align-items: center; justify-content: center; gap: 10px;
}
.dpc-root .dpc-bismillah::before, .dpc-root .dpc-bismillah::after {
	content: ""; height: 1px; width: 28px; background: linear-gradient(90deg, transparent, var(--gold));
}
.dpc-root .dpc-bismillah::after { transform: scaleX(-1); }
.dpc-root .dpc-title { font-size: clamp(25px, 5vw, 40px); font-weight: 700; line-height: 1.9; color: #fff; }
.dpc-root .dpc-targetline { font-size: clamp(16px, 2.4vw, 20px); line-height: 2; color: var(--soft); }
.dpc-root .dpc-targetline strong { color: var(--gold-l); font-weight: 700; }
.dpc-root .dpc-desc { display: none; max-width: 520px; margin: 4px auto 0; font-size: 15px; line-height: 2.1; color: var(--soft); }
.dpc-root .dpc-main { margin-top: 12px; display: grid; gap: 12px; }
.dpc-root .dpc-reached { margin-top: 14px; text-align: center; color: var(--gold-l); font-size: 16px; line-height: 2; }
.dpc-root .dpc-sharewrap { margin-top: 12px; }

/* ---- progress panel ---- */
.dpc-root .dpc-panel {
	display: grid; grid-template-columns: clamp(72px, 22vw, 126px) minmax(0, 1fr); gap: clamp(10px, 3vw, 20px); align-items: center;
	width: 100%; padding: clamp(12px, 3.4vw, 20px); border-radius: clamp(18px, 4vw, 24px); color: #fff;
	background: radial-gradient(260px 160px at 85% 0%, rgba(31, 138, 112, .35), transparent 70%),
		linear-gradient(160deg, #0B3B2E 0%, #04231B 100%);
	border: 1px solid rgba(226, 184, 87, .55);
	box-shadow: 0 10px 26px rgba(4, 35, 27, .28);
}
.dpc-root .dpc-dome svg { width: 100%; height: auto; display: block; overflow: visible; }
.dpc-root .dpc-line { stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.dpc-root .dpc-soft { fill: rgba(226, 184, 87, .10); }
.dpc-root .dpc-fillrect { transform: translateY(176px); transition: transform 2.2s cubic-bezier(.2, .7, .2, 1); }

.dpc-root .dpc-nums { min-width: 0; }
.dpc-root .dpc-label { display: block; font-size: clamp(11px, 2.9vw, 13px); line-height: 2; color: var(--soft); }
.dpc-root .dpc-total {
	font-family: 'Poppins', sans-serif; font-weight: 600; direction: ltr; text-align: center;
	font-size: clamp(19px, 6.4vw, 34px); line-height: 1.2; color: var(--gold-l); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dpc-root .dpc-bar { height: clamp(7px, 1.8vw, 10px); margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dpc-root .dpc-bar i {
	display: block; height: 100%; width: 0; border-radius: 99px;
	background: linear-gradient(90deg, #1F8A70, #E2B857 70%, #F3DFA6);
	transition: width 2.2s cubic-bezier(.2, .7, .2, 1);
}
.dpc-root .dpc-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dpc-root .dpc-mini > div { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 2px 6px 6px; text-align: center; min-width: 0; }
.dpc-root .dpc-mini b { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(13px, 4vw, 18px); line-height: 1.4; direction: ltr; color: #fff; white-space: nowrap; }

/* ---- contribution card + share card ---- */
.dpc-root .dpc-card, .dpc-root .dpc-share {
	position: relative; width: 100%; padding: clamp(16px, 4vw, 24px) clamp(14px, 3.6vw, 22px) 14px; border-radius: clamp(18px, 4vw, 24px);
	background: var(--cream); color: var(--em-d);
	border: 1px solid rgba(226, 184, 87, .7);
	box-shadow: 0 12px 30px rgba(4, 35, 27, .22);
}
.dpc-root .dpc-card::before, .dpc-root .dpc-share::before {
	content: ""; position: absolute; inset: 6px; border-radius: 16px; pointer-events: none;
	border: 1px solid rgba(226, 184, 87, .6);
}
.dpc-root .dpc-card h2, .dpc-root .dpc-share h2 { font-family: 'Noto Nastaliq Urdu', serif; font-size: clamp(19px, 4.6vw, 24px); font-weight: 700; line-height: 2; text-align: center; color: var(--em); }
.dpc-root .dpc-sub { text-align: center; font-size: clamp(13px, 3.4vw, 15px); line-height: 2.1; color: #3d5a4e; }

.dpc-root .dpc-card input.dpc-qty[type="text"] {
	display: block; width: 100%; height: clamp(54px, 13vw, 66px); margin: 8px 0 0; padding: 0 12px;
	border: 2px solid var(--gold); border-radius: 14px; background: #fff; color: var(--em);
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(24px, 7vw, 30px); line-height: 1; text-align: center; direction: ltr;
	outline: none; box-shadow: none; -webkit-appearance: none; appearance: none;
	transition: box-shadow .2s, border-color .2s;
}
.dpc-root .dpc-card input.dpc-qty[type="text"]::placeholder { color: #b9c6bd; }
.dpc-root .dpc-card input.dpc-qty[type="text"]:focus { box-shadow: 0 0 0 4px rgba(226, 184, 87, .35); border-color: #C99A33; background: #fff; color: var(--em); }
.dpc-root .dpc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.dpc-root .dpc-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; margin-top: 8px; }
.dpc-root .dpc-chip {
	height: 40px; min-height: 0; padding: 0; margin: 0; border-radius: 10px; cursor: pointer;
	border: 1px solid rgba(201, 154, 51, .95) !important; background: transparent !important; color: var(--em) !important;
	font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 14px; line-height: 1; box-shadow: none; text-transform: none;
	transition: background .15s, color .15s;
}
.dpc-root .dpc-chip:hover, .dpc-root .dpc-chip:focus { background: rgba(226, 184, 87, .18) !important; color: var(--em) !important; }
.dpc-root .dpc-chip.is-on, .dpc-root .dpc-chip.is-on:hover { background: var(--em) !important; color: var(--gold-l) !important; border-color: var(--em) !important; }

.dpc-root .dpc-err { min-height: 1.6em; margin-top: 4px; text-align: center; font-size: 13px; line-height: 2; color: #a32b2b; }

.dpc-root .dpc-btn {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: clamp(52px, 12vw, 58px); min-height: 0; margin: 0; padding: 6px 12px 0; border-radius: 16px !important; cursor: pointer;
	border: 0 !important; text-transform: none; letter-spacing: normal;
	font-family: 'Noto Nastaliq Urdu', serif; font-weight: 700; font-size: clamp(16px, 4.4vw, 19px); line-height: 1;
	color: var(--em-d) !important;
	background: linear-gradient(180deg, #F3DFA6 0%, #E2B857 58%, #C99A33 100%) !important;
	box-shadow: 0 8px 18px rgba(226, 184, 87, .35), inset 0 1px 0 rgba(255, 255, 255, .55) !important;
	transition: transform .1s, opacity .2s;
}
.dpc-root .dpc-btn:hover, .dpc-root .dpc-btn:focus { color: var(--em-d) !important; filter: brightness(1.04); }
.dpc-root .dpc-btn:active { transform: translateY(1px); }
.dpc-root .dpc-btn:focus-visible, .dpc-root .dpc-chip:focus-visible, .dpc-root .dpc-sbtn:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
.dpc-root .dpc-btn[disabled] { opacity: .65; cursor: default; }
.dpc-root .dpc-btn.is-busy::before {
	content: ""; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
	border: 3px solid rgba(4, 35, 27, .25); border-top-color: var(--em-d);
	animation: dpc-spin .8s linear infinite;
}
.dpc-root .dpc-btn.dpc-btn-alt { background: var(--em) !important; color: var(--gold-l) !important; box-shadow: 0 8px 16px rgba(11, 59, 46, .3) !important; margin-top: 12px; }
.dpc-root .dpc-btn.dpc-btn-alt:hover { color: var(--gold-l) !important; }
.dpc-root .dpc-note { margin-top: 6px; text-align: center; font-size: 12px; line-height: 2; color: #5b7a6c; }

/* ---- success + closed states ---- */
.dpc-root .dpc-ok, .dpc-root .dpc-closed { display: none; text-align: center; padding-bottom: 2px; }
.dpc-root .dpc-card.is-done .dpc-formpart, .dpc-root .dpc-card.is-closed .dpc-formpart { display: none; }
.dpc-root .dpc-card.is-done .dpc-ok { display: block; }
.dpc-root .dpc-card.is-closed .dpc-closed { display: block; }
.dpc-root .dpc-card.is-closed.is-done .dpc-ok { display: none; }
.dpc-root .dpc-tick { width: 54px; height: 54px; display: block; margin: 0 auto 2px; fill: none; stroke: var(--em); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dpc-root .dpc-tick circle { stroke: var(--gold); stroke-dasharray: 164; stroke-dashoffset: 164; }
.dpc-root .dpc-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.dpc-root .dpc-card.is-done .dpc-tick circle { animation: dpc-draw .7s ease forwards; }
.dpc-root .dpc-card.is-done .dpc-tick path { animation: dpc-draw .4s .45s ease forwards; }
.dpc-root .dpc-qtyshow { margin-top: 2px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(26px, 8vw, 34px); line-height: 1.3; color: var(--em); direction: ltr; }
.dpc-root .dpc-qtyshow small { font-family: 'Noto Nastaliq Urdu', serif; font-weight: 400; font-size: 15px; color: #3d5a4e; }
.dpc-root .dpc-pendnote { margin-top: 4px; font-size: 13px; line-height: 2; color: #7a5b12; }
.dpc-root .dpc-star { width: 28px; height: 28px; display: block; margin: 0 auto 4px; fill: var(--gold); }
.dpc-root .dpc-closed p { font-size: 16px; line-height: 2.2; color: var(--em); padding: 4px 6px 8px; }

/* ---- share card ---- */
.dpc-root .dpc-sharegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 8px; margin-top: 10px; }
.dpc-root .dpc-sbtn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; min-height: 0; margin: 0; padding: 4px 10px 0; border-radius: 12px !important; cursor: pointer;
	border: 1px solid rgba(201, 154, 51, .95) !important; background: #fff !important; color: var(--em) !important;
	font-family: 'Noto Nastaliq Urdu', serif; font-weight: 600; font-size: 14px; line-height: 1; text-transform: none; letter-spacing: normal;
	box-shadow: none !important; transition: background .15s;
}
.dpc-root .dpc-sbtn:hover, .dpc-root .dpc-sbtn:focus { background: rgba(226, 184, 87, .2) !important; color: var(--em) !important; }
.dpc-root .dpc-sbtn svg { width: 20px; height: 20px; flex: none; fill: currentColor; margin-top: -4px; }
.dpc-root .dpc-sbtn-gold, .dpc-root .dpc-sbtn-gold:hover, .dpc-root .dpc-sbtn-gold:focus {
	background: linear-gradient(180deg, #F3DFA6 0%, #E2B857 100%) !important; border-color: #C99A33 !important; color: var(--em-d) !important;
}
.dpc-root .dpc-qrbox { display: none; text-align: center; margin-top: 12px; }
.dpc-root .dpc-qrbox.is-on { display: block; }
.dpc-root .dpc-qrbox canvas { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto 10px; border-radius: 12px; border: 1px solid rgba(226, 184, 87, .8); background: #fff; }
.dpc-root .dpc-qrbox .dpc-sbtn { max-width: 240px; margin: 0 auto; }
.dpc-root .dpc-sharemsg { min-height: 1.6em; margin-top: 6px; text-align: center; font-size: 13px; line-height: 2; color: #1F6B55; }

/* ---- dua band (full page only) ---- */
.dpc-root .dpc-duaband { position: relative; margin-top: 6px; padding: 24px 16px 34px; text-align: center; background: var(--cream); color: var(--em); border-top: 3px solid var(--gold); }
.dpc-root .dpc-duaband h2 { font-size: clamp(19px, 3.6vw, 24px); font-weight: 700; line-height: 2.2; max-width: 520px; margin: 0 auto; color: var(--em); }
.dpc-root .dpc-duaband p { margin-top: 2px; font-size: 17px; line-height: 2; color: #9a7421; }

/* ---- standalone parts inside Elementor ---- */
.dpc-root.dpc-part { background: none; overflow: visible; }
.dpc-root.dpc-part .dpc-panel, .dpc-root.dpc-part .dpc-card, .dpc-root.dpc-part .dpc-share { max-width: 560px; margin-left: auto; margin-right: auto; }
.dpc-live { font-family: 'Poppins', 'Noto Nastaliq Urdu', sans-serif; font-variant-numeric: tabular-nums; }

@keyframes dpc-spin { to { transform: rotate(360deg); } }
@keyframes dpc-draw { to { stroke-dashoffset: 0; } }

@media (min-width: 880px) {
	.dpc-root .dpc-desc { display: block; }
	.dpc-root .dpc-main { grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 18px; align-items: stretch; }
	.dpc-root.dpc-part .dpc-panel, .dpc-root.dpc-part .dpc-card, .dpc-root.dpc-part .dpc-share { max-width: none; }
	.dpc-root .dpc-sharewrap { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.dpc-root .dpc-fillrect, .dpc-root .dpc-bar i { transition: none; }
	.dpc-root .dpc-btn.is-busy::before { animation-duration: 2s; }
	.dpc-root .dpc-card.is-done .dpc-tick circle, .dpc-root .dpc-card.is-done .dpc-tick path { animation: none; stroke-dashoffset: 0; }
}
