/**
 * Forest Script Listings - Frontend CSS
 * Scoped under .slp-wrapper to prevent conflicts with themes, Elementor, and custom page builders
 */

.slp-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 20px auto;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #173B2B;
	direction: ltr;
	text-align: left;
}

.slp-wrapper *,
.slp-wrapper *::before,
.slp-wrapper *::after {
	box-sizing: border-box;
}

/* ========================================================
   FILTER & SEARCH BAR (BUTTONS ON LEFT, SEARCH ON RIGHT)
   ======================================================== */
.slp-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding: 12px 18px;
	background-color: var(--slp-filter-bar-bg, #FFFFFF) !important;
	border: 1px solid var(--slp-filter-bar-border, #E3EFE5) !important;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(23, 59, 43, 0.04);
	position: relative;
	box-sizing: border-box;
}

.slp-status-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	flex: 1 1 auto;
}

/* ========================================================
   AUTHENTIC 3D BEVEL BUTTON STYLES & SMOOTH HOVER OVERLAYS
   Strict specificity with :not(.slp-active) to prevent theme overrides
   ======================================================== */

/* Inactive Filter Button: Clean White with 3D Bevel Base */
.slp-wrapper .slp-status-filters button.slp-filter-btn:not(.slp-active),
.slp-wrapper .slp-filter-bar button.slp-filter-btn:not(.slp-active),
.slp-wrapper button.slp-filter-btn:not(.slp-active),
body .slp-wrapper button.slp-filter-btn:not(.slp-active) {
	position: relative !important;
	overflow: hidden !important;
	background: var(--slp-filter-btn-bg, #FFFFFF) !important;
	background-color: var(--slp-filter-btn-bg, #FFFFFF) !important;
	border: 1.5px solid var(--slp-filter-btn-border, #D6E8D9) !important;
	border-radius: 9999px !important;
	padding: 8px 18px !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: var(--slp-filter-btn-text, #315F40) !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	user-select: none !important;
	box-shadow: 0 3px 0 0 #E0EEE2 !important;
	text-decoration: none !important;
	outline: none !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease !important;
	z-index: 1 !important;
}

/* Inactive button hover overlay for 60fps smooth gradient fade */
.slp-wrapper button.slp-filter-btn:not(.slp-active)::before,
.slp-wrapper .slp-filter-btn:not(.slp-active)::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, #F4FAF5 0%, #E1F4EC 100%);
	opacity: 0;
	transition: opacity 0.22s ease;
	border-radius: 9999px;
	z-index: -1;
}

.slp-wrapper .slp-status-filters button.slp-filter-btn:not(.slp-active):hover,
.slp-wrapper button.slp-filter-btn:not(.slp-active):hover,
.slp-wrapper .slp-filter-btn:not(.slp-active):hover {
	background: #F4FAF5 !important;
	background-color: #F4FAF5 !important;
	color: #21683A !important;
	border-color: #45A962 !important;
	box-shadow: 0 3px 0 0 #D0E5D4 !important;
	transform: translateY(-1px) !important;
}

.slp-wrapper button.slp-filter-btn:not(.slp-active):hover::before,
.slp-wrapper .slp-filter-btn:not(.slp-active):hover::before {
	opacity: 1;
}

.slp-wrapper .slp-status-filters button.slp-filter-btn:not(.slp-active):active,
.slp-wrapper button.slp-filter-btn:not(.slp-active):active,
.slp-wrapper .slp-filter-btn:not(.slp-active):active {
	transform: translateY(2px) !important;
	box-shadow: 0 1px 0 0 #D0E5D4 !important;
}

/* Active State: Premium Signature Emerald 3D Button */
.slp-wrapper .slp-status-filters button.slp-filter-btn.slp-active,
.slp-wrapper .slp-filter-bar button.slp-filter-btn.slp-active,
.slp-wrapper button.slp-filter-btn.slp-active,
body .slp-wrapper button.slp-filter-btn.slp-active {
	background: var(--slp-filter-btn-active-bg, linear-gradient(110deg, #31864B 0%, #45A962 100%)) !important;
	background-color: var(--slp-filter-btn-active-bg, #31864B) !important;
	color: var(--slp-filter-btn-active-text, #FFFFFF) !important;
	border: 1.5px solid #21683A !important;
	box-shadow: 0 4px 0 0 #21683A, 0 4px 10px rgba(49, 134, 75, 0.25) !important;
	transform: translateY(0) !important;
}

/* Active button hover overlay for smooth shade deepening */
.slp-wrapper button.slp-filter-btn.slp-active::before,
.slp-wrapper .slp-filter-btn.slp-active::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, #21683A 0%, #31864B 100%);
	opacity: 0;
	transition: opacity 0.22s ease;
	border-radius: 9999px;
	z-index: -1;
}

.slp-wrapper .slp-status-filters button.slp-filter-btn.slp-active:hover,
.slp-wrapper button.slp-filter-btn.slp-active:hover,
.slp-wrapper .slp-filter-btn.slp-active:hover {
	background: linear-gradient(110deg, #21683A 0%, #31864B 100%) !important;
	background-color: #21683A !important;
	color: #FFFFFF !important;
	border-color: #18522c !important;
	box-shadow: 0 4px 0 0 #18522c, 0 6px 14px rgba(49, 134, 75, 0.3) !important;
	transform: translateY(-1px) !important;
}

.slp-wrapper button.slp-filter-btn.slp-active:hover::before,
.slp-wrapper .slp-filter-btn.slp-active:hover::before {
	opacity: 1;
}

.slp-wrapper .slp-status-filters button.slp-filter-btn.slp-active:active,
.slp-wrapper button.slp-filter-btn.slp-active:active,
.slp-wrapper .slp-filter-btn.slp-active:active {
	transform: translateY(2px) !important;
	box-shadow: 0 1px 0 0 #18522c !important;
}

/* Filter Status Dots (Crisp Vector CSS Dots - No broken emojis) */
.slp-filter-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.slp-filter-dot.slp-dot-working { background-color: #31864B; box-shadow: 0 0 0 2px rgba(49, 134, 75, 0.25); }
.slp-filter-dot.slp-dot-testing { background-color: #E68A00; box-shadow: 0 0 0 2px rgba(230, 138, 0, 0.25); }
.slp-filter-dot.slp-dot-coming_soon { background-color: #829285; box-shadow: 0 0 0 2px rgba(130, 146, 133, 0.25); }

.slp-filter-btn.slp-active .slp-filter-dot {
	box-shadow: 0 0 0 2px #FFFFFF;
}

/* ========================================================
   RIGHT-ALIGNED SEARCH BAR
   ======================================================== */
.slp-search-box-container,
.slp-search-wrap {
	display: flex !important;
	align-items: center !important;
	background-color: #F7FAF7 !important;
	border: 1.5px solid var(--slp-card-border, #D6E8D9) !important;
	border-radius: 9999px !important;
	padding: 0 16px !important;
	height: 42px !important;
	width: 260px !important;
	min-width: 220px !important;
	max-width: 300px !important;
	margin-left: auto !important; /* PUSHES SEARCH BAR FIRMLY TO THE RIGHT */
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 0 0 #E0EEE2 !important;
	position: relative !important;
	flex: 0 0 260px !important;
}

.slp-search-box-container:hover,
.slp-search-wrap:hover {
	border-color: #31864B !important;
	background-color: #FFFFFF !important;
	box-shadow: 0 2px 0 0 #D6E8D9 !important;
}

.slp-search-box-container:focus-within,
.slp-search-wrap:focus-within {
	border-color: #31864B !important;
	background-color: #FFFFFF !important;
	box-shadow: 0 0 0 3px rgba(49, 134, 75, 0.15), 0 2px 0 0 #31864B !important;
}

.slp-search-icon-slot,
.slp-search-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #667B6D !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	flex-shrink: 0 !important;
	width: 18px !important;
	height: 18px !important;
	pointer-events: none !important;
}

.slp-search-input-field,
.slp-search-input {
	border: none !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 0 0 0 10px !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	color: #173B2B !important;
	line-height: normal !important;
	box-sizing: border-box !important;
}

.slp-search-input-field::placeholder,
.slp-search-input::placeholder {
	color: #829285 !important;
	opacity: 1 !important;
}

/* ========================================================
   CARDS GRID
   ======================================================== */
.slp-grid {
	display: grid;
	gap: var(--slp-grid-gap, 20px);
	width: 100%;
}

.slp-cols-1 { grid-template-columns: 1fr; }
.slp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ========================================================
   SCRIPT CARD BASE ARCHITECTURE
   ======================================================== */
.slp-card {
	background-color: var(--slp-card-bg, #FFFFFF);
	border: 1px solid var(--slp-card-border, #E3EFE5);
	border-radius: var(--slp-card-radius, 16px);
	padding: var(--slp-card-padding, 20px);
	box-shadow: 0 2px 8px rgba(23, 59, 43, 0.04);
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
	            box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
	            border-color 0.22s ease;
	box-sizing: border-box;
}

.slp-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(23, 59, 43, 0.08);
	border-color: #C3DEC7;
}

/* ========================================================
   DESIGN PRESET 1: CLEAN COMPACT (Minimalist Border Grid)
   ======================================================== */
.slp-card.slp-style-compact {
	background: #FFFFFF !important;
	border: 1.5px solid var(--slp-card-border, #D6E8D9) !important;
	border-radius: 14px !important;
	padding: 20px 22px !important;
	box-shadow: 0 2px 8px rgba(23, 59, 43, 0.05) !important;
	gap: 14px !important;
}

.slp-card.slp-style-compact:hover {
	border-color: #31864B !important;
	box-shadow: 0 6px 18px rgba(49, 134, 75, 0.1) !important;
	transform: translateY(-2px) !important;
}

/* ========================================================
   DESIGN PRESET 2: MODERN BORDER (Cyber Terminal / Left Accent Bar)
   Distinctive visual layout:
   - 6px dynamic left accent bar matching status
   - Gaming dark number badge (#173B2B / #4ADE80)
   - Dark Executor Code Box with traffic-light indicators
   ======================================================== */
.slp-card.slp-style-border {
	background: #FFFFFF !important;
	border: 1.5px solid var(--slp-card-border, #D6E8D9) !important;
	border-left-width: 6px !important;
	border-radius: 12px 18px 18px 12px !important;
	padding: 22px 24px !important;
	gap: 15px !important;
	transition: all 0.25s ease !important;
}

.slp-card.slp-style-border.slp-status-working {
	border-left-color: #31864B !important;
	box-shadow: -4px 0 16px rgba(49, 134, 75, 0.14), 0 3px 10px rgba(23, 59, 43, 0.05) !important;
}

.slp-card.slp-style-border.slp-status-testing {
	border-left-color: #E68A00 !important;
	box-shadow: -4px 0 16px rgba(230, 138, 0, 0.14), 0 3px 10px rgba(23, 59, 43, 0.05) !important;
}

.slp-card.slp-style-border.slp-status-coming_soon {
	border-left-color: #829285 !important;
	box-shadow: -4px 0 16px rgba(130, 146, 133, 0.14), 0 3px 10px rgba(23, 59, 43, 0.05) !important;
}

.slp-card.slp-style-border:hover {
	transform: translateY(-3px) !important;
	box-shadow: -5px 0 20px rgba(49, 134, 75, 0.2), 0 8px 24px rgba(23, 59, 43, 0.1) !important;
}

/* Style 2: Futuristic gaming number badge */
.slp-card.slp-style-border .slp-number-badge {
	background-color: #173B2B !important;
	color: #4ADE80 !important;
	border: 1px solid #285A41 !important;
	font-family: ui-monospace, SFMono-Regular, "Orbitron", monospace !important;
	font-weight: 800 !important;
	padding: 3px 9px !important;
	border-radius: 6px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* Style 2: Executor Dark Theme for the Code Box */
.slp-card.slp-style-border .slp-source-box {
	background-color: #11281E !important;
	border: 1.5px solid #1F4534 !important;
	border-radius: 10px !important;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.slp-card.slp-style-border .slp-source-box-header {
	background: #0A1C15 !important;
	border-bottom: 1px solid #1F4534 !important;
	color: #A3C9AE !important;
}

.slp-card.slp-style-border .slp-source-type-tag {
	color: #4ADE80 !important;
	font-weight: 800 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.slp-card.slp-style-border .slp-code-block code,
.slp-card.slp-style-border .slp-source-content {
	color: #ECFDF5 !important;
	font-weight: 600 !important;
}

.slp-card.slp-style-border .slp-source-url-text {
	color: #6EE7B7 !important;
}

/* Traffic light indicators for Style 2 */
.slp-terminal-traffic-lights {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	margin-right: 4px !important;
}

.slp-t-dot {
	width: 7px !important;
	height: 7px !important;
	border-radius: 50% !important;
	display: inline-block !important;
}
.slp-t-red { background: #EF4444 !important; }
.slp-t-yellow { background: #F59E0B !important; }
.slp-t-green { background: #10B981 !important; }

/* ========================================================
   DESIGN PRESET 3: FEATURED HEADER (Two-Tone Banner Card)
   Distinctive visual layout:
   - Full top banner bar running edge-to-edge
   - High-contrast featured status pill & badge
   - Rounded-full pill action buttons
   ======================================================== */
.slp-card.slp-style-featured {
	padding: 0 !important;
	overflow: hidden !important;
	border: 1.5px solid #C8E3CF !important;
	border-radius: 18px !important;
	background: #FFFFFF !important;
	box-shadow: 0 4px 16px rgba(23, 59, 43, 0.08) !important;
	gap: 0 !important;
}

.slp-card.slp-style-featured .slp-featured-header-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 13px 20px !important;
	background: linear-gradient(135deg, #E2F2E6 0%, #D0ECD6 100%) !important;
	border-bottom: 1.5px solid #BFE3C7 !important;
	box-sizing: border-box !important;
	width: 100% !important;
	flex-wrap: nowrap !important;
}

.slp-card.slp-style-featured .slp-header-left {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex-shrink: 0 !important;
}

.slp-card.slp-style-featured .slp-featured-header-bar .slp-number-badge {
	background-color: #173B2B !important;
	color: #FFFFFF !important;
	border: none !important;
	font-weight: 800 !important;
	box-shadow: 0 2px 4px rgba(23, 59, 43, 0.2) !important;
}

.slp-card.slp-style-featured .slp-featured-header-bar .slp-custom-pill {
	background: #31864B !important;
	color: #FFFFFF !important;
	border: 1px solid #21683A !important;
	box-shadow: 0 2px 6px rgba(49, 134, 75, 0.25) !important;
	margin-left: auto !important;
	flex-shrink: 0 !important;
}

.slp-card.slp-style-featured .slp-card-inner {
	padding: 20px 22px 22px 22px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

/* Style 3: Rounded-Full Floating Action Buttons */
.slp-card.slp-style-featured .slp-btn {
	border-radius: 9999px !important;
}

.slp-card.slp-style-featured:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 24px rgba(23, 59, 43, 0.12) !important;
	border-color: #A3D4AE !important;
}

/* ========================================================
   DESIGN PRESET 4: GLASSMORPHIC NEO-SURVIVAL
   - Frosted card look with subtle emerald glow
   - Floating pill badge header with soft blur
   - High-contrast clean mint code box
   ======================================================== */
.slp-card.slp-style-glass {
	background: #FFFFFF !important;
	border: 1.5px solid #C8E3CF !important;
	border-radius: 20px !important;
	padding: 22px 24px !important;
	box-shadow: 0 8px 30px rgba(49, 134, 75, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
	gap: 15px !important;
	transition: all 0.28s ease !important;
}

.slp-card.slp-style-glass:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 14px 36px rgba(49, 134, 75, 0.16) !important;
	border-color: #31864B !important;
}

.slp-card.slp-style-glass .slp-number-badge {
	background: linear-gradient(135deg, #E2F3E6 0%, #D2ECD8 100%) !important;
	color: #21683A !important;
	border: 1px solid #BEE4C6 !important;
	border-radius: 9999px !important;
	padding: 4px 12px !important;
	font-weight: 800 !important;
}

.slp-card.slp-style-glass .slp-source-box {
	background-color: #F2FAF4 !important;
	border: 1.5px solid #D2EBD7 !important;
	border-radius: 14px !important;
}

.slp-card.slp-style-glass .slp-source-box-header {
	background: #E5F4E9 !important;
	border-bottom: 1px solid #D2EBD7 !important;
}

/* ========================================================
   DESIGN PRESET 5: TACTICAL DARK HUD (Survival Executor)
   - Deep dark camouflage green (#0E241A)
   - Neon tactical accents (#4ADE80)
   - Radar status dot & tactical monospace typography
   ======================================================== */
.slp-card.slp-style-tactical {
	background: #0E241A !important;
	border: 1.5px solid #1D4D36 !important;
	border-radius: 14px !important;
	padding: 22px 24px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(74, 222, 128, 0.1) !important;
	gap: 15px !important;
	transition: all 0.25s ease !important;
}

.slp-card.slp-style-tactical:hover {
	transform: translateY(-3px) !important;
	border-color: #31864B !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 15px rgba(74, 222, 128, 0.2) !important;
}

.slp-card.slp-style-tactical .slp-card-title {
	color: #ECFDF5 !important;
}

.slp-card.slp-style-tactical .slp-card-desc {
	color: #9ECBB0 !important;
}

.slp-card.slp-style-tactical .slp-number-badge {
	background: #173B2B !important;
	color: #4ADE80 !important;
	border: 1px solid #285A41 !important;
	font-family: ui-monospace, monospace !important;
	font-weight: 800 !important;
}

.slp-card.slp-style-tactical .slp-status-pill {
	background: #173B2B !important;
	color: #4ADE80 !important;
	border: 1px solid #285A41 !important;
}

.slp-card.slp-style-tactical .slp-custom-pill {
	background: #1F5238 !important;
	color: #A7F3D0 !important;
	border: 1px solid #34894B !important;
}

.slp-card.slp-style-tactical .slp-source-box {
	background: #07160F !important;
	border: 1.5px solid #193E2B !important;
}

.slp-card.slp-style-tactical .slp-source-box-header {
	background: #040D09 !important;
	border-bottom: 1px solid #193E2B !important;
	color: #82B395 !important;
}

.slp-card.slp-style-tactical .slp-code-block code,
.slp-card.slp-style-tactical .slp-source-content {
	color: #4ADE80 !important;
}

.slp-card.slp-style-tactical .slp-key-container {
	background: #07160F !important;
	border-color: #193E2B !important;
}

.slp-card.slp-style-tactical .slp-key-badge-label {
	color: #4ADE80 !important;
}

.slp-card.slp-style-tactical .slp-key-value {
	background: #0E241A !important;
	color: #86EFAC !important;
	border-color: #1D4D36 !important;
}

.slp-card.slp-style-tactical .slp-key-copy-btn {
	background: #173B2B !important;
	color: #4ADE80 !important;
	border-color: #285A41 !important;
	box-shadow: 0 2px 0 0 #0C1E15 !important;
}

.slp-card.slp-style-tactical a.slp-btn-download,
.slp-card.slp-style-tactical .slp-btn-download {
	background: #173B2B !important;
	color: #4ADE80 !important;
	border: 1.5px solid #285A41 !important;
	box-shadow: 0 3px 0 0 #0C1E15 !important;
}

/* ========================================================
   CARD HEADER: NUMBER + STATUS + LATEST BADGE (SINGLE LINE)
   ======================================================== */
.slp-card-meta-top,
.slp-card-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	width: 100% !important;
	flex-wrap: nowrap !important; /* CRITICAL: Never wrap to second line */
	box-sizing: border-box !important;
}

.slp-badges-group,
.slp-header-left {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex-wrap: nowrap !important;
	flex-shrink: 0 !important;
}

.slp-header-right {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-left: auto !important;
	flex-shrink: 0 !important;
}

/* Script Number Badge */
.slp-number-badge,
.slp-script-number {
	font-family: "Orbitron", monospace, sans-serif;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #31864B;
	background-color: #E8F6EB;
	border: 1px solid #D1EBD6;
	padding: 3px 8px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}

/* Status Pill (Pill Shaped with Crisp Vector Status Dot) */
.slp-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 9999px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.slp-status-pill .slp-status-dot-sm {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

/* Working Pill */
.slp-status-pill.slp-status-working {
	background-color: var(--slp-status-working-bg, #E8F6EB);
	color: var(--slp-status-working-text, #21683A);
	border: 1px solid var(--slp-status-working-border, #C3DEC7);
}
.slp-status-pill.slp-status-working .slp-status-dot-sm {
	background-color: #31864B;
	box-shadow: 0 0 0 2px rgba(49, 134, 75, 0.2);
}

/* Testing Pill */
.slp-status-pill.slp-status-testing {
	background-color: var(--slp-status-testing-bg, #FEF3C7);
	color: var(--slp-status-testing-text, #92400E);
	border: 1px solid var(--slp-status-testing-border, #FDE68A);
}
.slp-status-pill.slp-status-testing .slp-status-dot-sm {
	background-color: #D97706;
	box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

/* Coming Soon Pill */
.slp-status-pill.slp-status-coming_soon {
	background-color: var(--slp-status-coming-soon-bg, #F3F4F6);
	color: var(--slp-status-coming-soon-text, #4B5563);
	border: 1px solid var(--slp-status-coming-soon-border, #E5E7EB);
}
.slp-status-pill.slp-status-coming_soon .slp-status-dot-sm {
	background-color: #6B7280;
	box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}

/* LATEST Badge (Orbitron uppercase badge) */
.slp-custom-pill,
.slp-pill-badge {
	font-family: "Orbitron", monospace, sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #173B2B;
	background: linear-gradient(135deg, #E2F3E5 0%, #D2EBD7 100%);
	border: 1px solid #B8DEC0;
	padding: 3px 9px;
	border-radius: 9999px;
	line-height: 1.2;
}

/* ========================================================
   CARD BODY: TITLE & DESCRIPTION
   ======================================================== */
.slp-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.slp-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--slp-title-color, #173B2B);
	letter-spacing: -0.01em;
}

.slp-card-desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--slp-desc-color, #556D5D);
}

/* ========================================================
   SCRIPT KEY BOX (SHOWN ONLY IF REQUIRES KEY IS SELECTED)
   Clean unified layout with label + key badge joined together
   ======================================================== */
.slp-key-container {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	padding: 9px 14px !important;
	background-color: #F4FAF5 !important;
	border: 1.5px solid var(--slp-card-border, #D6E8D9) !important;
	border-radius: 12px !important;
	box-sizing: border-box !important;
	margin: 6px 0 8px 0 !important;
	flex-wrap: wrap !important;
}

.slp-key-main {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-wrap: wrap !important;
	flex: 1 1 auto !important;
}

.slp-key-badge-label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	color: #21683A !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	flex-shrink: 0 !important;
}

.slp-key-icon {
	color: #31864B !important;
	flex-shrink: 0 !important;
}

.slp-key-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	color: #173B2B !important;
	background: #FFFFFF !important;
	border: 1.5px solid #C8E3CF !important;
	padding: 4px 12px !important;
	border-radius: 8px !important;
	box-shadow: inset 0 1px 3px rgba(23, 59, 43, 0.06) !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	direction: ltr !important;
	text-align: left !important;
	display: inline-block !important;
}

.slp-key-copy-btn {
	background: #FFFFFF !important;
	border: 1.5px solid #CDE5D2 !important;
	color: #21683A !important;
	padding: 6px 14px !important;
	border-radius: 9999px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	line-height: 1.2 !important;
	transition: all 0.18s ease !important;
	box-shadow: 0 2px 0 0 #D0E5D4 !important;
	flex-shrink: 0 !important;
	user-select: none !important;
}

.slp-key-copy-btn:hover {
	background: #31864B !important;
	color: #FFFFFF !important;
	border-color: #21683A !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 2px 0 0 #18522c, 0 4px 10px rgba(49, 134, 75, 0.25) !important;
}

.slp-key-copy-btn:active,
.slp-key-copy-btn.slp-copied {
	background: #21683A !important;
	color: #FFFFFF !important;
	border-color: #18522c !important;
	transform: translateY(2px) !important;
	box-shadow: 0 0 0 0 transparent !important;
}

/* ========================================================
   COMPACT SCRIPT / LUA SOURCE BOX (STRICT LTR ANCHORING)
   ======================================================== */
.slp-source-box {
	background-color: var(--slp-source-box-bg, #F4FAF5);
	border: 1px solid var(--slp-source-box-border, #D9E9DC);
	border-radius: 10px;
	overflow: hidden;
	direction: ltr !important;
	text-align: left !important;
}

.slp-source-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 12px;
	background-color: #EBF4ED;
	border-bottom: 1px solid var(--slp-source-box-border, #D9E9DC);
	font-size: 11px;
	font-weight: 700;
	color: #4A6353;
	direction: ltr !important;
}

.slp-source-type-tag {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--slp-primary, #31864B);
	font-weight: 800;
	font-size: 11px;
}

.slp-verified-text {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	color: #21683A;
}

.slp-clock-icon {
	color: #31864B;
	flex-shrink: 0;
}

/* Strict LTR code block formatting to prevent RTL split issues */
.slp-source-content {
	padding: 10px 14px !important;
	max-height: var(--slp-source-box-max-h, 90px) !important;
	overflow-y: auto !important;
	overflow-x: auto !important;
	direction: ltr !important;
	text-align: left !important;
	text-justify: none !important;
	unicode-bidi: isolate !important;
	background-color: #F8FBF8 !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

.slp-code-block {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	font-family: "JetBrains Mono", Consolas, "SF Mono", Monaco, "Courier New", monospace !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	color: var(--slp-source-box-text, #173B2B) !important;
	white-space: pre-wrap !important;
	word-break: break-all !important;
	overflow-wrap: anywhere !important;
	direction: ltr !important;
	text-align: left !important;
	text-justify: none !important;
	unicode-bidi: isolate !important;
	tab-size: 2 !important;
	display: block !important;
}

.slp-code-block code {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	font-family: inherit !important;
	font-size: inherit !important;
	color: inherit !important;
	direction: ltr !important;
	text-align: left !important;
	text-justify: none !important;
	display: inline !important;
	unicode-bidi: isolate !important;
}

.slp-source-url-text {
	color: #21683A;
	text-decoration: underline;
	word-break: break-all;
	direction: ltr !important;
	text-align: left !important;
	display: block !important;
}

.slp-source-empty {
	color: #829285;
	font-style: italic;
	direction: ltr !important;
	text-align: left !important;
	display: block !important;
}

/* ========================================================
   ACTION BUTTONS (AUTHENTIC 3D BEVEL BRANDING & HOVER)
   ======================================================== */
.slp-card-actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
}

.slp-wrapper .slp-btn,
.slp-btn {
	position: relative !important;
	overflow: hidden !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 12px 22px !important;
	font-size: 14.5px !important;
	font-weight: 800 !important;
	border-radius: 9999px !important; /* Full rounded pill styling matching website hero button */
	cursor: pointer !important;
	text-decoration: none !important;
	user-select: none !important;
	line-height: 1.2 !important;
	flex: 1 1 0 !important;
	border: none !important;
	letter-spacing: 0.2px !important;
	outline: none !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	z-index: 1 !important;
}

/* Copy Button: Website Signature Primary 3D Bevel Button with Shimmer Sweep */
.slp-wrapper button.slp-btn-copy,
.slp-wrapper .slp-btn-copy,
.slp-btn-copy {
	background: linear-gradient(110deg, #31864B 0%, #45A962 100%) !important;
	background-color: #31864B !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 9999px !important;
	box-shadow: 0 4px 0 0 #21683A, 0 4px 10px rgba(49, 134, 75, 0.22) !important;
	transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
	            box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Inner hover gradient overlay */
.slp-wrapper button.slp-btn-copy::before,
.slp-btn-copy::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, #21683A 0%, #31864B 100%);
	opacity: 0;
	transition: opacity 0.22s ease;
	border-radius: 9999px !important;
	z-index: -1;
}

/* Shiny reflection streak sweep animation */
.slp-wrapper button.slp-btn-copy::after,
.slp-wrapper .slp-btn-copy::after,
.slp-btn-copy::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		90deg, 
		transparent 0%, 
		rgba(255, 255, 255, 0.4) 50%, 
		transparent 100%
	);
	transform: skewX(-25deg);
	transition: left 0.55s ease;
	z-index: 2;
	pointer-events: none;
}

.slp-wrapper button.slp-btn-copy:hover::after,
.slp-wrapper .slp-btn-copy:hover::after,
.slp-btn-copy:hover::after {
	left: 170%;
}

.slp-wrapper button.slp-btn-copy:hover,
.slp-btn-copy:hover {
	background: linear-gradient(110deg, #21683A 0%, #31864B 100%) !important;
	box-shadow: 0 4px 0 0 #18522c, 0 6px 14px rgba(49, 134, 75, 0.3) !important;
	transform: translateY(-1px) !important;
}

.slp-wrapper button.slp-btn-copy:hover::before,
.slp-btn-copy:hover::before {
	opacity: 1;
}

.slp-wrapper button.slp-btn-copy:active,
.slp-btn-copy:active {
	transform: translateY(3px) !important;
	box-shadow: 0 1px 0 0 #18522c !important;
}

/* Download Button: Clean Secondary 3D Bevel Button */
.slp-wrapper a.slp-btn-download,
.slp-wrapper .slp-btn-download,
.slp-btn-download {
	background: #FFFFFF !important;
	background-color: #FFFFFF !important;
	color: #315F40 !important;
	border: 1.5px solid #D6E8D9 !important;
	border-radius: 9999px !important;
	box-shadow: 0 4px 0 0 #D6E8D9 !important;
	transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.slp-wrapper a.slp-btn-download::before,
.slp-btn-download::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, #F4FAF5 0%, #E1F4EC 100%);
	opacity: 0;
	transition: opacity 0.22s ease;
	border-radius: 9999px !important;
	z-index: -1;
}

.slp-wrapper a.slp-btn-download:hover,
.slp-btn-download:hover {
	background: #F4FAF5 !important;
	color: #21683A !important;
	border-color: #45A962 !important;
	box-shadow: 0 4px 0 0 #C4DEC8, 0 4px 10px rgba(23, 59, 43, 0.08) !important;
	transform: translateY(-1px) !important;
}

.slp-wrapper a.slp-btn-download:hover::before,
.slp-btn-download:hover::before {
	opacity: 1;
}

.slp-wrapper a.slp-btn-download:active,
.slp-btn-download:active {
	transform: translateY(3px) !important;
	box-shadow: 0 1px 0 0 #C4DEC8 !important;
}

/* Copied Feedback State */
.slp-btn-copy.slp-copied {
	background: linear-gradient(110deg, #1E5E35 0%, #2B7A45 100%) !important;
	box-shadow: 0 2px 0 0 #144225 !important;
	transform: translateY(2px) !important;
}

/* ========================================================
   EMPTY STATE & NOTIFICATIONS
   ======================================================== */
.slp-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	background-color: #FFFFFF;
	border: 1px dashed #C3DEC7;
	border-radius: 14px;
	color: #667B6D;
	font-size: 15px;
	font-weight: 500;
}

/* Live Toast Notification for Mobile / Tablet */
.slp-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background-color: #173B2B;
	color: #FFFFFF;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translateY(100px);
	opacity: 0;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
	pointer-events: none;
}

.slp-toast.slp-toast-show {
	transform: translateY(0);
	opacity: 1;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET EXCELLENCE)
   ======================================================== */
@media (max-width: 1024px) {
	.slp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.slp-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.slp-wrapper {
		margin: 12px auto !important;
		padding: 0 4px !important;
	}

	.slp-filter-bar {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
		padding: 10px 12px !important;
		margin-bottom: 16px !important;
		border-radius: 12px !important;
	}

	/* Smooth Horizontal Swipeable Pill Row on Mobile (Native App Style) */
	.slp-status-filters {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		gap: 6px !important;
		padding: 2px 2px 4px 2px !important;
		width: 100% !important;
		scrollbar-width: none !important;
	}

	.slp-status-filters::-webkit-scrollbar {
		display: none !important;
	}

	.slp-wrapper .slp-status-filters button.slp-filter-btn,
	.slp-filter-btn {
		white-space: nowrap !important;
		flex-shrink: 0 !important;
		padding: 7px 14px !important;
		font-size: 13px !important;
		box-shadow: 0 2px 0 0 #E0EEE2 !important;
	}

	.slp-wrapper .slp-status-filters button.slp-filter-btn.slp-active {
		box-shadow: 0 3px 0 0 #21683A, 0 3px 8px rgba(49, 134, 75, 0.25) !important;
	}

	/* Search bar full width under filter pills on mobile */
	.slp-search-box-container,
	.slp-search-wrap {
		width: 100% !important;
		max-width: 100% !important;
		height: 40px !important;
		flex: 1 1 auto !important;
		margin-left: 0 !important;
		padding: 0 14px !important;
	}

	.slp-search-input-field,
	.slp-search-input {
		font-size: 13px !important;
	}

	.slp-cols-4,
	.slp-cols-3,
	.slp-cols-2 {
		grid-template-columns: 1fr !important;
	}

	.slp-card {
		padding: 16px 14px !important;
		border-radius: 14px !important;
		gap: 12px !important;
	}

	.slp-card.slp-style-featured {
		padding: 0 !important;
	}

	.slp-card.slp-style-featured .slp-featured-header-bar {
		padding: 11px 14px !important;
	}

	.slp-card.slp-style-featured .slp-card-inner {
		padding: 14px 14px 16px 14px !important;
	}

	.slp-card-title {
		font-size: 17px !important;
		line-height: 1.35 !important;
	}

	.slp-card-desc {
		font-size: 13px !important;
		line-height: 1.5 !important;
	}

	.slp-source-content {
		padding: 8px 12px !important;
		max-height: 95px !important;
	}

	.slp-code-block {
		font-size: 11.5px !important;
	}

	.slp-card-actions {
		display: flex !important;
		gap: 8px !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
	}

	.slp-btn {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		padding: 11px 12px !important;
		font-size: 13px !important;
		white-space: nowrap !important;
		justify-content: center !important;
	}

	.slp-key-container {
		padding: 6px 10px !important;
		gap: 6px !important;
	}

	.slp-key-value {
		max-width: 150px !important;
		font-size: 11.5px !important;
	}
}

/* Extra small mobile devices (< 350px) */
@media (max-width: 349px) {
	.slp-card-actions {
		flex-direction: column !important;
		gap: 8px !important;
		width: 100% !important;
	}

	.slp-btn {
		width: 100% !important;
		padding: 12px 14px !important;
		font-size: 13.5px !important;
		justify-content: center !important;
	}

	.slp-key-container {
		flex-wrap: wrap !important;
	}

	.slp-key-value {
		max-width: 100% !important;
		width: 100% !important;
	}
}
