/* ============================================================
   DancePayPro Design System — 2026
   Shared component styles used across all modernized pages.
   Load AFTER theme.min.css in head.php.
   ============================================================ */

/* ---------- Google Fonts: Fraunces display serif ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

/* ---------- Design tokens ---------- */
:root {
	--dpp-ink: #0F0B2E;
	--dpp-purple: #3829C4;
	--dpp-royal: #2962C4;
	--dpp-sky: #6A9BF4;
	--dpp-cream: #FDFCFF;
	--dpp-muted: #6B6A8A;
	--dpp-border: #EEECF8;
	--dpp-surface: #FFFFFF;
	--dpp-body-bg: #F5F4FB;
}

/* ---------- Reset / body defaults ---------- */
body.dpp-login,
body.dpp-auth {
	min-height: 100vh;
	background: #0F0B2E;
	color: var(--dpp-ink);
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}
body.dpp-dashboard {
	background-color: var(--dpp-body-bg) !important;
	color: var(--dpp-ink);
}

/* ============================================================
   CANVAS — full-bleed gradient background for auth pages
   ============================================================ */
.dpp-canvas {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse 120% 80% at 50% -10%, #6A9BF4 0%, transparent 55%),
		radial-gradient(ellipse 90% 70% at 95% 100%, #8B5CF6 0%, transparent 50%),
		radial-gradient(ellipse 80% 60% at 5% 100%, #2962C4 0%, transparent 55%),
		linear-gradient(180deg, #1a1347 0%, #0F0B2E 100%);
	z-index: 0;
}
.dpp-canvas::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.6;
	mix-blend-mode: overlay;
	pointer-events: none;
}

/* ============================================================
   HERO — 460px gradient band for dashboard pages
   ============================================================ */
.dpp-hero {
	position: relative;
	height: 380px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 110% 70% at 50% -5%, #6A9BF4 0%, transparent 55%),
		radial-gradient(ellipse 80% 60% at 92% 100%, #8B5CF6 0%, transparent 55%),
		radial-gradient(ellipse 70% 50% at 8% 100%, #2962C4 0%, transparent 55%),
		linear-gradient(180deg, #1a1347 0%, #0F0B2E 100%);
}
/* Compact banner variant for admin pages — used by header.php when no
   custom welcome content is rendered. Reduces dead space above dpp-shell. */
.dpp-hero.dpp-hero-banner {
	height: 260px;
}
@media (max-width: 767px) {
	.dpp-hero.dpp-hero-banner { height: 220px; }
}
.dpp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
	pointer-events: none;
	opacity: 0.5;
}

/* ---------- Animated orbs (shared for canvas + hero) ---------- */
.dpp-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	will-change: transform;
}
.dpp-canvas ~ .dpp-orb {
	position: fixed;
	z-index: 1;
}
.dpp-orb-1 {
	width: 620px; height: 620px;
	background: radial-gradient(circle, #6A9BF4 0%, transparent 70%);
	top: -180px; left: -160px;
	opacity: 0.55;
	animation: dppFloatA 22s ease-in-out infinite;
}
.dpp-orb-2 {
	width: 540px; height: 540px;
	background: radial-gradient(circle, #A855F7 0%, transparent 70%);
	bottom: -120px; right: -120px;
	opacity: 0.55;
	animation: dppFloatB 28s ease-in-out infinite;
}
.dpp-orb-3 {
	width: 420px; height: 420px;
	background: radial-gradient(circle, #3829C4 0%, transparent 70%);
	top: 40%; left: 45%;
	opacity: 0.4;
	animation: dppFloatC 35s ease-in-out infinite;
}
.dpp-hero-orb-1 {
	width: 520px; height: 520px;
	background: radial-gradient(circle, #6A9BF4 0%, transparent 70%);
	top: -160px; left: -120px;
	opacity: 0.5;
	animation: dppFloatA 24s ease-in-out infinite;
}
.dpp-hero-orb-2 {
	width: 460px; height: 460px;
	background: radial-gradient(circle, #A855F7 0%, transparent 70%);
	top: -80px; right: -100px;
	opacity: 0.45;
	animation: dppFloatB 30s ease-in-out infinite;
}

@keyframes dppFloatA {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(80px, 120px) scale(1.08); }
}
@keyframes dppFloatB {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-100px, -80px) scale(1.12); }
}
@keyframes dppFloatC {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-30%, -65%) scale(1.15); }
}
@keyframes dppFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PATTERN A — Marketing split (login, sign up)
   ============================================================ */
.dpp-shell-split {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr;
	max-width: 1440px;
	margin: 0 auto;
	padding: 2.5rem 2rem;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 992px) {
	.dpp-shell-split {
		grid-template-columns: 1.15fr 1fr;
		padding: 4rem 4rem;
		gap: 5rem;
	}
}

.dpp-marketing {
	color: #fff;
	opacity: 0;
	animation: dppFadeUp 0.9s 0.1s ease-out forwards;
}
.dpp-brand {
	display: inline-flex;
	align-items: center;
	margin-bottom: 3.5rem;
}
.dpp-brand img {
	height: 44px;
	width: auto;
	filter: drop-shadow(0 4px 20px rgba(106, 155, 244, 0.3));
}
.dpp-brand-center {
	display: flex;
	justify-content: center;
	margin-bottom: 2rem;
}
.dpp-brand-center img {
	height: 40px;
	width: auto;
	filter: drop-shadow(0 4px 20px rgba(106, 155, 244, 0.2));
}

/* Partner logo — displayed below DancePayPro logo on payment pages */
.dpp-partner-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1.25rem;
}
.dpp-partner-logo img {
	max-width: 200px;
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dpp-eyebrow {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #A5B8FF;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(165, 184, 255, 0.35);
	border-radius: 999px;
	margin-bottom: 1.75rem;
	background: rgba(165, 184, 255, 0.08);
}

.dpp-headline {
	font-family: 'Fraunces', Georgia, serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-size: clamp(2.5rem, 5.2vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0 0 1.5rem;
}
.dpp-headline em {
	font-style: italic;
	font-weight: 400;
	background: linear-gradient(120deg, #A5B8FF 0%, #E2CCFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.dpp-sub {
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
	max-width: 540px;
	margin: 0 0 2.75rem;
}

.dpp-values {
	display: grid;
	gap: 1.25rem;
	max-width: 540px;
}
.dpp-value {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: all 0.3s ease;
	opacity: 0;
	animation: dppFadeUp 0.7s ease-out forwards;
}
.dpp-value:nth-child(1) { animation-delay: 0.35s; }
.dpp-value:nth-child(2) { animation-delay: 0.45s; }
.dpp-value:nth-child(3) { animation-delay: 0.55s; }
.dpp-value:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(165, 184, 255, 0.25);
	transform: translateX(4px);
}
.dpp-value-icon {
	flex-shrink: 0;
	width: 42px; height: 42px;
	border-radius: 10px;
	background: linear-gradient(135deg, #6A9BF4 0%, #3829C4 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.1rem;
	box-shadow: 0 6px 20px -6px rgba(56, 41, 196, 0.5);
}
.dpp-value-text h4 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: #fff;
	margin: 0 0 0.25rem;
	letter-spacing: -0.01em;
}
.dpp-value-text p {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	line-height: 1.5;
}

.dpp-login-wrap {
	display: flex;
	justify-content: center;
	opacity: 0;
	animation: dppFadeUp 0.9s 0.2s ease-out forwards;
}

/* ============================================================
   PATTERN B — Single centered card (forgot, reset, error)
   ============================================================ */
.dpp-shell-center {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 3rem 1.5rem;
}
/* Center the card when it's shorter than viewport via margin auto;
   when card overflows, margin auto resolves to 0 → starts at top */
.dpp-shell-center > .dpp-card,
.dpp-shell-center > .dpp-card-wide {
	margin-top: auto;
	margin-bottom: auto;
}

/* ============================================================
   GLASS CARD — used by both patterns for the form surface
   ============================================================ */
.dpp-card {
	width: 100%;
	max-width: 460px;
	background: rgba(253, 252, 255, 0.98);
	border-radius: 24px;
	padding: 2.75rem 2.5rem;
	box-shadow:
		0 40px 80px -20px rgba(15, 11, 46, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	opacity: 0;
	animation: dppFadeUp 0.9s 0.2s ease-out forwards;
}
.dpp-card-wide {
	max-width: 540px;
}
.dpp-card h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.85rem;
	letter-spacing: -0.02em;
	color: var(--dpp-ink);
	margin: 0 0 0.5rem;
	text-align: center;
}
.dpp-card h2.dpp-card-h-left { text-align: left; }
.dpp-card-sub {
	color: var(--dpp-muted);
	font-size: 0.92rem;
	margin: 0 0 1.75rem;
	text-align: center;
}
.dpp-card-sub-left { text-align: left; }
.dpp-card-sub a {
	color: var(--dpp-purple);
	font-weight: 600;
	text-decoration: none;
}
.dpp-card-sub a:hover { text-decoration: underline; }

/* ============================================================
   ALERTS
   ============================================================ */
.dpp-alert {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.88rem;
	margin-bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.dpp-alert-error {
	background: #FFF0F0;
	color: #B91C1C;
	border: 1px solid #FECACA;
}
.dpp-alert-success {
	background: #F0FDF4;
	color: #15803D;
	border: 1px solid #BBF7D0;
}
.dpp-alert-info {
	background: #EFF6FF;
	color: #1E40AF;
	border: 1px solid #BFDBFE;
}
.dpp-alert-warning {
	background: #FFFBEB;
	color: #92400E;
	border: 1px solid #FDE68A;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.dpp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.95rem 1.25rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: -0.005em;
	font-family: inherit;
}
.dpp-btn-primary {
	background: linear-gradient(120deg, #3829C4 0%, #2962C4 50%, #4F6FE8 100%);
	color: #fff;
	box-shadow: 0 10px 25px -10px rgba(56, 41, 196, 0.6);
}
.dpp-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px -8px rgba(56, 41, 196, 0.7);
	color: #fff;
}
.dpp-btn-outline {
	background: transparent;
	color: var(--dpp-purple);
	border: 1.5px solid #E0DDF7;
}
.dpp-btn-outline:hover {
	background: #F5F3FF;
	border-color: var(--dpp-purple);
	color: var(--dpp-purple);
}
.dpp-btn-submit {
	background: var(--dpp-ink);
	color: #fff;
	margin-top: 0.5rem;
}
.dpp-btn-submit:hover {
	background: var(--dpp-purple);
	color: #fff;
}
.dpp-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.dpp-cta-stack {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

/* Inline compact variant for dashboard heading rows */
.dpp-btn-sm {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.15rem;
	background: linear-gradient(120deg, #3829C4 0%, #2962C4 50%, #4F6FE8 100%);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	box-shadow: 0 10px 22px -10px rgba(56, 41, 196, 0.6);
	transition: all 0.25s ease;
	width: auto;
}
.dpp-btn-sm:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -8px rgba(56, 41, 196, 0.7);
	color: #fff !important;
}

/* Outline variant of dpp-btn-sm for secondary/back buttons */
.dpp-btn-sm-outline {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.15rem;
	background: transparent;
	color: var(--dpp-purple);
	border: 1.5px solid #E0DDF7;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	transition: all 0.25s ease;
	width: auto;
	font-family: inherit;
	cursor: pointer;
	line-height: 1.2;
}
.dpp-btn-sm-outline:hover {
	background: #F5F3FF;
	border-color: var(--dpp-purple);
	color: var(--dpp-purple);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.dpp-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0;
	color: #A5A3B8;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
}
.dpp-divider::before,
.dpp-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, #E5E3F0, transparent);
}

/* ============================================================
   FORMS
   ============================================================ */
.dpp-field {
	margin-bottom: 1rem;
}
.dpp-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--dpp-ink);
	margin-bottom: 0.4rem;
	letter-spacing: -0.005em;
}
.dpp-field input:not([type="checkbox"]):not([type="radio"]),
.dpp-field select {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid #E5E3F0;
	border-radius: 10px;
	background: #fff;
	font-size: 0.95rem;
	color: var(--dpp-ink);
	transition: all 0.2s ease;
	font-family: inherit;
}
.dpp-field input:not([type="checkbox"]):not([type="radio"]):focus,
.dpp-field select:focus {
	outline: none;
	border-color: var(--dpp-purple);
	box-shadow: 0 0 0 4px rgba(56, 41, 196, 0.1);
}
.dpp-field input:not([type="checkbox"]):not([type="radio"])::placeholder { color: #B5B3C7; }

/* Restore Bootstrap input-group flex layout inside dpp-field.
   Without this, dpp-field's width:100% forces inputs to stack. */
.dpp-field .input-group {
	display: flex !important;
	flex-wrap: nowrap;
}
.dpp-field .input-group > .form-control,
.dpp-field .input-group > .form-select,
.dpp-field .input-group > input:not([type="hidden"]),
.dpp-field .input-group > select {
	width: auto !important;
	flex: 1 1 auto;
}
.dpp-field .input-group > .input-group-text {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0.75rem 0.9rem;
	background: #FAFAFD;
	border: 1.5px solid #E5E3F0;
	color: var(--dpp-muted);
	border-radius: 10px 0 0 10px;
}
.dpp-field .input-group > .input-group-text + .form-control,
.dpp-field .input-group > .input-group-text + input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left: 0;
}
.dpp-field .input-group > .form-select:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.dpp-field .input-group > .form-select:first-child + .form-control,
.dpp-field .input-group > .form-select:first-child + input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left: 0;
}
.dpp-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 576px) {
	.dpp-field-row-2 { grid-template-columns: 1fr 1fr; }
}

/* Password field with toggle eye */
.dpp-field-password {
	position: relative;
}
.dpp-field-password input {
	padding-right: 3rem;
}
.dpp-password-toggle {
	position: absolute;
	top: 50%;
	right: 0.9rem;
	transform: translateY(-50%);
	cursor: pointer;
	color: var(--dpp-muted);
	background: none;
	border: none;
	padding: 0.25rem;
	font-size: 1.1rem;
}
.dpp-password-toggle:hover { color: var(--dpp-purple); }

.dpp-forgot {
	text-align: center;
	margin-top: 1.25rem;
}
.dpp-forgot a {
	color: var(--dpp-muted);
	font-size: 0.85rem;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all 0.2s ease;
}
.dpp-forgot a:hover {
	color: var(--dpp-purple);
	border-bottom-color: var(--dpp-purple);
}

/* ============================================================
   PARTNER LINK PILL (top-right)
   ============================================================ */
.dpp-partner-link {
	position: absolute;
	top: 2rem;
	right: 2rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	text-decoration: none;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	transition: all 0.2s ease;
	z-index: 100;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.04);
}
.dpp-partner-link:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   DASHBOARD — hero welcome + shell card (home.php)
   ============================================================ */
.dpp-hero-welcome {
	position: relative;
	z-index: 2;
	max-width: 1320px;
	margin: 0 auto;
	padding: 3.5rem 2rem 0;
	color: #fff;
	/* Start visible; the animation is a progressive enhancement.
	   Previously started at opacity:0 which left the welcome text hidden
	   if the keyframe animation failed to run for any reason. */
	opacity: 1;
	animation: dppFadeUp 0.8s 0.1s ease-out;
}
.dpp-hero-eyebrow {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #A5B8FF;
	padding: 0.45rem 0.95rem;
	border: 1px solid rgba(165, 184, 255, 0.35);
	border-radius: 999px;
	margin-bottom: 1rem;
	background: rgba(165, 184, 255, 0.08);
}
.dpp-hero-title {
	font-family: 'Fraunces', Georgia, serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0 0 0.5rem;
	color: #fff;
}
.dpp-hero-title em {
	font-style: italic;
	font-weight: 400;
	background: linear-gradient(120deg, #A5B8FF 0%, #E2CCFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.dpp-hero-sub {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.72);
	max-width: 640px;
	margin: 0;
}

.dpp-shell {
	position: relative;
	z-index: 10;
	max-width: 1320px;
	margin: -140px auto 0;
	padding: 0 1.5rem 3rem;
}
@media (min-width: 992px) {
	.dpp-shell { padding: 0 2rem 3rem; }
}
.dpp-card-surface {
	background: var(--dpp-surface);
	border-radius: 24px;
	padding: 2rem 2rem 2.5rem;
	box-shadow:
		0 40px 80px -24px rgba(15, 11, 46, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	opacity: 0;
	animation: dppFadeUp 0.9s 0.2s ease-out forwards;
}
@media (min-width: 992px) {
	.dpp-card-surface { padding: 2.5rem 2.75rem 3rem; }
}

/* ---------- Getting Started card (dashboard) ---------- */
.dpp-getting-started {
	background: linear-gradient(135deg, #FAFAFF 0%, #F1EEFF 100%);
	border: 1px solid var(--dpp-border);
	border-radius: 18px;
	box-shadow: 0 10px 30px -14px rgba(56, 41, 196, 0.15);
	overflow: hidden;
	margin-bottom: 2.5rem;
}
.dpp-getting-started-header {
	padding: 1.25rem 1.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(56, 41, 196, 0.08);
}
.dpp-getting-started-header h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.3rem;
	letter-spacing: -0.015em;
	color: var(--dpp-ink);
	margin: 0;
}
.dpp-getting-started-body {
	padding: 1rem 0.5rem;
}
.dpp-getting-started h3,
.dpp-getting-started h4 {
	font-family: 'Fraunces', Georgia, serif;
	letter-spacing: -0.015em;
}
.dpp-getting-started h3 { color: var(--dpp-ink); font-weight: 600; }
.dpp-getting-started h4 { color: var(--dpp-purple); font-weight: 500; }

/* ---------- Dashboard page heading + Stripe pill ---------- */
.dpp-page-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.75rem;
	flex-wrap: wrap;
	gap: 1rem;
}
.dpp-page-heading h1 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.75rem;
	letter-spacing: -0.02em;
	color: var(--dpp-ink);
	margin: 0;
}
.dpp-stripe-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	background: #fff;
	border: 1.5px solid var(--dpp-border);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--dpp-muted);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}
.dpp-stripe-pill:hover {
	border-color: var(--dpp-purple);
	color: var(--dpp-purple);
}
.dpp-stripe-pill code {
	background: #F5F3FF;
	color: var(--dpp-purple) !important;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	font-family: 'SF Mono', ui-monospace, monospace;
	font-size: 0.78rem;
}

.dpp-connect-alert {
	background: linear-gradient(120deg, rgba(106, 155, 244, 0.1), rgba(56, 41, 196, 0.08));
	border: 1px solid rgba(56, 41, 196, 0.18);
	border-radius: 14px;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.5rem;
	color: var(--dpp-ink);
}
.dpp-connect-alert i { font-size: 1.25rem; color: var(--dpp-purple); }
.dpp-connect-alert a { color: var(--dpp-purple); font-weight: 600; }
.dpp-connect-alert a:hover { text-decoration: underline; }

.dpp-data-timestamp {
	text-align: right;
	font-size: 0.78rem;
	color: var(--dpp-muted);
	margin-bottom: 0.5rem;
}

/* ---------- Stat cards ---------- */
.dpp-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 2.25rem;
}
@media (min-width: 992px) { .dpp-stats { grid-template-columns: repeat(4, 1fr); } }

.dpp-stat-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--dpp-border);
	border-radius: 18px;
	padding: 1.5rem 1.5rem 1.25rem;
	transition: all 0.3s ease;
	overflow: hidden;
	opacity: 0;
	animation: dppFadeUp 0.7s ease-out forwards;
	text-decoration: none !important;
	color: inherit;
	display: block;
}
.dpp-stat-card:nth-child(1) { animation-delay: 0.3s; }
.dpp-stat-card:nth-child(2) { animation-delay: 0.38s; }
.dpp-stat-card:nth-child(3) { animation-delay: 0.46s; }
.dpp-stat-card:nth-child(4) { animation-delay: 0.54s; }
.dpp-stat-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #3829C4, #6A9BF4);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.dpp-stat-card:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 41, 196, 0.2);
	box-shadow: 0 18px 40px -20px rgba(56, 41, 196, 0.25);
}
.dpp-stat-card:hover::before { opacity: 1; }

.dpp-stat-icon {
	width: 42px; height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, #6A9BF4 0%, #3829C4 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.15rem;
	margin-bottom: 1.1rem;
	box-shadow: 0 8px 18px -8px rgba(56, 41, 196, 0.5);
}
.dpp-stat-label {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dpp-muted);
	margin: 0 0 0.4rem;
}
.dpp-stat-value {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 2.1rem;
	letter-spacing: -0.03em;
	color: var(--dpp-ink);
	line-height: 1;
	margin: 0 0 0.5rem;
}
.dpp-stat-meta {
	font-size: 0.78rem;
	color: var(--dpp-muted);
	margin: 0;
}
.dpp-stat-meta i {
	color: var(--dpp-purple);
	margin-right: 0.35rem;
}

/* ---------- Section heading (h2 + right action) ---------- */
.dpp-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.dpp-section-head h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.4rem;
	letter-spacing: -0.015em;
	color: var(--dpp-ink);
	margin: 0;
}

/* ---------- Pay Lists table ---------- */
.dpp-paylist-table-wrap {
	background: #fff;
	border: 1px solid var(--dpp-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 20px -12px rgba(15, 11, 46, 0.08);
}
.dpp-paylist-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.dpp-paylist-table thead th {
	background: #FAFAFD;
	padding: 1rem 1.25rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dpp-muted);
	border-bottom: 1px solid var(--dpp-border);
	text-align: left;
}
.dpp-paylist-table thead th small {
	display: block;
	font-size: 0.66rem;
	text-transform: none;
	letter-spacing: 0.02em;
	color: #A5A3B8;
	font-weight: 500;
	margin-top: 0.15rem;
}
.dpp-paylist-table tbody td {
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--dpp-border);
	vertical-align: middle;
}
.dpp-paylist-table tbody tr:last-child td { border-bottom: none; }
.dpp-paylist-table tbody tr { transition: background 0.15s ease; }
.dpp-paylist-table tbody tr:hover { background: #FAFAFD; }
.dpp-paylist-name a {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--dpp-ink);
	text-decoration: none;
	letter-spacing: -0.01em;
}
.dpp-paylist-name a:hover { color: var(--dpp-purple); }
.dpp-paylist-due {
	display: block;
	font-size: 0.78rem;
	color: var(--dpp-muted);
	margin-top: 0.15rem;
}
.dpp-paylist-money {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--dpp-ink);
	letter-spacing: -0.01em;
}
.dpp-paylist-admin {
	display: block;
	font-size: 0.76rem;
	color: var(--dpp-muted);
	margin-top: 0.15rem;
}

.dpp-percent {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.82rem;
	min-width: 3.5rem;
	text-align: center;
}
.dpp-percent-zero { background: #F5F4FB; color: var(--dpp-muted); }
.dpp-percent-low  { background: #FFF4E5; color: #B45309; }
.dpp-percent-mid  { background: #EEF2FF; color: var(--dpp-purple); }
.dpp-percent-full { background: #DCFCE7; color: #15803D; }

.dpp-actions {
	display: flex;
	gap: 0.45rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}
.dpp-act {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.8rem;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid;
	transition: all 0.2s ease;
	cursor: pointer;
	background: #fff;
	line-height: 1;
	font-family: inherit;
}
.dpp-act-manage {
	background: linear-gradient(120deg, #3829C4, #2962C4);
	color: #fff;
	border-color: #3829C4;
}
.dpp-act-manage:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px -6px rgba(56, 41, 196, 0.5);
}
.dpp-act-remind {
	color: #B45309;
	border-color: #FED7AA;
	background: #FFFAF0;
}
.dpp-act-remind:hover { background: #FEF3C7; color: #92400E; }
.dpp-act-delete {
	color: #B91C1C;
	border-color: #FECACA;
	background: #FFF5F5;
}
.dpp-act-delete:hover { background: #FEE2E2; color: #991B1B; }
.dpp-act-disabled {
	color: #A5A3B8;
	border-color: #E5E3F0;
	background: #FAFAFD;
	cursor: not-allowed;
}

.dpp-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: linear-gradient(135deg, #FAFAFF, #F1EEFF);
	border: 1px dashed rgba(56, 41, 196, 0.3);
	border-radius: 18px;
}
.dpp-empty-icon {
	font-size: 2.5rem;
	color: var(--dpp-purple);
	margin-bottom: 1rem;
	opacity: 0.6;
}
.dpp-empty h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.3rem;
	color: var(--dpp-ink);
	margin: 0 0 0.5rem;
}
.dpp-empty p {
	color: var(--dpp-muted);
	margin: 0 0 1.5rem;
}

/* ---------- Mobile pay-list cards ---------- */
.dpp-mobile-list { display: none; }
@media (max-width: 767px) {
	/* Only hide desktop table when a .dpp-mobile-list sibling exists (home.php).
	   Pages without a mobile alternative (pay_list.php, payees.php) keep the table visible. */
	.dpp-has-mobile-list > .dpp-paylist-table-wrap { display: none; }
	.dpp-mobile-list { display: flex; flex-direction: column; gap: 0.85rem; }
	/* Only tables explicitly marked as scrollable get horizontal scroll.
	   DataTables responsive tables must NOT have overflow-x — it prevents
	   column collapse and breaks touch event handling on mobile. */
	.dpp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.dpp-mobile-card {
	background: #fff;
	border: 1px solid var(--dpp-border);
	border-radius: 14px;
	padding: 1.1rem 1.15rem;
	box-shadow: 0 4px 12px -8px rgba(15, 11, 46, 0.1);
}
.dpp-mobile-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.75rem;
	gap: 0.75rem;
}
.dpp-mobile-card-head a {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1rem;
	color: var(--dpp-ink);
	text-decoration: none;
	letter-spacing: -0.01em;
}
.dpp-mobile-stats {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.85rem;
	font-size: 0.82rem;
}
.dpp-mobile-stats .dpp-ms-label {
	display: block;
	font-size: 0.7rem;
	color: var(--dpp-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	margin-bottom: 0.15rem;
}
.dpp-mobile-stats .dpp-ms-value {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	color: var(--dpp-ink);
}
.dpp-mobile-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.45rem;
}
.dpp-mobile-actions .dpp-act {
	justify-content: center;
	width: 100%;
}
.dpp-mobile-actions .dpp-act:first-child {
	grid-column: 1 / -1;
}

.dpp-mobile-gs-btn {
	display: none;
	width: 100%;
	padding: 1rem;
	background: linear-gradient(120deg, #3829C4, #2962C4);
	color: #fff;
	border: none;
	border-radius: 14px;
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 10px 25px -10px rgba(56, 41, 196, 0.55);
	margin-bottom: 2rem;
	font-family: inherit;
}
@media (max-width: 767px) {
	.dpp-mobile-gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
	.dpp-getting-started.d-md-block { display: none !important; }
	.dpp-page-heading h1 { font-size: 1.5rem; }
	.dpp-hero { height: 320px; }
	.dpp-hero-welcome { padding: 4.5rem 1.5rem 0; }
	.dpp-shell { margin-top: -110px; padding: 0 1rem 2rem; }
	.dpp-card-surface { padding: 1.5rem 1.25rem 2rem; }
	.dpp-partner-link {
		top: 1.25rem;
		right: 1.25rem;
		font-size: 0.78rem;
		padding: 0.5rem 0.85rem;
	}
	.dpp-brand { margin-bottom: 2rem; }
	.dpp-brand img { height: 38px; }
	.dpp-card { padding: 2rem 1.75rem; }
	.dpp-shell-split { padding: 5rem 1.25rem 2.5rem; }
}

/* ============================================================
   CAROUSEL (home.php Getting Started) — tiny-slider override
   ============================================================ */
#gettincStarted .tns-controls button {
	background: rgba(255, 255, 255, 0.95) !important;
	border: 1.5px solid var(--dpp-border) !important;
	border-radius: 50% !important;
	width: 44px !important;
	height: 44px !important;
	font-size: 24px !important;
	color: var(--dpp-purple) !important;
	box-shadow: 0 8px 20px -10px rgba(56, 41, 196, 0.3) !important;
	transition: all 0.2s ease !important;
}
#gettincStarted .tns-controls button:hover {
	background: #fff !important;
	border-color: var(--dpp-purple) !important;
	transform: translateY(-50%) scale(1.05) !important;
}

/* ============================================================
   READ-ONLY FIELD DISPLAY (pay_list.php accordion list details)
   ============================================================ */
.dpp-readonly-field {
	margin-bottom: 0.9rem;
}
.dpp-readonly-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--dpp-muted);
	margin-bottom: 0.3rem;
}
.dpp-readonly-value {
	display: block;
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	font-size: 1.02rem;
	color: var(--dpp-ink);
	letter-spacing: -0.01em;
	line-height: 1.3;
}
.dpp-readonly-value.dpp-muted {
	color: var(--dpp-muted);
	font-style: italic;
	font-weight: 400;
}

/* Section divider + subheading inside dpp-card-surface */
.dpp-section-divider {
	border: none;
	border-top: 1px solid var(--dpp-border);
	margin: 1.5rem 0 1rem;
}
.dpp-section-subheading {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: -0.015em;
	color: var(--dpp-ink);
	margin: 0 0 1rem;
}

/* ============================================================
   BOOTSTRAP ACCORDION OVERRIDE — list details card
   Uses BS CSS variables so the accordion-button JS still works.
   ============================================================ */
.dpp-card-surface .accordion {
	--bs-accordion-bg: transparent;
	--bs-accordion-border-color: var(--dpp-border);
	--bs-accordion-border-radius: 14px;
	--bs-accordion-inner-border-radius: 14px;
	--bs-accordion-btn-padding-x: 1.25rem;
	--bs-accordion-btn-padding-y: 1.1rem;
	--bs-accordion-btn-color: var(--dpp-ink);
	--bs-accordion-btn-bg: #FAFAFD;
	--bs-accordion-active-color: var(--dpp-purple);
	--bs-accordion-active-bg: #F1EEFF;
	--bs-accordion-btn-focus-box-shadow: 0 0 0 4px rgba(56, 41, 196, 0.1);
	--bs-accordion-btn-focus-border-color: var(--dpp-purple);
	margin-bottom: 1rem;
}
.dpp-card-surface .accordion-item {
	border: 1px solid var(--dpp-border);
	border-radius: 14px !important;
	overflow: hidden;
}
.dpp-card-surface .accordion-button {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.dpp-card-surface .accordion-button:not(.collapsed) {
	box-shadow: none;
}
.dpp-card-surface .accordion-body {
	padding: 1.5rem 1.5rem 1.25rem;
	background: #fff;
}

/* ============================================================
   MODAL OVERRIDES — scoped to Bootstrap modal shell
   Styles all 12 modals loaded into #RemoteFetchModal plus any
   other Bootstrap modals in the app. Zero PHP changes required.
   ============================================================ */

/* Modal shell */
.modal-content {
	border: none;
	border-radius: 20px;
	box-shadow:
		0 40px 80px -20px rgba(15, 11, 46, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.12);
	background: var(--dpp-cream);
	overflow: hidden;
}
.modal-backdrop.show {
	opacity: 0.55;
}

/* Modal header */
.modal-header {
	border-bottom: 1px solid var(--dpp-border);
	padding: 1.4rem 1.75rem 1.1rem;
	background: #FAFAFD;
}
.modal-header h5,
.modal-header .modal-title,
#RemoteFetchModalTitle {
	font-family: 'Fraunces', Georgia, serif !important;
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: -0.015em;
	color: var(--dpp-ink);
	margin: 0;
}
.modal-header .btn-close {
	padding: 0.85rem;
	opacity: 0.5;
	transition: opacity 0.2s ease;
	border-radius: 8px;
}
.modal-header .btn-close:hover {
	opacity: 1;
	background-color: #F5F3FF;
}

/* Modal body + footer padding */
.modal-body {
	padding: 1.5rem 1.75rem;
}
.modal-footer {
	border-top: 1px solid var(--dpp-border);
	padding: 1rem 1.75rem;
	background: #FAFAFD;
	gap: 0.5rem;
}

/* ------- Form elements inside modal-body ------- */
.modal-body .form-group {
	margin-bottom: 1rem;
}
.modal-body .form-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dpp-ink);
	margin-bottom: 0.4rem;
	letter-spacing: -0.005em;
}
.modal-body .form-control,
.modal-body .form-select {
	width: 100%;
	padding: 0.75rem 0.95rem;
	border: 1.5px solid #E5E3F0;
	border-radius: 10px;
	background: #fff;
	font-size: 0.92rem;
	color: var(--dpp-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
	outline: none;
	border-color: var(--dpp-purple);
	box-shadow: 0 0 0 4px rgba(56, 41, 196, 0.1);
}
.modal-body .form-control::placeholder {
	color: #B5B3C7;
}
.modal-body .form-control-sm,
.modal-body .form-select-sm {
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
	border-radius: 8px;
}
.modal-body .form-check-input {
	border: 1.5px solid #E5E3F0;
}
.modal-body .form-check-input:checked {
	background-color: var(--dpp-purple);
	border-color: var(--dpp-purple);
}
.modal-body .form-check-input:focus {
	box-shadow: 0 0 0 4px rgba(56, 41, 196, 0.1);
	border-color: var(--dpp-purple);
}
.modal-body .input-group {
	display: flex !important;
	flex-wrap: nowrap;
}
.modal-body .input-group > .form-control,
.modal-body .input-group > .form-select,
.modal-body .input-group > input:not([type="hidden"]),
.modal-body .input-group > select {
	width: auto !important;
	flex: 1 1 auto;
}
.modal-body .input-group-text {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	background: #FAFAFD;
	border: 1.5px solid #E5E3F0;
	color: var(--dpp-muted);
	border-radius: 10px 0 0 10px;
	padding: 0.75rem 0.9rem;
}
.modal-body .input-group > .input-group-text + .form-control,
.modal-body .input-group > .input-group-text + input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left: 0;
}
.modal-body .input-group > .form-select:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.modal-body .input-group > .form-select:first-child + .form-control,
.modal-body .input-group > .form-select:first-child + input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left: 0;
}

/* ------- Bootstrap alerts inside modal → DPP look ------- */
.modal-body .alert {
	padding: 0.8rem 1rem;
	border-radius: 10px;
	font-size: 0.88rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	line-height: 1.45;
}
.modal-body .alert-danger {
	background: #FFF0F0;
	color: #B91C1C;
	border: 1px solid #FECACA;
}
.modal-body .alert-success {
	background: #F0FDF4;
	color: #15803D;
	border: 1px solid #BBF7D0;
}
.modal-body .alert-info {
	background: #EFF6FF;
	color: #1E40AF;
	border: 1px solid #BFDBFE;
}
.modal-body .alert-warning {
	background: #FFFBEB;
	color: #92400E;
	border: 1px solid #FDE68A;
}
.modal-body .alert-primary {
	background: #F5F3FF;
	color: var(--dpp-purple);
	border: 1px solid #E0DDF7;
}

/* ------- Bootstrap buttons inside modal → DPP look ------- */
.modal-body .btn,
.modal-footer .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.15rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	transition: all 0.25s ease;
	line-height: 1.2;
	font-family: inherit;
	border: 1.5px solid transparent;
}
.modal-body .btn-sm,
.modal-footer .btn-sm {
	padding: 0.55rem 0.95rem;
	font-size: 0.82rem;
}
.modal-body .btn-primary,
.modal-footer .btn-primary {
	background: linear-gradient(120deg, #3829C4 0%, #2962C4 50%, #4F6FE8 100%) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: 0 10px 22px -10px rgba(56, 41, 196, 0.55);
}
.modal-body .btn-primary:hover,
.modal-footer .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -8px rgba(56, 41, 196, 0.7);
	color: #fff !important;
}
.modal-body .btn-secondary,
.modal-footer .btn-secondary,
.modal-body .btn-outline-secondary,
.modal-footer .btn-outline-secondary {
	background: transparent !important;
	color: var(--dpp-purple) !important;
	border: 1.5px solid #E0DDF7 !important;
}
.modal-body .btn-secondary:hover,
.modal-footer .btn-secondary:hover,
.modal-body .btn-outline-secondary:hover,
.modal-footer .btn-outline-secondary:hover {
	background: #F5F3FF !important;
	border-color: var(--dpp-purple) !important;
	color: var(--dpp-purple) !important;
}
.modal-body .btn-danger,
.modal-footer .btn-danger {
	background: linear-gradient(120deg, #B91C1C, #991B1B) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: 0 8px 20px -10px rgba(185, 28, 28, 0.55);
}
.modal-body .btn-danger:hover,
.modal-footer .btn-danger:hover {
	transform: translateY(-1px);
	color: #fff !important;
}
.modal-body .btn-success,
.modal-footer .btn-success {
	background: linear-gradient(120deg, #15803D, #166534) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: 0 8px 20px -10px rgba(21, 128, 61, 0.55);
}
.modal-body .btn-success:hover,
.modal-footer .btn-success:hover {
	transform: translateY(-1px);
	color: #fff !important;
}
.modal-body .btn-warning,
.modal-footer .btn-warning {
	background: linear-gradient(120deg, #F59E0B, #D97706) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.modal-body .btn-warning:hover,
.modal-footer .btn-warning:hover {
	color: #fff !important;
	transform: translateY(-1px);
}
.modal-body .btn-info,
.modal-footer .btn-info {
	background: linear-gradient(120deg, #2962C4, #4F6FE8) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.modal-body .btn-info:hover,
.modal-footer .btn-info:hover {
	color: #fff !important;
	transform: translateY(-1px);
}

/* ------- Tables inside modal ------- */
.modal-body table.table {
	font-size: 0.88rem;
	margin-bottom: 0;
}
.modal-body table.table thead th {
	background: #FAFAFD;
	padding: 0.8rem 0.9rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dpp-muted);
	border-bottom: 1px solid var(--dpp-border);
	text-align: left;
}
.modal-body table.table tbody td {
	padding: 0.8rem 0.9rem;
	border-bottom: 1px solid var(--dpp-border);
	vertical-align: middle;
}
.modal-body table.table tbody tr:last-child td {
	border-bottom: none;
}
.modal-body table.table-striped tbody tr:nth-of-type(odd) {
	background-color: #FAFAFD;
}

/* Dropdown menus inside modals (if used) */
.modal-body .dropdown-menu {
	border: 1px solid var(--dpp-border);
	border-radius: 12px;
	box-shadow: 0 18px 40px -18px rgba(15, 11, 46, 0.2);
	padding: 0.35rem;
}
.modal-body .dropdown-item {
	border-radius: 8px;
	font-size: 0.88rem;
	padding: 0.55rem 0.75rem;
}
.modal-body .dropdown-item:hover,
.modal-body .dropdown-item:focus {
	background: #F5F3FF;
	color: var(--dpp-purple);
}

/* Remote Fetch Modal specific — default dialog sizing + large variant */
#RemoteFetchModal .modal-dialog {
	max-width: 560px;
}
#RemoteFetchModal .modal-dialog.modal-lg {
	max-width: 900px;
}

/* Modal-scoped h5/h6 inline headings (common pattern inside modal content) */
.modal-body h5,
.modal-body h6 {
	font-family: 'Fraunces', Georgia, serif;
	letter-spacing: -0.01em;
	color: var(--dpp-ink);
}
.modal-body h5 {
	font-weight: 600;
	font-size: 1.05rem;
}
.modal-body h6 {
	font-weight: 600;
	font-size: 0.95rem;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.dpp-marketing,
	.dpp-login-wrap,
	.dpp-value,
	.dpp-card,
	.dpp-card-surface,
	.dpp-stat-card,
	.dpp-hero-welcome {
		animation: none !important;
		opacity: 1 !important;
	}
	.dpp-orb,
	.dpp-orb-1,
	.dpp-orb-2,
	.dpp-orb-3,
	.dpp-hero-orb-1,
	.dpp-hero-orb-2 {
		animation: none !important;
	}
}
