/* ==========================================================================
   Digtiali Core — My Account Styles
   Brand: #781BAF (primary) | #5a52d6 (secondary)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Dashboard — Welcome Banner
   -------------------------------------------------------------------------- */
.digtiali-dashboard-welcome {
	padding: 20px;
	border-radius: 12px;
	background: #f8f8f8;
	margin-bottom: 25px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Dashboard — Grid + Cards
   -------------------------------------------------------------------------- */
.digtiali-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.digtiali-dashboard-box {
	background: #fff;
	border-radius: 12px;
	padding: 24px 20px;
	text-align: center;
	border-top: 3px solid #781BAF;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.digtiali-dashboard-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(120, 27, 175, 0.15);
}

.digtiali-dashboard-box h3 {
	font-size: 15px;
	margin: 8px 0 6px;
	color: #333;
}

.digtiali-dashboard-box p {
	margin: 0;
	font-size: 14px;
}

.digtiali-dashboard-box p a {
	color: #5a52d6;
	text-decoration: none;
}

.digtiali-dashboard-box p a:hover {
	text-decoration: underline;
}

.digtiali-dashboard-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 8px;
}

.digtiali-dashboard-icon svg {
	width: 100%;
	height: 100%;
	fill: #781BAF;
}

/* --------------------------------------------------------------------------
   Wallet Balance
   -------------------------------------------------------------------------- */
.digtiali-wallet-balance {
	font-size: 22px;
	font-weight: bold;
	color: #781BAF;
}

/* --------------------------------------------------------------------------
   Subscriptions — Table
   -------------------------------------------------------------------------- */
.digtiali-subscriptions-wrap {
	max-height: 600px;
	overflow-y: auto;
	margin-top: 20px;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
}

.digtiali-subscriptions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.digtiali-subscriptions-table thead th {
	background: #781BAF;
	color: #fff;
	padding: 12px 10px;
	text-align: right;
	font-weight: 600;
	position: sticky;
	top: 0;
	z-index: 1;
}

.digtiali-subscriptions-table tbody tr:nth-child(even) {
	background: #faf7fd;
}

.digtiali-subscriptions-table tbody tr:hover {
	background: #f3ecfa;
}

.digtiali-subscriptions-table td {
	padding: 10px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Status Badges
   -------------------------------------------------------------------------- */
.digtiali-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.digtiali-badge--active {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.digtiali-badge--expired {
	background: #fdecea;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

/* --------------------------------------------------------------------------
   Progress Bar (days remaining)
   -------------------------------------------------------------------------- */
.digtiali-progress {
	height: 6px;
	background: #eee;
	border-radius: 3px;
	margin-top: 5px;
	overflow: hidden;
}

.digtiali-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, #781BAF, #5a52d6);
	border-radius: 3px;
	transition: width 0.4s ease;
}

/* --------------------------------------------------------------------------
   Renew Button
   -------------------------------------------------------------------------- */
.digtiali-btn {
	background: #5a52d6 !important;
	color: #fff !important;
	padding: 8px 16px !important;
	border-radius: 6px !important;
	border: none !important;
	cursor: pointer !important;
	font-size: 13px !important;
	transition: background 0.2s ease !important;
}

.digtiali-btn:hover {
	background: #4640c0 !important;
}

.digtiali-added-msg {
	color: #2e7d32;
	font-size: 13px;
	margin-right: 8px;
}

/* --------------------------------------------------------------------------
   Subscription Countdown Boxes (order details page)
   -------------------------------------------------------------------------- */
.digtiali-countdown-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
}

.digtiali-countdown-box {
	flex: 1 1 250px;
	border-radius: 12px;
	padding: 15px 20px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.digtiali-countdown-box--active {
	background: #f8f3fd;
	border: 2px solid #781BAF;
}

.digtiali-countdown-box--expired {
	background: #fff3f3;
	border: 2px solid #ff6b6b;
}

.digtiali-countdown-box h4 {
	margin: 0 0 10px;
	font-size: 16px;
}

.digtiali-countdown-status {
	margin: 0;
	font-weight: bold;
}

.digtiali-countdown-box--active .digtiali-countdown-status {
	color: #781BAF;
}

.digtiali-countdown-box--expired .digtiali-countdown-status {
	color: #ff3b3b;
}

.digtiali-countdown-date {
	font-size: 13px;
	color: #666;
	margin: 5px 0 0;
}

/* --------------------------------------------------------------------------
   Activation Content (customer order details page)
   -------------------------------------------------------------------------- */
.digtiali-activation-content {
	margin-top: 30px;
	padding: 20px;
	border: 1px solid #e1e1e1;
	border-top: 4px solid #781BAF;
	border-radius: 6px;
}

.digtiali-activation-content__title {
	font-size: 1.2em;
	margin-bottom: 15px;
	color: #781BAF;
}

.digtiali-activation-content__body {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 4px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Order Website URL (customer order details page)
   -------------------------------------------------------------------------- */
.digtiali-order-website h3 {
	color: #781BAF;
}

/* --------------------------------------------------------------------------
   License-Manage — Order Boxes
   -------------------------------------------------------------------------- */
.digtiali-license-box {
	background: #fff;
	border-radius: 10px;
	border: 1px solid #e8e8e8;
	border-top: 3px solid #781BAF;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.digtiali-license-box:hover {
	box-shadow: 0 6px 18px rgba(120, 27, 175, 0.12);
}

.digtiali-license-box__header {
	background: #faf7fd;
	padding: 14px 20px;
	border-bottom: 1px solid #eee;
}

.digtiali-license-box__header h3 {
	margin: 0;
	font-size: 15px;
}

.digtiali-license-box__header a {
	color: #781BAF;
	text-decoration: none;
}

.digtiali-license-box__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.digtiali-license-box__col {
	padding: 16px 20px;
}

.digtiali-license-box__col:first-child {
	border-left: 1px solid #f0f0f0;
}

.digtiali-license-box__col h4 {
	margin: 0 0 10px;
	font-size: 14px;
	color: #781BAF;
}

.digtiali-license-box__col ul {
	margin: 0;
	padding-right: 20px;
}

.digtiali-license-box__activation {
	background: #f9f9f9;
	padding: 12px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.digtiali-pagination {
	text-align: center;
	margin: 30px 0;
}

.digtiali-pagination__item {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border-radius: 6px;
	border: 1px solid #ddd;
	color: #5a52d6;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s ease, color 0.2s ease;
}

.digtiali-pagination__item:hover {
	background: #5a52d6;
	color: #fff;
	border-color: #5a52d6;
}

.digtiali-pagination__item--current {
	background: #781BAF;
	color: #fff !important;
	border-color: #781BAF;
	font-weight: bold;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   RTL support
   -------------------------------------------------------------------------- */
body.rtl .digtiali-subscriptions-table thead th,
body.rtl .digtiali-subscriptions-table td {
	text-align: right;
}

body.rtl .digtiali-license-box__col:first-child {
	border-left: none;
	border-right: 1px solid #f0f0f0;
}

/* ==========================================================================
   Hosting Cashback Section — My Account Dashboard
   ========================================================================== */

.digi-hc-section {
	margin-top: 32px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(120, 27, 175, 0.3);
	box-shadow: 0 4px 24px rgba(120, 27, 175, 0.15);
	direction: rtl;
	font-family: 'Cairo', 'Almarai', system-ui, sans-serif;
}

.digi-hc-promo-header {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px 28px 24px;
	background: linear-gradient(135deg, rgba(120, 27, 175, 0.35) 0%, rgba(90, 82, 214, 0.25) 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.digi-hc-promo-text { flex: 1; min-width: 0; }

.digi-hc-main-title {
	font-size: clamp(1rem, 2.4vw, 1.35rem);
	font-weight: 800;
	color: #f4edf8;
	margin: 0 0 6px;
	line-height: 1.3;
}

.digi-hc-subtitle {
	font-size: 0.88rem;
	color: rgba(196, 184, 212, 0.75);
	margin: 0;
	line-height: 1.5;
}

.digi-hc-subtitle strong { color: #c084fc; }

.digi-hc-offer-strip {
	margin: 20px 28px 0;
	padding: 14px 20px;
	background: rgba(61, 214, 140, 0.10);
	border: 1px solid rgba(61, 214, 140, 0.25);
	border-radius: 10px;
	color: #3dd68c;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
}

.digi-hc-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	padding: 20px 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.digi-hc-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.87rem;
	color: rgba(196, 184, 212, 0.85);
	line-height: 1.5;
}

.digi-hc-feature__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(61, 214, 140, 0.15);
	border: 1.5px solid rgba(61, 214, 140, 0.35);
}

.digi-hc-feature__icon::after {
	content: '';
	display: block;
	width: 5px;
	height: 9px;
	border-right: 2px solid #3dd68c;
	border-bottom: 2px solid #3dd68c;
	transform: rotate(45deg) translate(-1px, -1px);
}

.digi-hc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
	padding: 24px 28px 28px;
}

.digi-hc-card {
	background: linear-gradient(160deg, rgba(120, 27, 175, 0.13) 0%, rgba(90, 82, 214, 0.07) 100%);
	border: 1px solid rgba(120, 27, 175, 0.22);
	border-radius: 16px;
	padding: 28px 22px 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
	position: relative;
	overflow: hidden;
}

.digi-hc-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #781BAF, #5a52d6);
	border-radius: 16px 16px 0 0;
}

.digi-hc-card:hover {
	background: linear-gradient(160deg, rgba(120, 27, 175, 0.24) 0%, rgba(90, 82, 214, 0.16) 100%);
	border-color: rgba(120, 27, 175, 0.45);
	transform: translateY(-5px);
	box-shadow: 0 14px 36px rgba(120, 27, 175, 0.3);
}

.digi-hc-card__logo {
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.digi-hc-card__logo img {
	max-height: 52px;
	max-width: 140px;
	object-fit: contain;
	filter: brightness(1.1) drop-shadow(0 1px 4px rgba(0,0,0,.2));
}

.digi-hc-card__logo--svg svg {
	width: auto;
	max-width: 160px;
	height: 48px;
	display: block;
}

.digi-hc-card__name-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	font-size: 1.3rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--hc-brand, #781BAF);
	border: 2px solid var(--hc-brand, #781BAF);
	border-radius: 10px;
	padding: 8px 14px;
	text-align: center;
	opacity: 0.92;
}

.digi-hc-card__offer {
	font-size: 0.93rem;
	font-weight: 600;
	color: rgba(220, 210, 240, 0.9);
	line-height: 1.45;
	flex: 1;
}

/* ── Coupon ── */
.digi-hc-coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	padding: 8px 12px;
}

.digi-hc-coupon__code {
	flex: 1;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 2px;
	color: #c084fc;
	text-align: center;
}

.digi-hc-coupon__copy {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(120, 27, 175, 0.22);
	border: 1px solid rgba(155, 45, 212, 0.35);
	border-radius: 6px;
	color: #c084fc;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 10px;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	transition: background 0.18s, color 0.18s;
	flex-shrink: 0;
}

.digi-hc-coupon__copy:hover {
	background: rgba(120, 27, 175, 0.4);
	color: #e2b6ff;
}

.digi-hc-coupon__copy.copied {
	background: rgba(61, 214, 140, 0.18);
	border-color: rgba(61, 214, 140, 0.35);
	color: #3dd68c;
}

.digi-hc-coupon__icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

/* ── Dark / light logo switching ── */
/* Default display (dark theme is default) */
.digi-hc-has-dark .digi-hc-logo-light { display: none; }
.digi-hc-has-dark .digi-hc-logo-dark  { display: block; }

/* Light theme: swap */
[data-theme="light"] .digi-hc-has-dark .digi-hc-logo-light { display: block; }
[data-theme="light"] .digi-hc-has-dark .digi-hc-logo-dark  { display: none; }

/* Cards without dark logo: always show single logo */
.digi-hc-card:not(.digi-hc-has-dark) .digi-hc-logo-light { display: block; }
.digi-hc-card:not(.digi-hc-has-dark) .digi-hc-logo-dark  { display: none; }

/* ── Affiliate button ── */
.digi-hc-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	padding: 9px 24px;
	background: #f59e0b;
	color: #1a0a00 !important;
	text-decoration: none !important;
	border-radius: 50px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
	margin-top: 4px;
}

.digi-hc-card__btn:hover {
	background: #d97706;
	box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
	transform: translateY(-1px);
}

[data-theme="light"] .digi-hc-section {
	background: linear-gradient(135deg, #f5f0fb 0%, #ede4f8 100%);
	border-color: rgba(120, 27, 175, 0.2);
}

[data-theme="light"] .digi-hc-promo-header {
	background: linear-gradient(135deg, rgba(120, 27, 175, 0.07) 0%, rgba(90, 82, 214, 0.05) 100%);
}

[data-theme="light"] .digi-hc-main-title { color: #1a0f2e; }
[data-theme="light"] .digi-hc-subtitle { color: #4a3560; }
[data-theme="light"] .digi-hc-subtitle strong { color: #781BAF; }

[data-theme="light"] .digi-hc-offer-strip {
	background: rgba(39, 174, 96, 0.07);
	border-color: rgba(39, 174, 96, 0.22);
	color: #1a7a44;
}

[data-theme="light"] .digi-hc-feature { color: #4a3560; }
[data-theme="light"] .digi-hc-feature__icon {
	background: rgba(39, 174, 96, 0.10);
	border-color: rgba(39, 174, 96, 0.3);
}
[data-theme="light"] .digi-hc-feature__icon::after {
	border-color: #1a7a44;
}

[data-theme="light"] .digi-hc-card {
	background: linear-gradient(160deg, rgba(120, 27, 175, 0.05) 0%, rgba(255,255,255, 0.9) 100%);
	border-color: rgba(120, 27, 175, 0.18);
}

[data-theme="light"] .digi-hc-card:hover {
	background: linear-gradient(160deg, rgba(120, 27, 175, 0.1) 0%, rgba(255,255,255, 0.95) 100%);
	border-color: rgba(120, 27, 175, 0.35);
}

[data-theme="light"] .digi-hc-card__name { color: #1a0f2e; }
[data-theme="light"] .digi-hc-card__offer { color: #4a3560; }

[data-theme="light"] .digi-hc-coupon {
	background: rgba(120, 27, 175, 0.05);
	border-color: rgba(120, 27, 175, 0.2);
}
[data-theme="light"] .digi-hc-coupon__code { color: #781BAF; }
[data-theme="light"] .digi-hc-coupon__copy {
	background: rgba(120, 27, 175, 0.08);
	border-color: rgba(120, 27, 175, 0.25);
	color: #781BAF;
}
[data-theme="light"] .digi-hc-coupon__copy:hover { background: rgba(120, 27, 175, 0.16); }

@media (max-width: 600px) {
	.digi-hc-promo-header { padding: 18px 16px 16px; gap: 12px; }
	.digi-hc-promo-icon { font-size: 34px; }
	.digi-hc-offer-strip { margin: 14px 16px 0; font-size: 0.9rem; }
	.digi-hc-features { padding: 16px; }
	.digi-hc-cards { grid-template-columns: 1fr; padding: 16px; }
}

/* ==========================================================================
   Rating Widget
   ========================================================================== */

.digtiali-rating-widget {
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 28px;
	direction: rtl;
}

.digtiali-rating-widget h3 {
	margin: 0 0 10px;
	font-size: 17px;
}

.digtiali-rating-widget p {
	margin: 0 0 14px;
	font-size: 14px;
}

/* Pending state — amber */
.digtiali-rating-widget--pending {
	background: #fffbf0;
	border-right: 4px solid #f39c12;
}

.digtiali-rating-widget--pending h3 {
	color: #b7770d;
}

/* Earned state */
.digtiali-rating-widget--earned {
	background: linear-gradient(135deg, rgba(39, 174, 96, 0.07) 0%, rgba(61, 214, 140, 0.03) 100%);
	border: 1px solid rgba(39, 174, 96, 0.22);
	border-right: 4px solid #27ae60;
	padding: 24px 28px;
	position: relative;
	overflow: hidden;
}

.digtiali-rating-widget--earned::before {
	content: '';
	position: absolute;
	top: -60px;
	left: -60px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(61, 214, 140, 0.10) 0%, transparent 70%);
	pointer-events: none;
}

/* Inner flex layout */
.digi-earned-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	direction: rtl;
}

.digi-earned-text { flex: 1; min-width: 0; }

.digi-earned-heading {
	font-size: 19px;
	font-weight: 800;
	color: #3dd68c;
	margin: 0 0 6px;
	line-height: 1.3;
}

.digi-earned-sub {
	font-size: 14px;
	color: rgba(196, 184, 212, 0.75);
	margin: 0 0 16px;
}

/* Coupon row */
.digi-earned-coupon-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.digtiali-rating-coupon {
	display: inline-block;
	font-size: 17px;
	font-weight: 700;
	color: #3dd68c;
	background: rgba(61, 214, 140, 0.08);
	border: 1.5px dashed rgba(61, 214, 140, 0.38);
	border-radius: 8px;
	padding: 8px 18px;
	letter-spacing: 2.5px;
	font-family: 'Courier New', 'Courier', monospace;
}

.digi-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(61, 214, 140, 0.10);
	border: 1px solid rgba(61, 214, 140, 0.25);
	border-radius: 7px;
	color: #3dd68c;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.18s, border-color 0.18s, color 0.18s;
	white-space: nowrap;
}

.digi-copy-btn:hover {
	background: rgba(61, 214, 140, 0.20);
	border-color: rgba(61, 214, 140, 0.45);
}

.digi-copy-btn.copied {
	background: rgba(61, 214, 140, 0.22);
	border-color: rgba(61, 214, 140, 0.55);
	color: #2ecc71;
}

/* 20% badge */
.digi-earned-badge {
	flex-shrink: 0;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, rgba(61, 214, 140, 0.18), rgba(39, 174, 96, 0.06));
	border: 2px solid rgba(61, 214, 140, 0.28);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 22px rgba(61, 214, 140, 0.12);
	position: relative;
}

.digi-earned-pct {
	font-size: 24px;
	font-weight: 900;
	color: #3dd68c;
	line-height: 1;
}

.digi-earned-sym {
	font-size: 16px;
}

.digi-earned-off {
	font-size: 11px;
	font-weight: 700;
	color: rgba(61, 214, 140, 0.65);
	margin-top: 1px;
	letter-spacing: 0.03em;
}

/* ── Light mode earned ── */
[data-theme="light"] .digtiali-rating-widget--earned {
	background: linear-gradient(135deg, #f0fbf4 0%, #e8f8ef 100%);
	border-color: rgba(39, 174, 96, 0.3);
	border-right-color: #27ae60;
}

[data-theme="light"] .digtiali-rating-widget--earned::before {
	background: radial-gradient(circle, rgba(39, 174, 96, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .digi-earned-heading { color: #1a7a44; }

[data-theme="light"] .digi-earned-sub { color: #4a6658; }

[data-theme="light"] .digtiali-rating-coupon {
	color: #1a7a44;
	background: rgba(39, 174, 96, 0.07);
	border-color: rgba(39, 174, 96, 0.35);
}

[data-theme="light"] .digi-copy-btn {
	background: rgba(39, 174, 96, 0.08);
	border-color: rgba(39, 174, 96, 0.25);
	color: #1a7a44;
}

[data-theme="light"] .digi-copy-btn:hover {
	background: rgba(39, 174, 96, 0.15);
}

[data-theme="light"] .digi-earned-badge {
	background: radial-gradient(circle at 40% 40%, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.04));
	border-color: rgba(39, 174, 96, 0.3);
	box-shadow: 0 0 22px rgba(39, 174, 96, 0.10);
}

[data-theme="light"] .digi-earned-pct { color: #1a7a44; }

[data-theme="light"] .digi-earned-off { color: rgba(26, 122, 68, 0.6); }

/* Product list */
.digtiali-rating-product-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.digtiali-rating-product-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f5e9cc;
	font-size: 14px;
	gap: 12px;
}

.digtiali-rating-product-list li:last-child {
	border-bottom: none;
}

/* Rate now button */
.digtiali-rating-btn {
    background: #f39c12;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 16px;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.digtiali-rating-btn:hover {
	background: #d68910;
}

/* ==========================================================================
   Order Header Banner (view-order page)
   ========================================================================== */

.digtiali-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #faf7fd;
	border: 1px solid #e8daf5;
	border-top: 3px solid #781BAF;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.digtiali-order-header__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.digtiali-order-header__number {
	font-size: 16px;
	font-weight: 700;
	color: #781BAF;
}

.digtiali-order-header__date {
	font-size: 13px;
	color: #888;
}

/* Status badge base */
.digtiali-order-header__status {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.digtiali-order-status--completed {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.digtiali-order-status--processing {
	background: #e3f2fd;
	color: #1565c0;
	border: 1px solid #90caf9;
}

.digtiali-order-status--on-hold {
	background: #fff8e1;
	color: #e65100;
	border: 1px solid #ffe082;
}

.digtiali-order-status--cancelled,
.digtiali-order-status--failed {
	background: #fdecea;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

.digtiali-order-status--pending {
	background: #f3e5f5;
	color: #6a1b9a;
	border: 1px solid #ce93d8;
}

/* ==========================================================================
   Order Summary Table
   ========================================================================== */

.woocommerce-order .woocommerce-table--order-details {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e8daf5;
	box-shadow: 0 2px 10px rgba(120, 27, 175, 0.06);
	margin-bottom: 24px;
}

.woocommerce-order .woocommerce-table--order-details thead th {
	background: #781BAF;
	color: #fff;
	padding: 12px 16px;
	font-weight: 600;
	border: none;
}

.woocommerce-order .woocommerce-table--order-details tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid #f0eaf8;
}

.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child th {
	font-weight: 700;
	color: #781BAF;
	font-size: 15px;
}

/* ==========================================================================
   Order Meta Card (website URL)
   ========================================================================== */

.digtiali-order-meta-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #faf7fd;
	border: 1px solid #e8daf5;
	border-radius: 10px;
	padding: 16px 20px;
	margin-top: 20px;
}

.digtiali-order-meta-card__icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.digtiali-order-meta-card__content h3 {
	margin: 0 0 6px;
	font-size: 15px;
	color: #781BAF;
}

.digtiali-order-meta-card__content p {
	margin: 0;
	font-size: 14px;
}

.digtiali-order-meta-card__content a {
	color: #5a52d6;
	word-break: break-all;
}

/* ==========================================================================
   Activation Content — title checkmark
   ========================================================================== */

.digtiali-activation-content__title::before {
	content: '✓ ';
	color: #781BAF;
	font-weight: bold;
}

/* ==========================================================================
   RTL adjustments for new components
   ========================================================================== */

body.rtl .digtiali-rating-widget--pending,
body.rtl .digtiali-rating-widget--earned {
	border-right: none;
}

body.rtl .digtiali-rating-widget--pending {
	border-left: 4px solid #f39c12;
}

body.rtl .digtiali-rating-widget--earned {
	border-left: 4px solid #27ae60;
	border-right: none;
}

/* ==========================================================================
   Orders Table — branded card design (dark + light)
   ========================================================================== */

:root {
	--digi-ot-purple:      #781BAF;
	--digi-ot-purple-2:    #9B2DD4;
	--digi-ot-surface:     rgba(255, 255, 255, 0.032);
	--digi-ot-surface-row: rgba(120, 27, 175, 0.07);
	--digi-ot-border:      rgba(255, 255, 255, 0.08);
	--digi-ot-ink:         #F4EDF8;
	--digi-ot-ink-dim:     #C4B8D4;
	--digi-ot-ink-mute:    rgba(196, 184, 212, 0.52);
	--digi-ot-green:       #3dd68c;
	--digi-ot-blue:        #74b4ff;
	--digi-ot-amber:       #fbbf24;
	--digi-ot-red:         #f87171;
	--digi-ot-font:        'Cairo', 'Almarai', system-ui, sans-serif;
}

.digi-orders-title {
	font-size: clamp(1.4rem, 2.5vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--digi-ot-ink);
	margin: 0 0 clamp(1.1rem, 2.2vw, 1.5rem);
	font-family: var(--digi-ot-font);
}

.digi-orders-table-wrap {
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid var(--digi-ot-border);
	background: var(--digi-ot-surface);
	scrollbar-width: thin;
	scrollbar-color: rgba(155, 45, 212, 0.30) transparent;
}

/* ── Table reset inside our wrapper ── */
.digi-orders-table-wrap .woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	font-family: var(--digi-ot-font);
	margin: 0;
}

/* ── Header ── */
.digi-orders-table-wrap .woocommerce-orders-table__header {
	padding: 13px 18px !important;
	text-align: right !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	color: var(--digi-ot-ink-mute) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	white-space: nowrap !important;
	border-bottom: 1px solid var(--digi-ot-border) !important;
	background: rgba(255, 255, 255, 0.02) !important;
}

/* ── Body rows ── */
.digi-orders-table-wrap .woocommerce-orders-table__row {
	border-bottom: 1px solid var(--digi-ot-border) !important;
	transition: background 0.16s ease, box-shadow 0.16s ease;
}

.digi-orders-table-wrap .woocommerce-orders-table__row:last-child {
	border-bottom: 0 !important;
}

.digi-orders-table-wrap .woocommerce-orders-table__row:hover {
	background: var(--digi-ot-surface-row) !important;
	box-shadow: inset 3px 0 0 var(--digi-ot-purple-2);
}

/* ── Body cells ── */
.digi-orders-table-wrap .woocommerce-orders-table__cell {
	padding: 15px 18px !important;
	vertical-align: middle !important;
	color: var(--digi-ot-ink-dim) !important;
	border-bottom: 0 !important;
}

/* Order number */
.digi-orders-table-wrap .woocommerce-orders-table__cell-order-number a {
	color: var(--digi-ot-purple-2) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	font-size: 0.88rem;
}

/* Date — muted smaller */
.digi-orders-table-wrap .woocommerce-orders-table__cell-order-date {
	font-size: 0.82rem !important;
	color: var(--digi-ot-ink-mute) !important;
	white-space: nowrap;
}

/* Total — white bold */
.digi-orders-table-wrap .woocommerce-orders-table__cell-order-total {
	font-weight: 700 !important;
	color: var(--digi-ot-ink) !important;
	font-size: 0.9rem !important;
}

/* ── Status chips ── */
.digi-orders-table-wrap .order-status {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	padding: 4px 10px !important;
	border-radius: 999px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
	letter-spacing: 0.03em !important;
	background: transparent !important;
	color: var(--digi-ot-ink-dim) !important;
}

.digi-orders-table-wrap .order-status::before {
	content: '' !important;
	display: block !important;
	width: 5px !important;
	height: 5px !important;
	border-radius: 50% !important;
	flex-shrink: 0 !important;
	background: currentColor !important;
}

.digi-orders-table-wrap .status-completed {
	background: rgba(61, 214, 140, 0.10) !important;
	color: var(--digi-ot-green) !important;
	border: 1px solid rgba(61, 214, 140, 0.22) !important;
}

.digi-orders-table-wrap .status-completed::before {
	box-shadow: 0 0 6px var(--digi-ot-green) !important;
}

.digi-orders-table-wrap .status-processing {
	background: rgba(116, 180, 255, 0.10) !important;
	color: var(--digi-ot-blue) !important;
	border: 1px solid rgba(116, 180, 255, 0.22) !important;
}

.digi-orders-table-wrap .status-on-hold {
	background: rgba(251, 191, 36, 0.10) !important;
	color: var(--digi-ot-amber) !important;
	border: 1px solid rgba(251, 191, 36, 0.22) !important;
}

.digi-orders-table-wrap .status-cancelled,
.digi-orders-table-wrap .status-failed {
	background: rgba(248, 113, 113, 0.10) !important;
	color: var(--digi-ot-red) !important;
	border: 1px solid rgba(248, 113, 113, 0.22) !important;
}

.digi-orders-table-wrap .status-pending {
	background: rgba(155, 45, 212, 0.10) !important;
	color: var(--digi-ot-purple-2) !important;
	border: 1px solid rgba(155, 45, 212, 0.22) !important;
}

/* ── Action button (View) ── */
.digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions .button,
.digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions a.button {
	display: inline-flex !important;
	align-items: center !important;
	padding: 7px 15px !important;
	background: rgba(120, 27, 175, 0.16) !important;
	color: #c084fc !important;
	border: 1px solid rgba(155, 45, 212, 0.28) !important;
	border-radius: 8px !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	font-family: var(--digi-ot-font) !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s !important;
	box-shadow: none !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions .button:hover,
.digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions a.button:hover {
	background: rgba(120, 27, 175, 0.32) !important;
	border-color: rgba(155, 45, 212, 0.52) !important;
	color: #e2b6ff !important;
	box-shadow: 0 4px 14px rgba(120, 27, 175, 0.25) !important;
}

/* ── Light theme ── */
[data-theme="light"] .digi-orders-title {
	color: #1a0f2e;
}

[data-theme="light"] .digi-orders-table-wrap {
	background: rgba(255, 255, 255, 0.70);
	border-color: rgba(120, 27, 175, 0.14);
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__header {
	color: rgba(90, 70, 120, 0.55) !important;
	border-bottom-color: rgba(120, 27, 175, 0.10) !important;
	background: rgba(120, 27, 175, 0.02) !important;
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__row {
	border-bottom-color: rgba(120, 27, 175, 0.08) !important;
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__row:hover {
	background: rgba(120, 27, 175, 0.04) !important;
	box-shadow: inset 3px 0 0 var(--digi-ot-purple);
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell {
	color: #4a3560 !important;
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell-order-number a {
	color: var(--digi-ot-purple) !important;
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell-order-total {
	color: #1a0f2e !important;
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions .button,
[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions a.button {
	color: var(--digi-ot-purple) !important;
	border-color: rgba(120, 27, 175, 0.32) !important;
	background: rgba(120, 27, 175, 0.06) !important;
}

[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions .button:hover,
[data-theme="light"] .digi-orders-table-wrap .woocommerce-orders-table__cell-order-actions a.button:hover {
	background: rgba(120, 27, 175, 0.14) !important;
	border-color: rgba(120, 27, 175, 0.50) !important;
	color: var(--digi-ot-purple-2) !important;
}

/* ── Mobile responsive ── */
@media (max-width: 720px) {
	.digi-orders-table-wrap .woocommerce-orders-table,
	.digi-orders-table-wrap .woocommerce-orders-table thead,
	.digi-orders-table-wrap .woocommerce-orders-table tbody,
	.digi-orders-table-wrap .woocommerce-orders-table th,
	.digi-orders-table-wrap .woocommerce-orders-table td,
	.digi-orders-table-wrap .woocommerce-orders-table tr {
		display: block;
	}

	.digi-orders-table-wrap .woocommerce-orders-table thead {
		position: absolute;
		width: 1px; height: 1px;
		padding: 0; margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap; border: 0;
	}

	.digi-orders-table-wrap .woocommerce-orders-table__row {
		padding: 14px 16px;
		border-bottom: 1px solid var(--digi-ot-border) !important;
	}

	.digi-orders-table-wrap .woocommerce-orders-table__cell {
		display: grid !important;
		grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
		gap: 0.4rem 0.85rem;
		align-items: center;
		padding: 5px 0 !important;
		text-align: right;
	}

	.digi-orders-table-wrap .woocommerce-orders-table__cell::before {
		content: attr(data-title);
		font-weight: 700;
		font-size: 0.7rem;
		color: var(--digi-ot-ink-mute);
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}
}

/* ==========================================================================
   Subscriptions — Card Grid
   ========================================================================== */

.digi-subs-wrap {
	width: 100%;
	font-family: var(--digi-ot-font);
}

.digi-subs-title {
	font-size: clamp(1.4rem, 2.5vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--digi-ot-ink);
	margin: 0 0 clamp(1.1rem, 2.2vw, 1.5rem);
}

.digi-subs-empty {
	padding: 36px 28px;
	text-align: center;
	border-radius: 14px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.032);
	color: rgba(196, 184, 212, 0.52);
	font-size: 0.95rem;
}

.digi-subs-empty p { margin: 0; }

/* ── Grid ── */
.digi-subs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.digi-subs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Card base ── */
.digi-subs-card {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	direction: rtl;
}

.digi-subs-card--active  { border-color: rgba(61, 214, 140, 0.45); }
.digi-subs-card--expired { border-color: rgba(248, 113, 113, 0.40); }

/* ── Header ── */
.digi-subs-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 14px;
}

.digi-subs-card__name-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.digi-subs-card__name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--digi-ot-ink);
	line-height: 1.4;
}

.digi-subs-card__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.10);
}

.digi-subs-card__thumb--placeholder {
	background: rgba(255, 255, 255, 0.06);
}

/* ── Badge ── */
.digi-subs-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	width: fit-content;
}

.digi-subs-badge--active {
	background: rgba(61, 214, 140, 0.12);
	color: var(--digi-ot-green);
	border: 1px solid rgba(61, 214, 140, 0.30);
}

.digi-subs-badge--expired {
	background: rgba(248, 113, 113, 0.12);
	color: var(--digi-ot-red);
	border: 1px solid rgba(248, 113, 113, 0.28);
}

/* ── Divider ── */
.digi-subs-card__divider {
	margin: 0;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Data rows ── */
.digi-subs-card__rows {
	margin: 0;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.digi-subs-card__row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
	align-items: start;
	font-size: 0.85rem;
}

.digi-subs-card__row dt {
	color: var(--digi-ot-ink-mute);
	white-space: nowrap;
	font-weight: 500;
}

.digi-subs-card__row dd {
	margin: 0;
	color: var(--digi-ot-ink-dim);
	word-break: break-all;
}

.digi-subs-card__code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.8rem;
	background: rgba(255, 255, 255, 0.06);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--digi-ot-ink-dim);
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.digi-subs-card__muted { color: var(--digi-ot-ink-mute); }

/* ── Days remaining ── */
.digi-subs-days-left {
	display: block;
	margin-top: 3px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--digi-ot-amber);
}

.digi-subs-days-left--expired { color: var(--digi-ot-red); }

/* ── Footer ── */
.digi-subs-card__footer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.digi-subs-card__footer form.cart {
	margin: 0;
	padding: 0;
}

/* ── Buttons ── */
.digi-subs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	font-family: var(--digi-ot-font);
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.16s, border-color 0.16s, color 0.16s;
	border: 1px solid transparent;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none !important;
	box-shadow: none !important;
}

.digi-subs-btn--ghost {
	flex: 1;
	background: rgba(255, 255, 255, 0.05);
	color: var(--digi-ot-ink-dim) !important;
	border-color: rgba(255, 255, 255, 0.10);
}

.digi-subs-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.10);
	color: var(--digi-ot-ink) !important;
}

.digi-subs-btn--renew {
	background: rgba(120, 27, 175, 0.16) !important;
	color: #c084fc !important;
	border-color: rgba(155, 45, 212, 0.32) !important;
}

.digi-subs-btn--renew:hover {
	background: rgba(120, 27, 175, 0.32) !important;
	border-color: rgba(155, 45, 212, 0.55) !important;
	color: #e2b6ff !important;
}

/* ── Light theme ── */
[data-theme="light"] .digi-subs-title { color: #1a0f2e; }

[data-theme="light"] .digi-subs-empty {
	border-color: rgba(120, 27, 175, 0.15);
	background: rgba(120, 27, 175, 0.03);
	color: rgba(90, 70, 120, 0.5);
}

[data-theme="light"] .digi-subs-card {
	background: #fff;
	border-color: rgba(120, 27, 175, 0.12);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .digi-subs-card--active  { border-color: #4ade80; }
[data-theme="light"] .digi-subs-card--expired { border-color: #f87171; }

[data-theme="light"] .digi-subs-card__name { color: #1a0f2e; }

[data-theme="light"] .digi-subs-card__thumb {
	border-color: rgba(120, 27, 175, 0.12);
}

[data-theme="light"] .digi-subs-card__divider { border-top-color: #f0f0f0; }

[data-theme="light"] .digi-subs-card__row dt { color: #888; }
[data-theme="light"] .digi-subs-card__row dd { color: #333; }

[data-theme="light"] .digi-subs-card__code {
	background: #f4f4f4;
	color: #555;
}

[data-theme="light"] .digi-subs-card__footer {
	border-top-color: #f0f0f0;
	background: #fafafa;
}

[data-theme="light"] .digi-subs-btn--ghost {
	background: #f4f4f4;
	color: #444 !important;
	border-color: #e0e0e0;
}

[data-theme="light"] .digi-subs-btn--ghost:hover {
	background: #ebebeb;
	color: #222 !important;
}

[data-theme="light"] .digi-subs-btn--renew {
	background: rgba(120, 27, 175, 0.08) !important;
	color: #781BAF !important;
	border-color: rgba(120, 27, 175, 0.28) !important;
}

[data-theme="light"] .digi-subs-btn--renew:hover {
	background: rgba(120, 27, 175, 0.16) !important;
	border-color: rgba(120, 27, 175, 0.45) !important;
	color: #9B2DD4 !important;
}

/* ==========================================================================
   Pre-orders — Card Grid
   ========================================================================== */

.digi-preorders-wrap {
	width: 100%;
	font-family: var(--digi-ot-font);
}

.digi-preorders-title {
	font-size: clamp(1.4rem, 2.5vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--digi-ot-ink);
	margin: 0 0 clamp(1.1rem, 2.2vw, 1.5rem);
}

.digi-preorders-empty {
	padding: 36px 28px;
	text-align: center;
	border-radius: 14px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.032);
	color: rgba(196, 184, 212, 0.52);
	font-size: 0.95rem;
}

.digi-preorders-empty p { margin: 0; }

/* ── Grid ── */
.digi-preorders-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.digi-preorders-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Card base ── */
.digi-preorders-card {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	direction: rtl;
}

.digi-preorders-card--funded  { border-color: rgba(61, 214, 140, 0.45); }
.digi-preorders-card--pending { border-color: rgba(160, 32, 232, 0.35); }

/* ── Header ── */
.digi-preorders-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 14px;
}

.digi-preorders-card__name-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.digi-preorders-card__name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--digi-ot-ink);
	line-height: 1.4;
}

.digi-preorders-card__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.10);
}

.digi-preorders-card__thumb--placeholder {
	background: rgba(255, 255, 255, 0.06);
}

/* ── Badge ── */
.digi-preorders-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	width: fit-content;
}

.digi-preorders-badge--funded {
	background: rgba(61, 214, 140, 0.12);
	color: var(--digi-ot-green);
	border: 1px solid rgba(61, 214, 140, 0.30);
}

.digi-preorders-badge--pending {
	background: rgba(160, 32, 232, 0.12);
	color: #c77dff;
	border: 1px solid rgba(160, 32, 232, 0.30);
}

/* ── Divider ── */
.digi-preorders-card__divider {
	margin: 0;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Data rows ── */
.digi-preorders-card__rows {
	margin: 0;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.digi-preorders-card__row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
	align-items: start;
	font-size: 0.85rem;
}

.digi-preorders-card__row dt {
	color: var(--digi-ot-ink-mute);
	white-space: nowrap;
	font-weight: 500;
}

.digi-preorders-card__row dd {
	margin: 0;
	color: var(--digi-ot-ink-dim);
	word-break: break-all;
}

/* ── Embedded progress bar ── */
.digi-preorders-card__progress {
	padding: 0 18px 14px;
}

.digi-preorders-card__progress .dg-preorder-bar--compact {
	margin-top: 0;
}

/* ── Footer ── */
.digi-preorders-card__footer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Buttons ── */
.digi-preorders-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	font-family: var(--digi-ot-font);
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.16s, border-color 0.16s, color 0.16s;
	border: 1px solid transparent;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none !important;
	box-shadow: none !important;
}

.digi-preorders-btn--ghost {
	flex: 1;
	background: rgba(255, 255, 255, 0.05);
	color: var(--digi-ot-ink-dim) !important;
	border-color: rgba(255, 255, 255, 0.10);
}

.digi-preorders-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.10);
	color: var(--digi-ot-ink) !important;
}

.digi-preorders-btn--funded {
	background: rgba(61, 214, 140, 0.14) !important;
	color: #4ade80 !important;
	border-color: rgba(61, 214, 140, 0.32) !important;
}

.digi-preorders-btn--funded:hover {
	background: rgba(61, 214, 140, 0.26) !important;
	border-color: rgba(61, 214, 140, 0.55) !important;
	color: #6ee7a3 !important;
}

/* ── Light theme ── */
[data-theme="light"] .digi-preorders-title { color: #1a0f2e; }

[data-theme="light"] .digi-preorders-empty {
	border-color: rgba(120, 27, 175, 0.15);
	background: rgba(120, 27, 175, 0.03);
	color: rgba(90, 70, 120, 0.5);
}

[data-theme="light"] .digi-preorders-card {
	background: #fff;
	border-color: rgba(120, 27, 175, 0.12);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .digi-preorders-card--funded  { border-color: #4ade80; }
[data-theme="light"] .digi-preorders-card--pending { border-color: rgba(120, 27, 175, 0.35); }

[data-theme="light"] .digi-preorders-card__name { color: #1a0f2e; }

[data-theme="light"] .digi-preorders-card__thumb {
	border-color: rgba(120, 27, 175, 0.12);
}

[data-theme="light"] .digi-preorders-card__divider { border-top-color: #f0f0f0; }

[data-theme="light"] .digi-preorders-card__row dt { color: #888; }
[data-theme="light"] .digi-preorders-card__row dd { color: #333; }

[data-theme="light"] .digi-preorders-card__footer {
	border-top-color: #f0f0f0;
	background: #fafafa;
}

[data-theme="light"] .digi-preorders-btn--ghost {
	background: #f4f4f4;
	color: #444 !important;
	border-color: #e0e0e0;
}

[data-theme="light"] .digi-preorders-btn--ghost:hover {
	background: #ebebeb;
	color: #222 !important;
}

[data-theme="light"] .digi-preorders-btn--funded {
	background: rgba(61, 214, 140, 0.10) !important;
	color: #16a34a !important;
	border-color: rgba(61, 214, 140, 0.35) !important;
}

[data-theme="light"] .digi-preorders-btn--funded:hover {
	background: rgba(61, 214, 140, 0.18) !important;
	border-color: rgba(61, 214, 140, 0.55) !important;
	color: #15803d !important;
}

/* ==========================================================================
   Review Modal
   ========================================================================== */

.digtiali-review-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.15s ease-out;
}

.digtiali-review-modal-overlay[hidden] {
	display: none !important;
}

.digtiali-review-modal-overlay.is-open {
	opacity: 1;
}

.digtiali-review-modal-overlay.is-closing {
	opacity: 0;
}

.digtiali-review-modal-card {
	background: #17171833;
	border: 1px solid rgba(155, 45, 212, 0.28);
	border-radius: 16px;
	padding: 28px 24px;
	max-width: 480px;
	width: calc(100% - 32px);
	position: relative;
	transform: scale(0.95);
	opacity: 0;
	transition: transform 0.15s ease-out, opacity 0.15s ease-out;
	color: #f4edf8;
}

.digtiali-review-modal-overlay.is-open .digtiali-review-modal-card {
	transform: scale(1);
	opacity: 1;
}

.digtiali-review-modal-overlay.is-closing .digtiali-review-modal-card {
	transform: scale(0.95);
	opacity: 0;
	transition-duration: 0.12s;
}

/* Close button */
.digtiali-review-modal-close {
	position: absolute;
	top: 14px;
	left: 14px;
	background: transparent;
	border: none;
	color: rgba(196, 184, 212, 0.6);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.digtiali-review-modal-close:hover {
	color: #f4edf8;
	background: rgba(255, 255, 255, 0.08);
}

/* Product header */
.digtiali-review-modal-product {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	padding-top: 4px;
}

.digtiali-review-modal-img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid rgba(155, 45, 212, 0.28);
}

.digtiali-review-modal-title {
	font-size: 16px;
	font-weight: 700;
	color: #f4edf8;
	margin: 0;
}

/* Stars */
.digtiali-review-modal-stars {
	display: flex;
	gap: 6px;
	margin-bottom: 6px;
}

.digtiali-star-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 2rem;
	color: #4a4060;
	padding: 4px;
	line-height: 1;
	transition: color 0.15s, text-shadow 0.15s;
}

.digtiali-star-btn.hovered,
.digtiali-star-btn.selected {
	color: #9B2DD4;
	text-shadow: 0 0 10px rgba(155, 45, 212, 0.6);
}

.digtiali-star-btn:focus-visible {
	outline: 2px solid #9B2DD4;
	border-radius: 4px;
}

.digtiali-review-modal-stars-hint {
	font-size: 13px;
	color: rgba(196, 184, 212, 0.6);
	margin: 0 0 16px;
}

/* Comment textarea */
.digtiali-review-modal-comment {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(155, 45, 212, 0.28) !important;
	border-radius: 8px !important;
	color: #f4edf8 !important;
	padding: 10px 14px !important;
	font-size: 14px;
	resize: vertical;
	direction: rtl;
	font-family: inherit;
	transition: border-color 0.15s;
	margin-bottom: 14px;
	box-shadow: none !important;
}

.digtiali-review-modal-comment:focus {
	outline: none !important;
	border-color: rgba(155, 45, 212, 0.6) !important;
	box-shadow: none !important;
}

.digtiali-review-modal-comment::placeholder {
	color: rgba(196, 184, 212, 0.4) !important;
}

/* Inline error */
.digtiali-review-modal-error {
	background: rgba(248, 113, 113, 0.12);
	border: 1px solid rgba(248, 113, 113, 0.3);
	border-radius: 6px;
	color: #f87171;
	font-size: 13px;
	padding: 8px 12px;
	margin-bottom: 12px;
	direction: rtl;
}

/* Submit button */
.digtiali-review-modal-submit {
	width: 100%;
	background: #781BAF;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, opacity 0.2s;
	position: relative;
}

.digtiali-review-modal-submit:hover:not(:disabled) {
	background: #9B2DD4;
}

.digtiali-review-modal-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.digtiali-review-modal-submit.loading {
	color: transparent;
	pointer-events: none;
}

.digtiali-review-modal-submit.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: digi-spin 0.7s linear infinite;
}

@keyframes digi-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Row removal animation */
.digtiali-rating-product-list li {
	max-height: 200px;
}

.digtiali-rating-product-list li.removing {
	background: rgba(61, 214, 140, 0.12);
	transition: background 0.2s ease;
}

/* ── Light mode modal ── */
[data-theme="light"] .digtiali-review-modal-overlay {
	background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .digtiali-review-modal-card {
	background: #ffffff;
	border-color: rgba(120, 27, 175, 0.18);
	color: #1a0f2e;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .digtiali-review-modal-title {
	color: #1a0f2e;
}

[data-theme="light"] .digtiali-review-modal-close {
	color: rgba(90, 70, 120, 0.45);
}

[data-theme="light"] .digtiali-review-modal-close:hover {
	color: #1a0f2e;
	background: rgba(120, 27, 175, 0.07);
}

[data-theme="light"] .digtiali-review-modal-img {
	border-color: rgba(120, 27, 175, 0.18);
}

[data-theme="light"] .digtiali-star-btn {
	color: #d5c5e8;
}

[data-theme="light"] .digtiali-star-btn.hovered,
[data-theme="light"] .digtiali-star-btn.selected {
	color: #781BAF;
	text-shadow: 0 0 10px rgba(120, 27, 175, 0.25);
}

[data-theme="light"] .digtiali-review-modal-stars-hint {
	color: rgba(90, 70, 120, 0.5);
}

[data-theme="light"] .digtiali-review-modal-comment {
	background: #f5f0fb !important;
	border-color: rgba(120, 27, 175, 0.2) !important;
	color: #1a0f2e !important;
}

[data-theme="light"] .digtiali-review-modal-comment::placeholder {
	color: rgba(90, 70, 120, 0.38) !important;
}

[data-theme="light"] .digtiali-review-modal-comment:focus {
	border-color: rgba(120, 27, 175, 0.48) !important;
	background: #ede4f8 !important;
}

[data-theme="light"] .digtiali-review-modal-error {
	background: rgba(220, 53, 69, 0.07);
	border-color: rgba(220, 53, 69, 0.22);
	color: #b91c1c;
}

[data-theme="light"] .digtiali-review-modal-submit {
	background: #781BAF;
	box-shadow: 0 4px 16px rgba(120, 27, 175, 0.3);
}

[data-theme="light"] .digtiali-review-modal-submit:hover:not(:disabled) {
	background: #9B2DD4;
	box-shadow: 0 6px 20px rgba(120, 27, 175, 0.4);
}

