/**
 * emadbrz – Site-wide dark mode (html[data-theme="dark"]).
 * Semantic tokens: design-tokens.css · section vars remapped below.
 */

html[data-theme='dark'] {
    color-scheme: dark;
}

html[data-theme='dark'] body {
    background: var(--page-bg);
    color: var(--text-primary);
}

html[data-theme='dark'] ::selection {
    background: var(--color-300);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   Section token remaps (inherit via var())
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-products,
html[data-theme='dark'] .emadbrz-shop {
    --pd-blue: #9b98f5;
    --pd-blue-light: #b4b2ff;
    --pd-blue-soft: rgba(155, 152, 245, 0.14);
    --pd-text: #f1f5f9;
    --pd-muted: #94a3b8;
    --pd-body: #cbd5e1;
    --pd-white: #1c1f2b;
    --pd-glass: rgba(28, 31, 43, 0.9);
    --pd-filter-bg: rgba(28, 31, 43, 0.72);
    --pd-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --pd-shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.42);
}

html[data-theme='dark'] .emadbrz-shop {
    --sh-blue: #9b98f5;
    --sh-blue-light: #b4b2ff;
    --sh-text: #f1f5f9;
    --sh-muted: #94a3b8;
    --sh-body: #cbd5e1;
    --sh-glass: rgba(28, 31, 43, 0.9);
    --sh-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-workshop {
    --ws-blue: #9b98f5;
    --ws-blue-light: #b4b2ff;
    --ws-blue-soft: rgba(155, 152, 245, 0.14);
    --ws-blue-border: #2d3344;
    --ws-text: #f1f5f9;
    --ws-text-body: #cbd5e1;
    --ws-text-feature: #cbd5e1;
    --ws-muted: #94a3b8;
    --ws-white: #1c1f2b;
    --ws-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.32);
    --ws-shadow-float: 0 10px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .emadbrz-portfolio {
    --pf-primary: #9b98f5;
    --pf-secondary: #b4b2ff;
    --pf-dark: #f1f5f9;
    --pf-muted: #94a3b8;
    --pf-card: #1c1f2b;
    --pf-card-border: rgba(255, 255, 255, 0.08);
    --pf-glass: rgba(28, 31, 43, 0.88);
    --pf-glass-border: rgba(255, 255, 255, 0.1);
    --pf-filter-bg: rgba(28, 31, 43, 0.72);
    --pf-badge-bg: #252936;
    --pf-badge-border: rgba(155, 152, 245, 0.22);
    --pf-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    --pf-shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .emadbrz-contact {
    --ct-black: #f1f5f9;
    --ct-charcoal: #cbd5e1;
    --ct-gray: #94a3b8;
    --ct-muted: #94a3b8;
    --ct-border: #2d3344;
    --ct-surface: #1c1f2b;
    --ct-focus: rgba(155, 152, 245, 0.22);
    --ct-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    --ct-shadow-hover: 0 22px 56px rgba(0, 0, 0, 0.42);
}

html[data-theme='dark'] .emadbrz-page,
html[data-theme='dark'] .emadbrz-page--post {
    --pg-blue: #9b98f5;
    --pg-blue-light: #b4b2ff;
    --pg-text: #f1f5f9;
    --pg-muted: #94a3b8;
    --pg-body: #cbd5e1;
    --pg-white: #1c1f2b;
    --pg-glass: rgba(28, 31, 43, 0.9);
    --pg-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-category {
    --cat-blue: #9b98f5;
    --cat-blue-light: #b4b2ff;
    --cat-text: #f1f5f9;
    --cat-muted: #94a3b8;
    --cat-body: #cbd5e1;
    --cat-glass: rgba(28, 31, 43, 0.9);
    --cat-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-cart {
    --ct-blue: #9b98f5;
    --ct-blue-light: #b4b2ff;
    --ct-text: #f1f5f9;
    --ct-muted: #94a3b8;
    --ct-body: #cbd5e1;
    --ct-white: #1c1f2b;
    --ct-glass: rgba(28, 31, 43, 0.9);
    --ct-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-checkout {
    --co-blue: #9b98f5;
    --co-blue-light: #b4b2ff;
    --co-text: #f1f5f9;
    --co-muted: #94a3b8;
    --co-body: #cbd5e1;
    --co-white: #1c1f2b;
    --co-glass: rgba(28, 31, 43, 0.9);
    --co-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-my-account {
    --ma-blue: #9b98f5;
    --ma-blue-light: #b4b2ff;
    --ma-blue-soft: rgba(155, 152, 245, 0.14);
    --ma-text: #f1f5f9;
    --ma-muted: #94a3b8;
    --ma-body: #cbd5e1;
    --ma-white: #1c1f2b;
    --ma-glass: rgba(28, 31, 43, 0.9);
    --ma-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-not-found {
    --nf-blue: #9b98f5;
    --nf-blue-light: #b4b2ff;
    --nf-text: #f1f5f9;
    --nf-muted: #94a3b8;
    --nf-body: #cbd5e1;
    --nf-glass: rgba(28, 31, 43, 0.9);
    --nf-border: rgba(255, 255, 255, 0.08);
    --nf-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

html[data-theme='dark'] .emadbrz-tickets {
    --tk-blue: #9b98f5;
    --tk-blue-light: #b4b2ff;
    --tk-text: #f1f5f9;
    --tk-muted: #94a3b8;
    --tk-body: #cbd5e1;
    --tk-border: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .emadbrz-licenses {
    --lic-blue: #9b98f5;
    --lic-blue-light: #b4b2ff;
    --lic-text: #f1f5f9;
    --lic-muted: #94a3b8;
    --lic-border: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .emadbrz-single-product {
    --sp-text: #f1f5f9;
    --sp-muted: #94a3b8;
    --sp-bg: #0f1117;
    --sp-card: #1c1f2b;
    --sp-border: #2d3344;
    --sp-gold: #9b98f5;
    --sp-gold-light: #b4b2ff;
}

/* ═══════════════════════════════════════════
   Homepage section surfaces
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-hero {
    background: #050507;
}

html[data-theme='dark'] .emadbrz-about,
html[data-theme='dark'] .emadbrz-workshop,
html[data-theme='dark'] .emadbrz-products,
html[data-theme='dark'] .emadbrz-portfolio,
html[data-theme='dark'] .emadbrz-contact {
    background: var(--background-primary);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-hero__shell,
html[data-theme='dark'] .emadbrz-about__shell {
    background: var(--hero-shell-bg);
    border-color: var(--border);
    box-shadow: var(--hero-shell-shadow);
}

html[data-theme='dark'] .emadbrz-hero__features-bar .emadbrz-hero__feature,
html[data-theme='dark'] .emadbrz-hero__chip,
html[data-theme='dark'] .emadbrz-hero__social,
html[data-theme='dark'] .emadbrz-hero__visual-panel,
html[data-theme='dark'] .emadbrz-about__feature,
html[data-theme='dark'] .emadbrz-about__float,
html[data-theme='dark'] .emadbrz-workshop__float,
html[data-theme='dark'] .emadbrz-workshop__media-card,
html[data-theme='dark'] .emadbrz-product-card__shell,
html[data-theme='dark'] .emadbrz-portfolio-card__shell,
html[data-theme='dark'] .emadbrz-contact__card {
    background: var(--hero-glass-bg);
    border-color: var(--hero-glass-border);
    box-shadow: var(--hero-glass-shadow);
}

html[data-theme='dark'] .emadbrz-hero__stats {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme='dark'] .emadbrz-product-card__shell {
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-product-card:hover .emadbrz-product-card__shell {
    border-color: rgba(155, 152, 245, 0.35);
}

html[data-theme='dark'] .emadbrz-product-card__type-badge,
html[data-theme='dark'] .emadbrz-product-card__bookmark {
    background: rgba(28, 31, 43, 0.92);
    border-color: var(--border);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-product-card__img--placeholder {
    background: linear-gradient(145deg, #252936, #1c1f2b);
}

html[data-theme='dark'] .emadbrz-product-card__desc,
html[data-theme='dark'] .emadbrz-product-card__meta {
    color: var(--pd-muted);
}

html[data-theme='dark'] .emadbrz-workshop__img--placeholder {
    background: linear-gradient(145deg, #252936 0%, #1c1f2b 45%, #161822 100%);
}

html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__shell {
    background: linear-gradient(180deg, var(--pf-card) 0%, #252936 100%);
}

/* ═══════════════════════════════════════════
   Gradient / clip text (fix invisible text)
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-hero__title-line--gradient,
html[data-theme='dark'] .emadbrz-about__headline-line--gradient,
html[data-theme='dark'] .emadbrz-portfolio__title-part--gradient {
    background-image: linear-gradient(135deg, #f1f5f9 0%, #9b98f5 45%, #b4b2ff 75%, #6eb5ff 100%);
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html[data-theme='dark'] .emadbrz-hero__stat-value {
    background: linear-gradient(135deg, #f1f5f9 10%, #9b98f5 55%, #b4b2ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html[data-theme='dark'] .emadbrz-contact__title-line--accent {
    background: linear-gradient(135deg, #f1f5f9 0%, #9b98f5 55%, #cbd5e1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-hero__badge {
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.28);
    color: var(--hero-text);
}

html[data-theme='dark'] .emadbrz-hero__title,
html[data-theme='dark'] .emadbrz-hero__description,
html[data-theme='dark'] .emadbrz-hero__stat-label,
html[data-theme='dark'] .emadbrz-hero__features-bar .emadbrz-hero__feature-title,
html[data-theme='dark'] .emadbrz-hero__features-bar .emadbrz-hero__feature-desc,
html[data-theme='dark'] .emadbrz-hero__social-title,
html[data-theme='dark'] .emadbrz-hero__social-sub,
html[data-theme='dark'] .emadbrz-hero__projects-link {
    color: var(--hero-text);
}

html[data-theme='dark'] .emadbrz-hero__description,
html[data-theme='dark'] .emadbrz-hero__stat-label,
html[data-theme='dark'] .emadbrz-hero__features-bar .emadbrz-hero__feature-desc,
html[data-theme='dark'] .emadbrz-hero__social-sub {
    color: var(--hero-text-muted);
}

html[data-theme='dark'] .emadbrz-hero__stat-divider {
    background: var(--border);
}

html[data-theme='dark'] .emadbrz-hero__btn--secondary {
    background: var(--hero-btn-secondary-bg);
    border-color: var(--hero-btn-secondary-border);
    color: var(--hero-text);
}

html[data-theme='dark'] .emadbrz-hero__btn--secondary:hover {
    background: var(--hero-btn-secondary-hover);
    color: var(--primary-hover);
}

html[data-theme='dark'] .emadbrz-hero__projects-link {
    background: var(--hero-glass-bg);
    border-color: var(--hero-glass-border);
}

html[data-theme='dark'] .emadbrz-hero__projects-link:hover {
    background: var(--hero-btn-secondary-hover);
    border-color: rgba(155, 152, 245, 0.35);
    color: var(--primary-hover);
}

html[data-theme='dark'] .emadbrz-hero__thumb {
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-hero__thumb.is-active {
    border-color: var(--primary);
}

html[data-theme='dark'] .emadbrz-hero__media-item {
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme='dark'] .emadbrz-hero__placeholder,
html[data-theme='dark'] .emadbrz-hero__media-placeholder {
    background: #252936;
    border-color: var(--border);
}

/* ═══════════════════════════════════════════
   About
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-about__headline,
html[data-theme='dark'] .emadbrz-about__feature-title,
html[data-theme='dark'] .emadbrz-about__float-title {
    color: var(--hero-text);
}

html[data-theme='dark'] .emadbrz-about__bio,
html[data-theme='dark'] .emadbrz-about__feature-desc,
html[data-theme='dark'] .emadbrz-about__float-desc {
    color: var(--hero-text-muted);
}

html[data-theme='dark'] .emadbrz-about__feature.is-open {
    border-color: rgba(155, 152, 245, 0.4);
}

html[data-theme='dark'] .emadbrz-about__feature-hint {
    background: rgba(37, 40, 54, 0.9);
    border-color: rgba(155, 152, 245, 0.35);
}

html[data-theme='dark'] .emadbrz-about__feature-hint::before,
html[data-theme='dark'] .emadbrz-about__feature-hint::after {
    background: #9b98f5;
}

html[data-theme='dark'] .emadbrz-about__btn--secondary {
    background: var(--hero-btn-secondary-bg);
    border-color: var(--border);
    color: var(--hero-text);
}

html[data-theme='dark'] .emadbrz-about__btn--secondary:hover {
    background: var(--hero-btn-secondary-hover);
    color: var(--primary-hover);
}

/* ═══════════════════════════════════════════
   Products & portfolio cards
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-products__filters-track,
html[data-theme='dark'] .emadbrz-portfolio__filters-track {
    background: var(--pd-filter-bg);
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-products__filter,
html[data-theme='dark'] .emadbrz-portfolio__filter {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-products__filter.is-active,
html[data-theme='dark'] .emadbrz-portfolio__filter.is-active {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-portfolio-card--medium .emadbrz-portfolio-card__title,
html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__title {
    color: var(--pf-dark);
}

html[data-theme='dark'] .emadbrz-portfolio-card--medium .emadbrz-portfolio-card__desc,
html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__desc {
    color: var(--pf-muted);
}

/* ═══════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-contact__input,
html[data-theme='dark'] .emadbrz-contact__textarea {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-contact__input::placeholder,
html[data-theme='dark'] .emadbrz-contact__textarea::placeholder {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-contact__info-label {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-contact__info-value,
html[data-theme='dark'] .emadbrz-contact__card-title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-contact__submit {
    background: var(--primary);
    color: var(--text-on-primary);
}

html[data-theme='dark'] .emadbrz-contact__submit:hover {
    background: var(--primary-hover);
}

html[data-theme='dark'] .emadbrz-contact__badge-dot {
    background: var(--primary);
}

/* ═══════════════════════════════════════════
   Header & drawer
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-header-sticky {
    --hdr-bg: #161822;
    --hdr-text: #e5e7eb;
    --hdr-text-muted: #94a3b8;
    --hdr-border: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] body.home .emadbrz-header-sticky,
html[data-theme='dark'] body.front-page .emadbrz-header-sticky {
    --hdr-bg: transparent;
    --hdr-text: #f3f4f6;
    --hdr-text-muted: rgba(229, 231, 235, 0.72);
    --hdr-border: rgba(255, 255, 255, 0.08);
    background: transparent;
}

html[data-theme='dark'] body.home .emadbrz-header-sticky--scrolled,
html[data-theme='dark'] body.front-page .emadbrz-header-sticky--scrolled {
    --hdr-bg: transparent;
    background: rgba(5, 5, 7, 0.8);
}

html[data-theme='dark'] .emadbrz-sidebar {
    background: #161822;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.45);
}

html[dir='rtl'][data-theme='dark'] .emadbrz-sidebar {
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
}

/* Drawer content surfaces (override light gradients) */
html[data-theme='dark'] .emadbrz-sidebar__inner {
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(155, 152, 245, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 0% 100%, rgba(155, 152, 245, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #1a1d28 0%, #161822 40%, #14161f 100%);
}

html[data-theme='dark'] .emadbrz-sidebar__inner::before {
    opacity: 0.045;
    background-image:
        linear-gradient(rgba(155, 152, 245, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 152, 245, 0.55) 1px, transparent 1px);
}

html[data-theme='dark'] .emadbrz-sidebar__nav {
    background: rgba(28, 31, 43, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .emadbrz-sidebar__menu > li > a {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-sidebar__menu > li > a:hover {
    color: var(--primary);
    background: rgba(155, 152, 245, 0.1);
}

html[data-theme='dark'] .emadbrz-sidebar__menu > li.is-active > a,
html[data-theme='dark'] .emadbrz-sidebar__menu > li.current-menu-item > a {
    color: var(--primary);
    background: rgba(155, 152, 245, 0.14);
    box-shadow: inset 0 0 0 1px rgba(155, 152, 245, 0.22);
}

html[data-theme='dark'] .emadbrz-sidebar__foot {
    background: rgba(28, 31, 43, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .emadbrz-sidebar__social {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .emadbrz-sidebar__social-link {
    color: #cbd5e1;
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.22);
}

html[data-theme='dark'] .emadbrz-sidebar__social-link:hover {
    color: var(--primary);
    background: rgba(155, 152, 245, 0.16);
    border-color: rgba(155, 152, 245, 0.28);
}

html[data-theme='dark'] .emadbrz-header-dropdown__panel {
    background: #1c1f2b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .emadbrz-header-dropdown__item,
html[data-theme='dark'] .emadbrz-header-dropdown__cart-item,
html[data-theme='dark'] .emadbrz-header-dropdown__cart-total,
html[data-theme='dark'] .emadbrz-header-dropdown__cart-total strong,
html[data-theme='dark'] .emadbrz-sidebar__foot-link,
html[data-theme='dark'] .emadbrz-sidebar__head-label {
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-sidebar__search input {
    background: transparent;
    border-color: transparent;
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-header-dropdown__btn--ghost {
    background: #252936;
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-header-dropdown__empty {
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   Single product
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-single-product__summary-inner,
html[data-theme='dark'] .emadbrz-single-product__gallery-main,
html[data-theme='dark'] .emadbrz-single-product__tab-panel,
html[data-theme='dark'] .emadbrz-single-product__related-card {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-single-product__title,
html[data-theme='dark'] .emadbrz-single-product__price,
html[data-theme='dark'] .emadbrz-single-product__excerpt,
html[data-theme='dark'] .emadbrz-single-product__meta-item {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-single-product__back,
html[data-theme='dark'] .emadbrz-single-product__breadcrumb-list,
html[data-theme='dark'] .emadbrz-single-product__rating-count {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-single-product__price {
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-single-product__sticky-bar {
    --sp-sticky-bg: rgba(22, 24, 34, 0.94);
    --sp-sticky-accent: #f1f5f9;
    --sp-sticky-accent-hover: #ffffff;
    --sp-sticky-muted: #94a3b8;
    --sp-sticky-border: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .emadbrz-single-product__sticky-bar-btn {
    background: var(--primary);
    color: var(--text-on-primary);
}

/* ═══════════════════════════════════════════
   Inner pages (shop, cart, checkout, account…)
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-shop,
html[data-theme='dark'] .emadbrz-cart,
html[data-theme='dark'] .emadbrz-checkout,
html[data-theme='dark'] .emadbrz-my-account,
html[data-theme='dark'] .emadbrz-page,
html[data-theme='dark'] .emadbrz-category,
html[data-theme='dark'] .emadbrz-not-found,
html[data-theme='dark'] .emadbrz-single-post,
html[data-theme='dark'] .emadbrz-tickets,
html[data-theme='dark'] .emadbrz-licenses {
    background: transparent;
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-shop__hero,
html[data-theme='dark'] .emadbrz-shop__shell,
html[data-theme='dark'] .emadbrz-shop__toolbar,
html[data-theme='dark'] .emadbrz-cart__hero,
html[data-theme='dark'] .emadbrz-cart__shell,
html[data-theme='dark'] .emadbrz-cart__aside,
html[data-theme='dark'] .emadbrz-checkout__hero,
html[data-theme='dark'] .emadbrz-checkout__shell,
html[data-theme='dark'] .emadbrz-my-account__hero,
html[data-theme='dark'] .emadbrz-my-account__shell,
html[data-theme='dark'] .emadbrz-my-account-nav,
html[data-theme='dark'] .emadbrz-page__hero,
html[data-theme='dark'] .emadbrz-page__shell,
html[data-theme='dark'] .emadbrz-category__hero,
html[data-theme='dark'] .emadbrz-category__shell,
html[data-theme='dark'] .emadbrz-not-found__panel,
html[data-theme='dark'] .emadbrz-page__content-shell,
html[data-theme='dark'] .emadbrz-tickets__card,
html[data-theme='dark'] .emadbrz-tickets__form,
html[data-theme='dark'] .emadbrz-tickets__reply,
html[data-theme='dark'] .emadbrz-tickets__msg,
html[data-theme='dark'] .emadbrz-licenses__table-wrap {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-shop__title,
html[data-theme='dark'] .emadbrz-cart__title,
html[data-theme='dark'] .emadbrz-checkout__title,
html[data-theme='dark'] .emadbrz-my-account__title,
html[data-theme='dark'] .emadbrz-page__title,
html[data-theme='dark'] .emadbrz-category__title,
html[data-theme='dark'] .emadbrz-not-found__title,
html[data-theme='dark'] .emadbrz-licenses__title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-shop__desc,
html[data-theme='dark'] .emadbrz-cart__desc,
html[data-theme='dark'] .emadbrz-checkout__desc,
html[data-theme='dark'] .emadbrz-my-account__desc,
html[data-theme='dark'] .emadbrz-my-account__email,
html[data-theme='dark'] .emadbrz-page__lead,
html[data-theme='dark'] .emadbrz-category__desc,
html[data-theme='dark'] .emadbrz-not-found__desc,
html[data-theme='dark'] .emadbrz-tickets__title,
html[data-theme='dark'] .emadbrz-tickets__card-title,
html[data-theme='dark'] .emadbrz-tickets__number,
html[data-theme='dark'] .emadbrz-tickets__msg-author {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-tickets__desc,
html[data-theme='dark'] .emadbrz-tickets__card-excerpt,
html[data-theme='dark'] .emadbrz-tickets__card-meta,
html[data-theme='dark'] .emadbrz-tickets__msg-body {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-tickets__field input[type="text"],
html[data-theme='dark'] .emadbrz-tickets__field select,
html[data-theme='dark'] .emadbrz-tickets__field textarea,
html[data-theme='dark'] .emadbrz-tickets__reply textarea {
    background: #252936;
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-tickets__field label {
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-page__prose,
html[data-theme='dark'] .emadbrz-page__prose p,
html[data-theme='dark'] .emadbrz-page__prose li,
html[data-theme='dark'] .emadbrz-page__prose h1,
html[data-theme='dark'] .emadbrz-page__prose h2,
html[data-theme='dark'] .emadbrz-page__prose h3,
html[data-theme='dark'] .emadbrz-page__prose h4 {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-page__prose a {
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-page__children,
html[data-theme='dark'] .emadbrz-page__child-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-page__children-title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-page__child-link:hover {
    color: var(--primary);
    border-color: rgba(155, 152, 245, 0.35);
}

html[data-theme='dark'] .emadbrz-post__author {
    background: rgba(28, 31, 43, 0.88);
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-my-account-nav__link,
html[data-theme='dark'] .emadbrz-my-account__woo .woocommerce-MyAccount-navigation li a {
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-my-account-nav__link.is-active,
html[data-theme='dark'] .emadbrz-my-account-nav__link:hover,
html[data-theme='dark'] .emadbrz-my-account__woo .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--primary);
    background: rgba(155, 152, 245, 0.1);
}

@media (max-width: 991px) {
    html[data-theme='dark'] .emadbrz-my-account-nav__scroll::before {
        background: linear-gradient(to right, var(--surface), transparent);
    }

    html[data-theme='dark'] .emadbrz-my-account--rtl .emadbrz-my-account-nav__scroll::before {
        background: linear-gradient(to left, var(--surface), transparent);
    }

    html[data-theme='dark'] .emadbrz-my-account-nav__scroll::after {
        background: linear-gradient(to left, var(--surface), transparent);
    }

    html[data-theme='dark'] .emadbrz-my-account--rtl .emadbrz-my-account-nav__scroll::after {
        background: linear-gradient(to right, var(--surface), transparent);
    }
}

/* WooCommerce forms & tables */
html[data-theme='dark'] .woocommerce form .form-row input.input-text,
html[data-theme='dark'] .woocommerce form .form-row textarea,
html[data-theme='dark'] .woocommerce form .form-row select,
html[data-theme='dark'] .woocommerce table.shop_table,
html[data-theme='dark'] .woocommerce table.shop_table td,
html[data-theme='dark'] .woocommerce table.shop_table th {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .woocommerce-message,
html[data-theme='dark'] .woocommerce-info {
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.28);
    color: var(--text-primary);
}

html[data-theme='dark'] .woocommerce-error {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fca5a5;
}

html[data-theme='dark'] .woocommerce-Price-amount {
    color: inherit;
}

/* Ticket / license badges stay readable */
html[data-theme='dark'] .emadbrz-tickets__flash--success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
}

html[data-theme='dark'] .emadbrz-tickets__flash--error {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.14);
}

/* ═══════════════════════════════════════════
   Workshop, products & portfolio headers
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-workshop__badge,
html[data-theme='dark'] .emadbrz-products__badge,
html[data-theme='dark'] .emadbrz-portfolio__badge {
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.22);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-workshop__title,
html[data-theme='dark'] .emadbrz-workshop__title-main,
html[data-theme='dark'] .emadbrz-products__title-main,
html[data-theme='dark'] .emadbrz-portfolio__title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-workshop__title-accent,
html[data-theme='dark'] .emadbrz-products__title-accent {
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-workshop__desc,
html[data-theme='dark'] .emadbrz-workshop__feature-desc,
html[data-theme='dark'] .emadbrz-products__desc,
html[data-theme='dark'] .emadbrz-portfolio__desc {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-workshop__desc-lead {
    color: var(--text-primary);
    border-bottom-color: rgba(155, 152, 245, 0.22);
}

html[data-theme='dark'] .emadbrz-workshop__desc-num {
    color: var(--primary);
    background: rgba(155, 152, 245, 0.14);
    border-color: rgba(155, 152, 245, 0.28);
    box-shadow: none;
}

html[data-theme='dark'] .emadbrz-workshop__desc-item:hover {
    background: rgba(155, 152, 245, 0.08);
}

html[data-theme='dark'] .emadbrz-workshop__feature-title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-workshop__feature-icon {
    background: rgba(155, 152, 245, 0.14);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-workshop__float {
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-workshop__float-title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-workshop__float-desc {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-workshop__path {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(155, 152, 245, 0.12), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(91, 88, 242, 0.1), transparent 50%),
        var(--bg-elevated, #14141c);
    border-color: var(--border);
    box-shadow: none;
}

html[data-theme='dark'] .emadbrz-workshop__pipeline-step,
html[data-theme='dark'] .emadbrz-workshop__part,
html[data-theme='dark'] .emadbrz-workshop__topic,
html[data-theme='dark'] .emadbrz-workshop__note {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-workshop__pipeline-step.is-active,
html[data-theme='dark'] .emadbrz-workshop__part.is-active {
    background: linear-gradient(160deg, rgba(155, 152, 245, 0.16), rgba(255, 255, 255, 0.04) 55%);
    border-color: rgba(155, 152, 245, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

html[data-theme='dark'] .emadbrz-workshop__part-title,
html[data-theme='dark'] .emadbrz-workshop__topic-text {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-workshop__part-time,
html[data-theme='dark'] .emadbrz-workshop__note-text,
html[data-theme='dark'] .emadbrz-workshop__pipeline-step {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-workshop__pipeline-step.is-active,
html[data-theme='dark'] .emadbrz-workshop__part-index,
html[data-theme='dark'] .emadbrz-workshop__topic-num,
html[data-theme='dark'] .emadbrz-workshop__path-label {
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-workshop__note-icon {
    background: rgba(155, 152, 245, 0.14);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-workshop__price-card {
    border-color: rgba(155, 152, 245, 0.28);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(155, 152, 245, 0.2) 0%, transparent 55%),
        linear-gradient(145deg, rgba(28, 31, 42, 0.98) 0%, rgba(18, 20, 28, 0.98) 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .emadbrz-workshop__price-label {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-workshop__price-old {
    color: #64748b;
}

html[data-theme='dark'] .emadbrz-workshop__price-note {
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-products__filters-track,
html[data-theme='dark'] .emadbrz-shop__filters-track {
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-product-card__title a,
html[data-theme='dark'] .emadbrz-product-card__instructor-name {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-product-card__desc,
html[data-theme='dark'] .emadbrz-product-card__instructor-role,
html[data-theme='dark'] .emadbrz-product-card__meta {
    color: var(--text-muted);
}

/* Product card CTA – solid purple for all cards */
html[data-theme='dark'] .emadbrz-product-card__cta,
html[data-theme='dark'] .emadbrz-product-card:not(.emadbrz-product-card--featured) .emadbrz-product-card__cta,
html[data-theme='dark'] .emadbrz-product-card--featured .emadbrz-product-card__cta {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pd-blue-light, #9b98f5), var(--pd-blue, #5b58f2));
    border: none;
    box-shadow: 0 14px 36px rgba(91, 88, 242, 0.32);
}

html[data-theme='dark'] .emadbrz-product-card__cta:hover,
html[data-theme='dark'] .emadbrz-product-card:not(.emadbrz-product-card--featured) .emadbrz-product-card__cta:hover,
html[data-theme='dark'] .emadbrz-product-card--featured .emadbrz-product-card__cta:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pd-blue-light, #9b98f5), var(--pd-blue, #5b58f2));
    border: none;
    box-shadow: 0 18px 44px rgba(91, 88, 242, 0.42);
    filter: brightness(1.03);
}

html[data-theme='dark'] .emadbrz-products__special-btn {
    color: var(--pd-blue-light);
    background: #252936;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .emadbrz-products__special-btn:hover {
    box-shadow: 0 16px 40px rgba(91, 88, 242, 0.22);
}

html[data-theme='dark'] .emadbrz-products__view-all {
    color: var(--text-primary);
    background: rgba(28, 31, 43, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .emadbrz-products__view-all:hover {
    color: var(--primary);
    border-color: rgba(155, 152, 245, 0.35);
    box-shadow: 0 14px 36px rgba(91, 88, 242, 0.18);
}

html[data-theme='dark'] .emadbrz-portfolio__cta,
html[data-theme='dark'] .emadbrz-portfolio__view-all {
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-portfolio-card__float-badge {
    background: rgba(28, 31, 43, 0.92);
    border: 1px solid var(--border);
    color: var(--primary);
}

/* Featured portfolio cards keep light text on imagery */
html[data-theme='dark'] .emadbrz-portfolio-card--featured .emadbrz-portfolio-card__title,
html[data-theme='dark'] .emadbrz-portfolio-card--featured .emadbrz-portfolio-card__subtitle {
    color: #ffffff;
}

/* Pill / text portfolio links on dark cards */
html[data-theme='dark'] .emadbrz-portfolio-card--medium .emadbrz-portfolio-card__link,
html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__link {
    color: var(--pf-secondary);
}

html[data-theme='dark'] .emadbrz-portfolio-card--medium .emadbrz-portfolio-card__link:hover,
html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__link:hover {
    color: var(--pf-primary);
}

html[data-theme='dark'] .emadbrz-portfolio-card__link--pill {
    color: #ffffff;
    background: rgba(155, 152, 245, 0.18);
    border-color: rgba(155, 152, 245, 0.28);
}

html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__link--pill {
    color: var(--pf-secondary);
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.26);
}

html[data-theme='dark'] .emadbrz-portfolio-card--compact .emadbrz-portfolio-card__link--pill:hover {
    color: #ffffff;
    background: rgba(155, 152, 245, 0.28);
    border-color: rgba(155, 152, 245, 0.4);
}

/* ═══════════════════════════════════════════
   Contact extras
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-contact__title {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-contact__subtitle {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-contact__info-item {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-contact__info-item:hover {
    background: #252936;
    border-color: rgba(155, 152, 245, 0.28);
}

html[data-theme='dark'] .emadbrz-contact__info-item-icon {
    color: #e0e7ff;
    background: rgba(155, 152, 245, 0.22);
    border-color: rgba(155, 152, 245, 0.4);
}

html[data-theme='dark'] .emadbrz-contact__info-item:hover .emadbrz-contact__info-item-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

html[data-theme='dark'] .emadbrz-contact__notice--success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.28);
}

html[data-theme='dark'] .emadbrz-contact__notice--error {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.28);
}

/* ═══════════════════════════════════════════
   Sidebar & header chrome
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-sidebar__search {
    background: #252936;
    border-color: var(--border);
    box-shadow: none;
}

html[data-theme='dark'] .emadbrz-sidebar__search:focus-within {
    background: #2d3344;
    border-color: rgba(155, 152, 245, 0.35);
    box-shadow: 0 0 0 4px rgba(155, 152, 245, 0.12);
}

html[data-theme='dark'] .emadbrz-sidebar__close {
    background: #252936;
    border-color: var(--border);
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-sidebar__close:hover {
    background: #2d3344;
    border-color: rgba(155, 152, 245, 0.28);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-sidebar__lang-links {
    background: #252936;
    border-color: var(--border);
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-sidebar__lang-link:not(.is-active):hover {
    background: rgba(155, 152, 245, 0.1);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-header-dropdown__cart-item + .emadbrz-header-dropdown__cart-item {
    border-color: var(--border);
}

/* ═══════════════════════════════════════════
   Single post
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-post__nav-link,
html[data-theme='dark'] .emadbrz-post__comments {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-post__nav-kicker {
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-post__nav-title,
html[data-theme='dark'] .emadbrz-post__author-name {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-post__author-label,
html[data-theme='dark'] .emadbrz-post__tags-label {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-post__tag {
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.22);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-post__comments .comment-body,
html[data-theme='dark'] .emadbrz-post__comments .comment-meta,
html[data-theme='dark'] .emadbrz-post__comments .comment-form label {
    color: var(--text-secondary);
}

html[data-theme='dark'] .emadbrz-post__comments input[type="text"],
html[data-theme='dark'] .emadbrz-post__comments input[type="email"],
html[data-theme='dark'] .emadbrz-post__comments input[type="url"],
html[data-theme='dark'] .emadbrz-post__comments textarea {
    background: #252936;
    border-color: var(--border);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   Shop toolbar & misc pages
   ═══════════════════════════════════════════ */

html[data-theme='dark'] .emadbrz-shop__shell {
    border-color: var(--border);
}

html[data-theme='dark'] .emadbrz-shop__ordering select.orderby {
    background-color: #252936;
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-shop--rtl .emadbrz-shop__ordering select.orderby {
    background-color: #252936;
}

html[data-theme='dark'] .emadbrz-licenses__desc {
    color: var(--text-muted);
}

html[data-theme='dark'] .emadbrz-not-found__pin {
    background: var(--surface);
    border-color: var(--border);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-not-found__eyebrow {
    background: rgba(155, 152, 245, 0.12);
    border-color: rgba(155, 152, 245, 0.22);
    color: var(--primary);
}

html[data-theme='dark'] .emadbrz-single-product__title {
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html[data-theme='dark'] .emadbrz-my-account__stat,
html[data-theme='dark'] .emadbrz-my-account__stat--soft,
html[data-theme='dark'] .emadbrz-my-account__woo .woocommerce-MyAccount-content,
html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo:not(:has(#customer_login)),
html[data-theme='dark'] .emadbrz-my-account__woo .u-column1,
html[data-theme='dark'] .emadbrz-my-account__woo .u-column2,
html[data-theme='dark'] .emadbrz-my-account__woo .col-1,
html[data-theme='dark'] .emadbrz-my-account__woo .col-2,
html[data-theme='dark'] .emadbrz-checkout-card,
html[data-theme='dark'] .emadbrz-checkout-payment__methods .payment_box,
html[data-theme='dark'] .emadbrz-thankyou,
html[data-theme='dark'] .emadbrz-thankyou-details__item,
html[data-theme='dark'] .emadbrz-cart-form,
html[data-theme='dark'] .emadbrz-cart-summary,
html[data-theme='dark'] .emadbrz-cart-empty,
html[data-theme='dark'] .emadbrz-cart__woo .quantity {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo:not(:has(#customer_login)) > h2,
html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo label {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo input.input-text,
html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo input[type="text"],
html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo input[type="email"],
html[data-theme='dark'] .emadbrz-my-account.is-guest .emadbrz-my-account__woo input[type="password"] {
    background: #252936;
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-my-account__stat-value,
html[data-theme='dark'] .emadbrz-my-account__stat-label {
    color: var(--text-primary);
}

html[data-theme='dark'] .emadbrz-my-account__stat-label {
    color: var(--text-muted);
}
