/*
Theme Name: E-Commerce
Theme URI: https://hackerblog.co.in
Author: Hackerblog
Author URI: https://hackerblog.co.in
Description: "Hackerblog" — a modern, premium eCommerce theme selling programming courses with ₹ pricing and discount badges. Distinctive midnight-violet design system: animated gradient hero with floating orbs and a course-card mockup, single-row glass header, rounded product cards with ratings, dark footer.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lms-theme
Tags: e-commerce, woocommerce, custom-menu, custom-logo, featured-images, blog
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Hackerblog palette — midnight indigo base, electric violet → fuchsia accents,
	   warm amber highlights. */
	--color-accent:        #7c3aed;
	--color-accent-2:      #a21caf;
	--color-accent-3:      #f59e0b;
	--color-accent-dark:   #6d28d9;
	--color-accent-light:  #f3e8ff;
	--color-accent-grad:   linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);

	--color-midnight:      #0f0c29;
	--color-midnight-2:    #302b63;
	--color-midnight-3:    #24243e;

	--color-heading:       #18162b;
	--color-text:          #55536e;
	--color-text-muted:    #8a88a3;
	--color-background:    #ffffff;
	--color-surface:       #f7f5ff;
	--color-surface-2:     #efeafc;
	--color-border:        #ebe8f5;
	--color-sale:          #ef4444;
	--color-success:       #10b981;
	--color-warning:       #e0b252;
	--color-ink:           #120e2b;

	--font-heading: 'Sora', sans-serif;
	--font-body:   'Inter', sans-serif;

	--container: 1222px;
	--header-h: 96px;

	--radius:       18px;
	--radius-sm:    12px;
	--radius-md:    20px;
	--radius-lg:    26px;
	--radius-pill:  999px;

	--shadow-sm:  0 1px 2px rgba(24, 22, 43, 0.06), 0 4px 12px rgba(24, 22, 43, 0.05);
	--shadow-md:  0 8px 28px rgba(24, 22, 43, 0.10);
	--shadow-lg:  0 24px 60px rgba(54, 30, 120, 0.16);
	--shadow-glow: 0 14px 36px rgba(124, 58, 237, 0.32);
	--shadow-glow-2: 0 14px 40px rgba(162, 28, 175, 0.35);

	--grad-hero: linear-gradient(130deg, #1a0f3d 0%, #33227a 40%, #6d28d9 75%, #a21caf 115%);
	--grid-lines: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-background);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.18;
	margin: 0 0 0.5em;
	font-weight: 600;
	color: var(--color-heading);
	letter-spacing: -0.015em;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 4px var(--color-accent-light);
}

::selection {
	background: var(--color-accent);
	color: #ffffff;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.lms-container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.lms-main {
	min-height: 55vh;
	padding: 44px 0 72px;
}

/* Homepage main — no outer padding so the hero is full-bleed. */
.lms-home {
	padding: 0;
}

.lms-section {
	padding: 64px 0;
}

.lms-section--surface {
	background:
		radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.06), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(162, 28, 175, 0.05), transparent 45%),
		var(--color-surface);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.lms-page-header {
	margin-bottom: 28px;
}

.lms-page-title {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0;
}

.lms-page-description {
	color: var(--color-text-muted);
	margin-top: 6px;
}

/* Section heading block used above featured / all-courses grids. */
.lms-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.lms-section-head h2 {
	font-size: clamp(26px, 3.4vw, 36px);
	margin: 0 0 6px;
}

.lms-section-head p {
	color: var(--color-text-muted);
	margin: 0;
}

.lms-section-head .lms-link {
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-accent);
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-pill);
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--accent {
	background: var(--color-accent-grad);
	color: #ffffff;
	box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32);
}

.btn--accent:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(124, 58, 237, 0.42);
	color: #ffffff;
}

.btn--ghost {
	background: var(--color-surface);
	color: var(--color-heading);
	border-color: var(--color-border);
}

.btn--ghost:hover {
	transform: translateY(-2px);
	border-color: var(--color-accent);
	color: var(--color-accent);
	box-shadow: var(--shadow-sm);
}

.btn--lg {
	padding: 15px 30px;
	font-size: 15px;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

/* Top strip — slim midnight gradient. */
.lms-top-bar {
	background: linear-gradient(270deg, #120e2b, #2a1a66);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
}

.lms-top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	gap: 12px;
}

.lms-top-bar a {
	color: rgba(255, 255, 255, 0.8);
}

.lms-top-bar a:hover {
	color: #ffffff;
}

.lms-top-bar__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.lms-top-bar__email {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lms-top-bar__email:hover {
	color: #ffffff;
}

.lms-top-bar__socials {
	display: flex;
	gap: 4px;
}

.lms-top-bar__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: var(--radius-pill);
	transition: background 0.2s ease;
}

.lms-top-bar__socials a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.lms-top-bar__socials .lms-icon {
	width: 15px;
	height: 15px;
}

/* Main header — single, airy glass row. */
.lms-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow 0.25s ease;
}

body.scrolled .lms-header {
	box-shadow: 0 8px 28px rgba(24, 22, 43, 0.08);
}

.lms-header__bar {
	background: transparent;
}

.lms-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.lms-brand {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	letter-spacing: -0.02em;
}

.lms-brand a {
	color: var(--color-heading);
	background: var(--color-accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lms-brand img {
	max-height: 46px;
	width: auto;
	filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.25));
}

.lms-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.lms-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lms-menu > li {
	position: relative;
}

.lms-menu a {
	display: block;
	padding: 10px 16px;
	color: var(--color-heading);
	font-weight: 500;
	font-size: 14px;
	border-radius: var(--radius-pill);
	position: relative;
	transition: color 0.2s ease, background 0.2s ease;
}

.lms-menu a:hover {
	color: var(--color-accent);
	background: var(--color-accent-light);
}

.lms-menu .current-menu-item > a,
.lms-menu .current_page_item > a {
	color: var(--color-accent);
	background: var(--color-accent-light);
	font-weight: 600;
}

.lms-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	padding: 10px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
	z-index: 50;
}

.lms-menu .sub-menu::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 24px;
	width: 14px;
	height: 14px;
	background: #ffffff;
	border-left: 1px solid var(--color-border);
	border-top: 1px solid var(--color-border);
	transform: rotate(45deg);
}

.lms-menu li:hover > .sub-menu,
.lms-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lms-menu .sub-menu a {
	padding: 10px 14px;
	font-size: 14px;
	border-radius: var(--radius-sm);
}

.lms-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.lms-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--color-border);
	background: #ffffff;
	border-radius: var(--radius-pill);
	color: var(--color-heading);
	position: relative;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lms-icon-btn:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);
	transform: translateY(-1px);
}

.lms-header-wishlist .lms-wishlist-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: var(--color-sale);
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
}

.lms-cart-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 12px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-pill);
	background: linear-gradient(135deg, #ffffff, #f7f5ff);
	color: var(--color-heading);
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lms-cart-btn:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);
}

.lms-cart-btn .lms-cart-btn__icon {
	display: inline-flex;
}

.lms-cart-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	text-align: left;
	font-size: 12px;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.lms-cart-count {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	color: var(--color-heading);
}

.lms-cart-total {
	color: var(--color-accent);
	font-weight: 600;
}

.lms-hamburger {
	display: none;
}

.lms-icon {
	width: 20px;
	height: 20px;
}

/* Account button in the header */
.lms-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-pill);
	background: #ffffff;
	color: var(--color-heading);
	font-weight: 600;
	font-size: 14px;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lms-account-btn:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);
}

.lms-account-btn__text {
	white-space: nowrap;
}

/* ==========================================================================
   6. Footer — dark midnight
   ========================================================================== */
.lms-footer {
	background:
		radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.25), transparent 46%),
		radial-gradient(circle at 90% 100%, rgba(162, 28, 175, 0.2), transparent 44%),
		var(--color-midnight);
	color: #b6b3d8;
	position: relative;
	overflow: hidden;
}

.lms-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--color-accent-grad);
}

.lms-footer__widgets {
	padding: 64px 0 44px;
}

.lms-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
}

.lms-footer .widget-title {
	font-size: 15px;
	margin-bottom: 18px;
	color: #ffffff;
	font-family: var(--font-heading);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lms-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lms-footer li {
	margin-bottom: 10px;
}

.lms-footer a {
	color: #b6b3d8;
}

.lms-footer a:hover {
	color: #ffffff;
}

.lms-footer p {
	color: #b6b3d8;
}

.lms-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #8f8bb3;
}

.lms-footer__bottom .lms-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 22px;
	padding-bottom: 22px;
	font-size: 13px;
}

.lms-footer__bottom p {
	margin: 0;
	color: #8f8bb3;
}

.lms-footer__menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lms-footer__menu a {
	color: #8f8bb3;
}

.lms-footer__menu a:hover {
	color: #ffffff;
}

.lms-footer__payments {
	margin-top: 24px;
	display: flex;
	justify-content: flex-start;
}

.lms-footer__payments img {
	max-height: 32px;
	width: auto;
	opacity: 0.9;
}

/* ==========================================================================
   7. Overlays: search modal, cart drawer, mobile menu, age gate
   ========================================================================== */
.lms-modal,
.lms-drawer,
.lms-mobile-menu,
.lms-age-gate {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lms-modal.is-open,
.lms-drawer.is-open,
.lms-mobile-menu.is-open,
.lms-age-gate.is-open {
	visibility: visible;
	opacity: 1;
}

.lms-modal__scrim,
.lms-drawer__scrim,
.lms-mobile-menu__scrim {
	position: absolute;
	inset: 0;
	background: rgba(18, 14, 43, 0.55);
	backdrop-filter: blur(3px);
}

.lms-modal__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 32px));
	background: #ffffff;
	border-radius: var(--radius-md);
	padding: 32px;
	box-shadow: var(--shadow-lg);
}

.lms-modal__close,
.lms-drawer__close {
	width: 36px;
	height: 36px;
	border: none;
	background: var(--color-surface);
	border-radius: var(--radius-pill);
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted);
	transition: background 0.2s ease, color 0.2s ease;
}

.lms-modal__close:hover,
.lms-drawer__close:hover {
	background: var(--color-accent-light);
	color: var(--color-accent);
}

.lms-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
}

.lms-search-modal__label {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 16px;
	letter-spacing: -0.02em;
}

.lms-search-modal__hint {
	color: var(--color-text-muted);
	font-size: 13px;
	margin: 14px 0 0;
}

/* Fullscreen search (overlay). */
.lms-search-modal .lms-modal__content {
	top: 0;
	left: 0;
	transform: none;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	box-shadow: none;
	padding: 72px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.12), transparent 40%),
		radial-gradient(circle at 88% 20%, rgba(162, 28, 175, 0.1), transparent 40%),
		#ffffff;
}

.lms-search-modal .lms-modal__close {
	top: 20px;
	right: 24px;
	width: 48px;
	height: 48px;
	font-size: 24px;
}

.lms-search-modal .lms-search-modal__label {
	text-align: center;
	font-size: clamp(24px, 4vw, 34px);
	margin-bottom: 28px;
}

.lms-search-modal .lms-search-form {
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
	gap: 12px;
}

.lms-search-modal .lms-search-form__input {
	font-size: 20px;
	padding: 16px 4px;
	border: none;
	border-bottom: 2px solid var(--color-border);
	border-radius: 0;
	background: transparent;
}

.lms-search-modal .lms-search-form__input:focus {
	outline: none;
	border-bottom-color: var(--color-accent);
	box-shadow: none;
}

.lms-search-modal .lms-search-form__submit {
	border-radius: var(--radius-pill);
	font-size: 16px;
	padding: 14px 30px;
	box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3);
}

.lms-search-modal .lms-search-modal__hint {
	text-align: center;
	margin-top: 22px;
}

.lms-search-form {
	display: flex;
	gap: 10px;
}

.lms-search-form__input {
	flex: 1;
	font-size: 16px;
}

.lms-search-form__submit {
	border: none;
	border-radius: var(--radius-pill);
	background: var(--color-accent-grad);
	color: #ffffff;
	font-weight: 600;
	padding: 12px 22px;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3);
}

.lms-search-form__submit:hover {
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

.lms-drawer__panel,
.lms-mobile-menu__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	background: #ffffff;
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}

.lms-drawer__panel {
	right: 0;
	transform: translateX(100%);
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.lms-drawer.is-open .lms-drawer__panel {
	transform: translateX(0);
}

.lms-mobile-menu__panel {
	left: 0;
	transform: translateX(-100%);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.lms-mobile-menu.is-open .lms-mobile-menu__panel {
	transform: translateX(0);
}

.lms-drawer__header,
.lms-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--color-border);
	background: linear-gradient(135deg, #ffffff, var(--color-surface));
}

.lms-drawer__header h2 {
	font-size: 18px;
	margin: 0;
}

.lms-mobile-menu__title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
}

.lms-drawer__body {
	padding: 22px;
	overflow-y: auto;
	flex: 1;
}

/* Mobile menu list */
.lms-mobile-menu__nav .lms-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 8px 0;
}

.lms-mobile-menu__nav .lms-menu > li {
	width: 100%;
}

.lms-mobile-menu__nav .lms-menu > li > a {
	font-size: 16px;
	padding: 13px 16px;
	border-radius: var(--radius-sm);
}

.lms-mobile-menu__nav .lms-menu .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: none;
	padding: 0 8px 0 20px;
	display: none;
	background: transparent;
}

.lms-mobile-menu__nav .lms-menu li.menu-item-has-children.open > .sub-menu {
	display: block;
}

.lms-mobile-menu__nav .lms-menu li.menu-item-has-children > a {
	position: relative;
}

.lms-mobile-menu__nav .lms-menu li.menu-item-has-children > a::after {
	content: '+';
	position: absolute;
	right: 16px;
	font-weight: 600;
}

.lms-mobile-menu__nav .lms-menu li.menu-item-has-children.open > a::after {
	content: '\2212';
}

/* Age gate */
.lms-age-gate {
	background: rgba(18, 14, 43, 0.72);
	backdrop-filter: blur(4px);
}

.lms-age-gate__card {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	border-radius: var(--radius-lg);
	padding: 44px;
	text-align: center;
	width: min(520px, calc(100% - 32px));
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.lms-age-gate__card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: var(--color-accent-grad);
}

.lms-age-gate__card h2 {
	font-size: 26px;
	margin-bottom: 8px;
}

.lms-age-gate__card p {
	color: var(--color-text-muted);
}

.lms-age-gate__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
	flex-wrap: wrap;
}

.lms-age-gate__denied {
	display: none;
	margin-top: 16px;
	color: var(--color-sale);
	font-weight: 600;
}

.lms-age-gate__denied p {
	margin: 4px 0;
}

/* Account popover (Login / Register panel) */
.lms-popover {
	position: fixed;
	inset: 0;
	z-index: 300;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lms-popover.is-open {
	visibility: visible;
	opacity: 1;
}

.lms-popover__scrim {
	position: absolute;
	inset: 0;
	background: rgba(18, 14, 43, 0.4);
}

.lms-popover__panel {
	position: absolute;
	top: 88px;
	right: 20px;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: var(--radius-md);
	padding: 26px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.lms-popover__panel::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--color-accent-grad);
}

.lms-popover__close {
	position: absolute;
	top: 16px;
	right: 16px;
}

.lms-account-title {
	font-size: 22px;
	margin-bottom: 4px;
	padding-right: 24px;
}

.lms-account-register {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
}

.lms-account-greeting {
	font-weight: 600;
	margin-bottom: 16px;
}

.lms-popover__panel .btn {
	width: 100%;
	margin-bottom: 10px;
}

/* Login form */
.lms-login-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.lms-required {
	color: var(--color-sale);
}

.lms-login-form input[type="text"],
.lms-login-form input[type="password"] {
	margin-bottom: 14px;
}

.lms-login-remember {
	font-size: 14px;
	color: var(--color-text-muted);
}

.lms-login-remember input {
	width: auto;
	margin-right: 4px;
}

.lms-login-submit .btn {
	width: 100%;
}

.lms-login-lost {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	color: var(--color-text-muted);
}

.lms-login-lost:hover {
	color: var(--color-accent);
}

/* Mobile bottom bar (cart / wishlist / account) */
.lms-mobile-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 150;
	display: none;
	grid-template-columns: repeat(3, 1fr);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -6px 24px rgba(24, 22, 43, 0.08);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lms-mobile-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px 8px;
	color: var(--color-heading);
	font-size: 12px;
	font-weight: 500;
}

.lms-mobile-bar__item:hover {
	color: var(--color-accent);
}

.lms-mobile-bar__icon {
	color: var(--color-heading);
}

.lms-mobile-bar__label .lms-cart-count {
	font-size: 13px;
}

body.lms-lock {
	overflow: hidden;
}

/* ==========================================================================
   8. Blog entries / pages
   ========================================================================== */
.lms-entries {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lms-entry {
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	padding: 24px;
}

.lms-entry:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-5px);
}

.lms-entry-thumb {
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: 18px;
	display: block;
}

.lms-entry-thumb img {
	width: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.lms-entry:hover .lms-entry-thumb img {
	transform: scale(1.04);
}

.lms-entry-title {
	font-size: 20px;
	margin: 0 0 8px;
}

.lms-entry-title a {
	color: var(--color-heading);
}

.lms-entry-title a:hover {
	color: var(--color-accent);
}

.lms-entry-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--color-text-muted);
	font-size: 13px;
	margin-bottom: 10px;
}

.lms-entry-meta a {
	color: var(--color-text-muted);
}

.lms-entry-meta a:hover {
	color: var(--color-accent);
}

.lms-entry-summary {
	color: var(--color-text);
}

.lms-entry-content > :last-child {
	margin-bottom: 0;
}

.lms-entry-content h2,
.lms-entry-content h3,
.lms-entry-content h4 {
	margin-top: 1.5em;
}

.lms-entry-content img {
	border-radius: var(--radius-sm);
}

.lms-entry-more {
	font-weight: 600;
	font-size: 14px;
}

/* Pagination */
.lms-pagination {
	margin-top: 44px;
}

.lms-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.lms-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	color: var(--color-text);
	background: var(--color-background);
	font-weight: 500;
	transition: all 0.2s ease;
}

.lms-pagination .page-numbers.current,
.lms-pagination .page-numbers:hover {
	background: var(--color-accent-grad);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.32);
}

/* 404 */
.lms-404 {
	text-align: center;
	padding: 80px 0;
}

.lms-404__code {
	font-size: clamp(72px, 14vw, 140px);
	line-height: 1;
	font-weight: 700;
	margin-bottom: 8px;
	background: var(--color-accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lms-404 .lms-search-form {
	max-width: 420px;
	margin: 28px auto 0;
}

/* Comment form (minimal) */
.comment-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	margin-bottom: 14px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment-body {
	background: var(--color-surface);
	border-radius: var(--radius-sm);
	padding: 18px;
	margin-bottom: 16px;
	border: 1px solid var(--color-border);
}

/* Default WordPress search form (search.php, 404.php, content-none.php) */
.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
}

.search-form .search-submit {
	border: none;
	border-radius: var(--radius-pill);
	background: var(--color-accent-grad);
	color: #ffffff;
	font-weight: 600;
	padding: 12px 22px;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3);
}

.search-form .search-submit:hover {
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   9. Homepage — the signature "Hackerblog" hero
   ========================================================================== */

/* Hero — animated midnight-violet gradient with floating orbs + grid. */
.lms-hero {
	background: var(--grad-hero);
	color: #ffffff;
	padding: 88px 0;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Subtle grid overlay. */
.lms-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--grid-lines) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-lines) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
}

/* Soft vignette + graceful fade into the white page below (airy, less heavy). */
.lms-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 78% 22%, rgba(162, 28, 175, 0.35), transparent 70%),
		radial-gradient(50% 45% at 12% 80%, rgba(124, 58, 237, 0.32), transparent 70%);
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
	mask-image: linear-gradient(180deg, #000 70%, transparent);
}

/* Floating gradient orbs (pure CSS, animated). */
.lms-hero__orbs {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.lms-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
	animation: lms-orb-drift 18s ease-in-out infinite alternate;
}

.lms-orb--1 {
	width: 360px;
	height: 360px;
	top: -120px;
	left: -80px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.9), transparent 70%);
}

.lms-orb--2 {
	width: 320px;
	height: 320px;
	bottom: -140px;
	right: -60px;
	background: radial-gradient(circle, rgba(162, 28, 175, 0.8), transparent 70%);
	animation-delay: -6s;
}

@keyframes lms-orb-drift {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(30px, -24px) scale(1.08); }
	100% { transform: translate(-24px, 20px) scale(0.96); }
}

.lms-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 900px;
	text-align: center;
}

.lms-hero__content {
	min-width: 0;
	max-width: 760px;
}

.lms-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #ffffff;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 7px 16px;
	border-radius: var(--radius-pill);
	margin-bottom: 24px;
	backdrop-filter: blur(4px);
}

.lms-hero__eyebrow::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.7);
}

.lms-hero h1 {
	color: #ffffff;
	font-size: clamp(36px, 5.4vw, 62px);
	margin-bottom: 20px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.lms-hero h1 .lms-highlight {
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lms-hero p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 18px;
	margin: 0 auto 32px;
	max-width: 540px;
}

.lms-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 40px;
}

.lms-hero .btn--accent {
	background: #ffffff;
	color: #1a0f3d;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.lms-hero .btn--accent:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
	color: #1a0f3d;
}

.lms-hero .btn--ghost {
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.lms-hero .btn--ghost:hover {
	border-color: #ffffff;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

/* Hero stats row. */
.lms-hero__stats {
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 22px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lms-hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lms-hero__stats strong {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
}

.lms-hero__star {
	color: #f59e0b;
	font-size: 15px;
	vertical-align: 2px;
	margin-left: 3px;
}

.lms-hero__stats span {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

/* --- Hero visual: floating course-card mockup (pure CSS, no image) --- */
.lms-hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 460px;
}

.lms-hero-card {
	width: min(360px, 100%);
	background: #ffffff;
	color: var(--color-text);
	border-radius: var(--radius-lg);
	box-shadow: 0 40px 90px rgba(10, 5, 35, 0.5);
	overflow: hidden;
	transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
	transition: transform 0.5s ease;
	animation: lms-card-float 6s ease-in-out infinite;
}

.lms-hero:hover .lms-hero-card {
	transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

@keyframes lms-card-float {
	0%, 100% { margin-top: 0; }
	50%      { margin-top: -14px; }
}

.lms-hero-card__media {
	position: relative;
	height: 180px;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 45%),
		var(--color-accent-grad);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lms-hero-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.lms-hero-card__media .lms-hero-card__play {
	position: relative;
	z-index: 2;
}

.lms-hero-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
	background-size: 34px 34px;
	opacity: 0.5;
}

.lms-hero-card__play {
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
	z-index: 2;
}

.lms-hero-card__play svg {
	width: 26px;
	height: 26px;
	fill: var(--color-accent);
	margin-left: 3px;
}

.lms-hero-card__body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lms-hero-card__cat {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-accent);
	font-weight: 700;
}

.lms-hero-card__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--color-heading);
	font-family: var(--font-heading);
	line-height: 1.3;
	margin: 0;
}

.lms-hero-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--color-text-muted);
}

.lms-hero-card__stars {
	color: #f59e0b;
	letter-spacing: 2px;
	font-size: 14px;
}

.lms-hero-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}

.lms-hero-card__progress {
	flex: 1;
	margin-right: 14px;
}

.lms-hero-card__progress .progress-rail {
	height: 7px;
	background: var(--color-surface-2);
	border-radius: var(--radius-pill);
	overflow: hidden;
}

.lms-hero-card__progress .progress-rail span {
	display: block;
	height: 100%;
	width: 68%;
	border-radius: var(--radius-pill);
	background: var(--color-accent-grad);
}

.lms-hero-card__progress small {
	font-size: 11px;
	color: var(--color-text-muted);
}

.lms-hero-card__price {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--color-accent);
	white-space: nowrap;
}

/* Floating side chips around the card. */
.lms-hero-float {
	position: absolute;
	background: rgba(255, 255, 255, 0.96);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--color-border);
	animation: lms-orb-drift 8s ease-in-out infinite alternate;
}

.lms-hero-float__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--color-accent-light);
	color: var(--color-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lms-hero-float__icon svg { width: 19px; height: 19px; }

.lms-hero-float b {
	display: block;
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-heading);
	line-height: 1.2;
}

.lms-hero-float span {
	font-size: 12px;
	color: var(--color-text-muted);
}

.lms-hero-float--award {
	top: 8%;
	left: -6%;
	animation-delay: -4s;
}

.lms-hero-float--learn {
	bottom: 12%;
	right: -4%;
	animation-delay: -2s;
}

/* --- Promo / category banners (bento tiles) --- */
.lms-promos-section {
	padding: 56px 0 8px;
}

.lms-promos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.lms-promo {
	border-radius: var(--radius-md);
	padding: 30px;
	color: #ffffff;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lms-promo::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.28), transparent 40%),
		linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
	background-size: auto, 30px 30px, 30px 30px;
}

.lms-promo::after {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	transition: transform 0.4s ease;
}

.lms-promo:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.lms-promo:hover::after {
	transform: scale(1.35);
}

.lms-promo--1 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.lms-promo--2 { background: linear-gradient(135deg, #a21caf, #ec4899); }
.lms-promo--3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.lms-promo h3 {
	color: #ffffff;
	margin-bottom: 4px;
	font-size: 24px;
	font-weight: 700;
	position: relative;
	z-index: 2;
}

.lms-promo p {
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 16px;
	font-size: 14px;
	position: relative;
	z-index: 2;
}

.lms-promo a {
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
	z-index: 2;
	background: rgba(255, 255, 255, 0.16);
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: background 0.2s ease;
}

.lms-promo a:hover {
	background: #ffffff;
	color: #1a0f3d;
}

/* --- Trust / features strip --- */
.lms-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.lms-feature {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 22px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lms-feature:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-accent);
}

.lms-feature__icon {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-sm);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
}

.lms-feature__icon .lms-icon { width: 24px; height: 24px; }

.lms-feature:nth-child(1) .lms-feature__icon { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.lms-feature:nth-child(2) .lms-feature__icon { background: linear-gradient(135deg, #7c3aed, #a21caf); }
.lms-feature:nth-child(3) .lms-feature__icon { background: linear-gradient(135deg, #10b981, #06b6d4); }
.lms-feature:nth-child(4) .lms-feature__icon { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.lms-feature h3 {
	font-size: 15px;
	margin: 0 0 3px;
}

.lms-feature p {
	margin: 0;
	font-size: 13px;
	color: var(--color-text-muted);
}

/* ==========================================================================
   10. Scroll-to-top button
   ========================================================================== */
.lms-scroll-top {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 120;
	width: 50px;
	height: 50px;
	border: none;
	border-radius: var(--radius-pill);
	background: var(--color-accent-grad);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px rgba(124, 58, 237, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.lms-scroll-top:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(124, 58, 237, 0.5);
}

.lms-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}