/**
 * RsCards Maker — Public Frontend Stylesheet
 * Responsive, theme-agnostic modern greeting card creator.
 *
 * @since 1.1.0
 */

.rscards-app-container {
	max-width: 1060px;
	margin: 30px auto;
	padding: 24px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
	color: #1e293b;
}

.rscards-app-container * {
	box-sizing: border-box;
}

/* Step Headers */
.rscards-step-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.rscards-step-num {
	width: 32px;
	height: 32px;
	background: #dc2626;
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
}

.rscards-step-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

/* Category Filters */
.rscards-frontend-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.rscards-pill-btn {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rscards-pill-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.rscards-pill-btn.active {
	background: #dc2626;
	border-color: #dc2626;
	color: #ffffff;
}

/* Selection Grid */
.rscards-selection-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
	max-height: 360px;
	overflow-y: auto;
	padding: 4px;
}

.rscards-thumb-card {
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	position: relative;
}

.rscards-thumb-card:hover {
	border-color: #94a3b8;
	transform: translateY(-2px);
}

.rscards-thumb-card.active {
	border-color: #dc2626;
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.rscards-thumb-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 800 / 530;
	background: #0f172a;
}

.rscards-thumb-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rscards-check-badge {
	display: none;
	position: absolute;
	top: 6px;
	right: 6px;
	background: #dc2626;
	color: #ffffff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	align-items: center;
	justify-content: center;
}

.rscards-thumb-card.active .rscards-check-badge {
	display: flex;
}

.rscards-thumb-title {
	display: block;
	padding: 6px 4px;
	font-size: 11px;
	font-weight: 600;
	color: #334155;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Customizer Workspace (2 Columns) */
.rscards-customizer-workspace {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	align-items: flex-start;
}

@media (max-width: 860px) {
	.rscards-customizer-workspace {
		grid-template-columns: 1fr;
	}
}

/* Preview Box */
.rscards-preview-box {
	position: sticky;
	top: 20px;
}

.rscards-preview-frame {
	width: 100%;
	aspect-ratio: 800 / 530;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.rscards-preview-message {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.45;
	word-break: break-word;
	pointer-events: none;
	padding: 8px 12px;
	box-sizing: border-box;
	overflow: hidden;
}

.rscards-preview-sender {
	position: absolute;
	bottom: 26%;
	right: 14%;
	font-size: 15px;
	font-weight: 700;
	color: #dc2626;
	font-family: inherit;
}

.rscards-preview-caption {
	text-align: center;
	font-size: 13px;
	color: #64748b;
	margin-top: 10px;
}

/* Form Controls */
.rscards-form-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
}

.rscards-form-group {
	margin-bottom: 16px;
}

.rscards-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.rscards-form-group label .req {
	color: #dc2626;
}

.rscards-form-group input[type="text"],
.rscards-form-group input[type="email"],
.rscards-form-group select,
.rscards-form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	background: #ffffff;
	color: #0f172a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rscards-form-group input:focus,
.rscards-form-group select:focus,
.rscards-form-group textarea:focus {
	border-color: #dc2626;
	outline: none;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.rscards-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 560px) {
	.rscards-form-row {
		grid-template-columns: 1fr;
	}
}

.rscards-styling-row {
	display: flex;
	gap: 12px;
	align-items: flex-end;
}

.rscards-styling-row input[type="color"] {
	width: 100%;
	height: 42px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	cursor: pointer;
	padding: 2px;
}

/* Action Buttons */
.rscards-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.rscards-btn {
	flex: 1;
	min-width: 180px;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
	border: none;
	text-decoration: none;
}

.rscards-btn-primary {
	background: #dc2626;
	color: #ffffff;
}

.rscards-btn-primary:hover {
	background: #b91c1c;
	color: #ffffff;
}

.rscards-btn-secondary {
	background: #ffffff;
	color: #334155;
	border: 1px solid #cbd5e1;
}

.rscards-btn-secondary:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.rscards-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Alerts */
.rscards-alert {
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
}

.rscards-alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.rscards-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.rscards-step-desc {
	margin: 4px 0 0 0;
	font-size: 13.5px;
	color: #64748b;
}

.rscards-field-hint {
	font-size: 12px;
	font-weight: normal;
	color: #64748b;
	margin-left: 4px;
}

/* Delivery Timing Toggle */
.rscards-delivery-timing-wrap {
	margin: 20px 0;
	padding: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.rscards-timing-heading {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 10px;
}

.rscards-timing-toggle {
	display: flex;
	gap: 8px;
}

.rscards-timing-btn {
	flex: 1;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rscards-timing-btn:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.rscards-timing-btn.active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

#rscards-schedule-date {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13.5px;
	margin-top: 4px;
}

/* Share Success Box */
.rscards-share-box {
	margin-top: 24px;
	padding: 20px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	animation: rscardFadeIn 0.3s ease;
}
@keyframes rscardFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.rscards-share-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	margin-bottom: 4px;
}

.rscards-share-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e3a8a;
}

#rscards-share-subtext {
	font-size: 13px;
	color: #475569;
	margin: 0 0 14px 0;
}

.rscards-link-copy-row {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

#rscards-share-link-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	background: #ffffff;
	color: #0f172a;
}

.rscards-btn-copy {
	min-width: 100px;
	flex: 0 0 auto;
	background: #1e293b;
	color: #ffffff;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 6px;
}
.rscards-btn-copy:hover {
	background: #0f172a;
}

.rscards-social-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.rscards-btn-whatsapp {
	background: #25D366;
	color: #ffffff;
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	transition: background 0.2s ease;
}
.rscards-btn-whatsapp:hover {
	background: #1eb956;
	color: #ffffff;
}

.rscards-btn-outline {
	background: #ffffff;
	border: 1px solid #94a3b8;
	color: #334155;
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}
.rscards-btn-outline:hover {
	background: #f8fafc;
	color: #0f172a;
}

/* Spinner */
.rscards-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: rscardsSpin 0.8s linear infinite;
	vertical-align: middle;
}
@keyframes rscardsSpin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   3D Animated Recipient Preview Modal & Envelope Flip Experience
   ========================================================================== */
.rscard-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	animation: rscardModalFadeIn 0.25s ease-out;
}

@keyframes rscardModalFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.rscard-modal-dialog {
	width: 100%;
	max-width: 960px;
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55);
	display: flex;
	flex-direction: column;
	position: relative;
	animation: rscardModalZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rscardModalZoom {
	from { transform: scale(0.94) translateY(20px); opacity: 0; }
	to { transform: scale(1) translateY(0); opacity: 1; }
}

.rscard-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 22px;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	z-index: 10;
}
.rscard-modal-title {
	display: flex;
	align-items: center;
	gap: 12px;
}
.rscard-modal-badge {
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
	background: #eff6ff;
	padding: 4px 10px;
	border-radius: 12px;
	border: 1px solid #bfdbfe;
}
.rscard-modal-card-name {
	font-size: 15px;
	font-weight: 600;
	color: #334155;
}
.rscard-modal-close {
	background: #f1f5f9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}
.rscard-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Stage Area with Moving Atmospheric Clouds */
.rscard-modal-stage {
	position: relative;
	width: 100%;
	height: 480px;
	background: linear-gradient(180deg, #60a5fa 0%, #93c5fd 40%, #bfdbfe 80%, #dbeafe 100%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rscard-stage-sky {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	opacity: 0.85;
}
.rscard-cloud {
	position: absolute;
	background: radial-gradient(ellipse at center, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,0) 80%);
	filter: blur(8px);
	border-radius: 50%;
	pointer-events: none;
}
.rscard-cloud-1 {
	width: 450px;
	height: 220px;
	top: -40px;
	left: -50px;
	animation: rscardCloudDrift 35s linear infinite alternate;
}
.rscard-cloud-2 {
	width: 550px;
	height: 260px;
	bottom: -60px;
	right: -80px;
	animation: rscardCloudDrift 45s linear infinite alternate-reverse;
}
.rscard-cloud-3 {
	width: 350px;
	height: 180px;
	top: 35%;
	left: 45%;
	animation: rscardCloudDrift 55s linear infinite alternate;
}
@keyframes rscardCloudDrift {
	0% { transform: translateX(-40px) translateY(0); }
	100% { transform: translateX(60px) translateY(-20px); }
}

/* 3D Envelope Container */
.rscard-anim-container {
	perspective: 1400px;
	width: 480px;
	height: 310px;
	position: relative;
	z-index: 5;
}

.rscard-envelope-3d {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.rscard-envelope-3d.is-flipped {
	transform: rotateY(180deg);
}

.rscard-envelope-3d.is-dismissed .rscard-env-back {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

.rscard-env-pocket-wrap,
.rscard-env-lining,
.rscard-env-flap-top {
	transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.rscard-envelope-3d.is-dismissed .rscard-env-pocket-wrap,
.rscard-envelope-3d.is-dismissed .rscard-env-flap-top,
.rscard-envelope-3d.is-dismissed .rscard-env-lining {
	transform: translateY(260px) !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Faces */
.rscard-env-face {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.1);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* FRONT FACE */
.rscard-env-front {
	background: #fdfbf7;
	border: 1px solid #e7e3d9;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 24px 30px 28px;
	box-sizing: border-box;
	transform: rotateY(0deg);
}

.rscard-env-stamp-wrap {
	position: absolute;
	top: 18px;
	right: 22px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.rscard-postal-stamp {
	width: 52px;
	height: 64px;
	background: #0284c7;
	border-radius: 2px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3px;
	position: relative;
	border: 2px dashed #ffffff;
}
.rscard-stamp-inner {
	background: #e0f2fe;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
}
.rscard-stamp-art {
	font-size: 20px;
	line-height: 1;
}
.rscard-stamp-lbl {
	font-size: 7.5px;
	font-weight: 800;
	color: #0369a1;
	letter-spacing: 0.5px;
	margin-top: 2px;
}
.rscard-postmark-seal {
	width: 90px;
	height: 42px;
	opacity: 0.85;
	pointer-events: none;
}
.rscard-postmark-svg {
	width: 100%;
	height: 100%;
}

.rscard-env-address {
	margin-top: 60px;
	text-align: center;
}
.rscard-env-for-label {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: 32px;
	color: #1e293b;
	margin-bottom: 4px;
}
.rscard-env-recipient-name {
	font-family: 'Dancing Script', cursive;
	font-size: 24px;
	color: #2563eb;
	min-height: 28px;
}

.rscard-env-play-btn {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff;
	border: 3px solid #ffffff;
	border-radius: 30px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.25s ease;
	animation: rscardPulsePlay 2s infinite ease-in-out;
}
.rscard-env-play-btn:hover {
	transform: scale(1.06);
	background: linear-gradient(135deg, #1d4ed8, #1e40af);
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.55);
}
@keyframes rscardPulsePlay {
	0%, 100% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); transform: scale(1); }
	50% { box-shadow: 0 8px 24px rgba(37, 99, 235, 0.65); transform: scale(1.04); }
}
.rscard-play-icon {
	font-size: 14px;
	line-height: 1;
}

/* BACK FACE */
.rscard-env-back {
	background: #f1ede4;
	border: 1px solid #dfdad0;
	transform: rotateY(180deg);
	overflow: visible;
}

.rscard-env-lining {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	border-radius: 12px;
	opacity: 0.95;
	clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 90%, 0 55%);
}

.rscard-env-flap-left {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0 0, 52% 52%, 0 100%);
	background: #f8f6f0;
	box-shadow: 2px 0 6px rgba(0,0,0,0.06);
	z-index: 3;
}
.rscard-env-flap-right {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(100% 0, 48% 52%, 100% 100%);
	background: #fdfbf7;
	box-shadow: -2px 0 6px rgba(0,0,0,0.06);
	z-index: 3;
}
.rscard-env-flap-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0 100%, 50% 48%, 100% 100%);
	background: #f5f2eb;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.06);
	z-index: 4;
}

.rscard-env-flap-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0 0, 50% 55%, 100% 0);
	background: #eae5da;
	transform-origin: top center;
	transform-style: preserve-3d;
	transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.1s ease 0.3s;
	z-index: 6;
	box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.rscard-env-flap-top.is-open {
	transform: rotateX(180deg);
	z-index: 1;
}

/* Sliding Card */
.rscard-sliding-card {
	position: absolute;
	bottom: 12px;
	left: 5%;
	width: 90%;
	height: 90%;
	z-index: 2;
	transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.25, 1), z-index 0.1s ease 0.5s, box-shadow 0.6s ease;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.rscard-sliding-card.is-extracted {
	transform: translateY(-88%) scale(1.08);
	z-index: 20;
	box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.rscard-sliding-card.is-centered {
	transform: translateY(-20%) scale(1.16);
	z-index: 30;
	box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.rscard-modal-card-inner {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
	border-radius: 10px;
}

.rscard-modal-card-msgbox {
	position: absolute;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 8px 12px;
	overflow: hidden;
}

.rscard-modal-card-text {
	width: 100%;
	line-height: 1.45;
	word-wrap: break-word;
	white-space: pre-wrap;
	text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}

.rscard-modal-card-sig {
	margin-top: 8px;
	font-weight: 700;
	font-size: 16px;
	text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}

/* Floating Replay Button */
.rscard-replay-btn {
	position: absolute;
	right: calc(50% - 310px);
	top: 50%;
	transform: translateY(-50%);
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0,0,0,0.18);
	z-index: 40;
	transition: all 0.2s ease;
	animation: rscardFadeIn 0.4s ease;
}
.rscard-replay-btn:hover {
	background: #2563eb;
	color: #ffffff;
	transform: translateY(-50%) scale(1.12) rotate(-25deg);
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}
@keyframes rscardFadeIn {
	from { opacity: 0; transform: translateY(-50%) scale(0.8); }
	to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.rscard-modal-confetti {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 25;
}

/* Modal Footer */
.rscard-modal-footer {
	padding: 16px 24px;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	z-index: 10;
}
.rscard-modal-footer-caption {
	font-size: 14px;
	color: #475569;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.rscard-caption-highlight {
	font-weight: 600;
	color: #1e293b;
}
.rscard-modal-footer-actions {
	display: flex;
	gap: 10px;
}

/* Trigger Button Styles */
.rscards-preview-tools {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 10px;
}
.rscards-btn-anim-preview {
	background: linear-gradient(135deg, #7c3aed, #6366f1);
	color: #ffffff;
	border: none;
	padding: 11px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	transition: all 0.25s ease;
	position: relative;
}
.rscards-btn-anim-preview:hover {
	background: linear-gradient(135deg, #6d28d9, #4f46e5);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
	color: #ffffff;
}
.rscards-pulse-dot {
	width: 8px;
	height: 8px;
	background: #34d399;
	border-radius: 50%;
	box-shadow: 0 0 0 rgba(52, 211, 153, 0.7);
	animation: rscardPulseDot 1.6s infinite;
}
@keyframes rscardPulseDot {
	0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
	70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.rscards-btn-preview-alt {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	color: #475569;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}
.rscards-btn-preview-alt:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Responsive Scaling */
@media (max-width: 640px) {
	.rscard-modal-stage { height: 380px; }
	.rscard-anim-container {
		width: 320px;
		height: 210px;
		transform: scale(0.9);
	}
	.rscard-env-address { margin-top: 30px; }
	.rscard-env-for-label { font-size: 24px; }
	.rscard-env-recipient-name { font-size: 18px; }
	.rscard-replay-btn {
		right: 12px;
		top: 16px;
		transform: none;
	}
	.rscard-replay-btn:hover {
		transform: scale(1.1);
	}
	.rscard-modal-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.rscard-modal-footer-actions {
		flex-direction: column;
	}
}
.rscards-thumb-card:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.rscards-preview-message { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) {
    .rscards-app-container *, .rscards-app-container *::before, .rscards-app-container *::after {
        animation: none !important; transition: none !important; scroll-behavior: auto !important;
    }
}
