/* =========================================================
   DIGITEM LICENSE SYSTEM - ADAPTIVE LIGHT & DARK THEME
   ========================================================= */

.digitem-receipt-licenses,
.digitem-my-licenses-wrap {
	margin: 35px 0 !important;
	padding: 24px !important;
	border-radius: 14px !important;
	direction: rtl !important;
	text-align: right !important;
	box-sizing: border-box !important;
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
	font-family: inherit !important;
}

/* ---------------------------------------------------------
   1. LIGHT MODE (Default - body without .sp-night-mode-on)
   --------------------------------------------------------- */
body:not(.sp-night-mode-on) .digitem-receipt-licenses,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
	color: #1e293b !important;
}
body:not(.sp-night-mode-on) .digitem-receipt-licenses h3,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap h3 {
	color: #15803d !important;
}
body:not(.sp-night-mode-on) .digitem-receipt-licenses h3 span,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap h3 span {
	color: #15803d !important;
}
body:not(.sp-night-mode-on) .digitem-receipt-licenses p,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap p {
	color: #475569 !important;
}
body:not(.sp-night-mode-on) .digitem-receipt-licenses table,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap table {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
}
body:not(.sp-night-mode-on) .digitem-receipt-licenses th,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap th {
	background: #f8fafc !important;
	color: #0f172a !important;
	border-bottom: 2px solid #e2e8f0 !important;
}
body:not(.sp-night-mode-on) .digitem-receipt-licenses td,
body:not(.sp-night-mode-on) .digitem-my-licenses-wrap td {
	background: #ffffff !important;
	color: #1e293b !important;
	border-bottom: 1px solid #f1f5f9 !important;
}
body:not(.sp-night-mode-on) .digitem-domain-input {
	background: #ffffff !important;
	color: #0f172a !important;
	border: 1px solid #cbd5e1 !important;
}
body:not(.sp-night-mode-on) .digitem-domain-input:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
body:not(.sp-night-mode-on) .digitem-register-domain-btn {
	background: #2563eb !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}
body:not(.sp-night-mode-on) .digitem-register-domain-btn:hover {
	background: #1d4ed8 !important;
	color: #ffffff !important;
}
body:not(.sp-night-mode-on) .digitem-pending-badge {
	background: #fffbeb !important;
	color: #b45309 !important;
	border: 1px solid #fde68a !important;
}
body:not(.sp-night-mode-on) .digitem-code-copy {
	background: #f0fdf4 !important;
	color: #15803d !important;
	border: 1px solid #bbf7d0 !important;
}
body:not(.sp-night-mode-on) .digitem-active-domain-badge {
	background: #eff6ff !important;
	color: #1d4ed8 !important;
	border: 1px solid #bfdbfe !important;
}

/* ---------------------------------------------------------
   2. DARK MODE (Mayosis Theme: body.sp-night-mode-on)
   --------------------------------------------------------- */
body.sp-night-mode-on .digitem-receipt-licenses,
body.sp-night-mode-on .digitem-my-licenses-wrap {
	background: #191044 !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
	color: #ffffff !important;
}
body.sp-night-mode-on .digitem-receipt-licenses h3,
body.sp-night-mode-on .digitem-my-licenses-wrap h3 {
	color: #4ade80 !important;
}
body.sp-night-mode-on .digitem-receipt-licenses h3 span,
body.sp-night-mode-on .digitem-my-licenses-wrap h3 span {
	color: #4ade80 !important;
}
body.sp-night-mode-on .digitem-receipt-licenses p,
body.sp-night-mode-on .digitem-my-licenses-wrap p {
	color: #cbd5e1 !important;
}
body.sp-night-mode-on .digitem-receipt-licenses table,
body.sp-night-mode-on .digitem-my-licenses-wrap table {
	background: #120a35 !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
body.sp-night-mode-on .digitem-receipt-licenses th,
body.sp-night-mode-on .digitem-my-licenses-wrap th {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #ffffff !important;
	border-bottom: 2px solid rgba(255, 255, 255, 0.14) !important;
}
body.sp-night-mode-on .digitem-receipt-licenses td,
body.sp-night-mode-on .digitem-my-licenses-wrap td {
	background: transparent !important;
	color: #ffffff !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.sp-night-mode-on .digitem-domain-input {
	background: #0d0727 !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
body.sp-night-mode-on .digitem-domain-input:focus {
	border-color: #60a5fa !important;
	background: #140d3a !important;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}
body.sp-night-mode-on .digitem-register-domain-btn {
	background: #3b82f6 !important;
	color: #ffffff !important;
	box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4) !important;
}
body.sp-night-mode-on .digitem-register-domain-btn:hover {
	background: #2563eb !important;
	color: #ffffff !important;
}
body.sp-night-mode-on .digitem-pending-badge {
	background: rgba(245, 158, 11, 0.18) !important;
	color: #fbbf24 !important;
	border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
body.sp-night-mode-on .digitem-code-copy {
	background: rgba(34, 197, 94, 0.18) !important;
	color: #4ade80 !important;
	border: 1px solid rgba(34, 197, 94, 0.35) !important;
}
body.sp-night-mode-on .digitem-active-domain-badge {
	background: rgba(59, 130, 246, 0.18) !important;
	color: #93c5fd !important;
	border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

/* ---------------------------------------------------------
   3. SHARED ELEMENT STYLES & LAYOUT
   --------------------------------------------------------- */
.digitem-receipt-licenses h3,
.digitem-my-licenses-wrap h3 {
	font-size: 18px !important;
	font-weight: 700 !important;
	margin: 0 0 10px 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}
.digitem-receipt-licenses p,
.digitem-my-licenses-wrap p {
	font-size: 13px !important;
	margin: 0 0 18px 0 !important;
	line-height: 1.7 !important;
}
.digitem-receipt-licenses table,
.digitem-my-licenses-wrap table {
	width: 100% !important;
	border-collapse: collapse !important;
	border-radius: 10px !important;
	overflow: hidden !important;
}
.digitem-receipt-licenses th,
.digitem-my-licenses-wrap th {
	padding: 13px 16px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-align: right !important;
}
.digitem-receipt-licenses td,
.digitem-my-licenses-wrap td {
	padding: 14px 16px !important;
	font-size: 13px !important;
	vertical-align: middle !important;
}
.digitem-domain-input {
	border-radius: 6px !important;
	padding: 9px 12px !important;
	font-size: 14px !important;
	direction: ltr !important;
	font-family: Consolas, monospace !important;
	width: 170px !important;
	box-sizing: border-box !important;
	outline: none !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
}
.digitem-register-domain-btn {
	border: none !important;
	border-radius: 6px !important;
	padding: 9px 18px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
}
.digitem-register-domain-btn:disabled {
	opacity: 0.65 !important;
	cursor: not-allowed !important;
}
.digitem-pending-badge {
	padding: 7px 12px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	display: inline-block !important;
	white-space: nowrap !important;
}
.digitem-code-copy {
	padding: 7px 14px !important;
	border-radius: 6px !important;
	font-family: Consolas, monospace !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: inline-block !important;
	direction: ltr !important;
	user-select: all !important;
	white-space: nowrap !important;
	transition: transform 0.15s ease !important;
}
.digitem-code-copy:hover {
	transform: scale(1.02) !important;
}
.digitem-active-domain-badge {
	padding: 6px 12px !important;
	border-radius: 6px !important;
	font-family: Consolas, monospace !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	direction: ltr !important;
	display: inline-block !important;
}

/* Flex layout */
.dkg-domain-flex-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex-wrap: nowrap !important;
}

@media (max-width: 768px) {
	.dkg-domain-flex-wrap {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.digitem-domain-input {
		width: 100% !important;
	}
	.digitem-register-domain-btn {
		width: 100% !important;
	}
}
