:root[data-theme='light-mode'] {  /*light mode here*/
    --secondary-color: #000066;
    --primary-color: #4a6cf7;
    --tertiary-color: #4B7BF5;
    --accent-color: #4cd964;

    --light-color: #C2E2F5;
    --background-color: #fafbfe;
    --background-color-card: rgba(245, 246, 250, 0.75);
    --border-color-card: rgba(0, 0, 0, 0.07);

    --primary-text-color: #111118;
    --secondary-text-color: #555566;
    --tertiary-text-color: #2e2e2e;
    --primary-text-color-contrary: #ffffff;

    --footer-color: #121216;
    --copyright-footer-color: #0a0a0e;

    --github-button-color: #333;
    --button-color: var(--primary-color);

    --shadow-color: rgba(0, 0, 0, 0.06);
    --nav-bg: rgba(250, 251, 254, 0.72);

    /* Elevated card hover shadow */
    --shadow-card-hover: 0 8px 30px rgba(74, 108, 247, 0.12);
    --shadow-nav: 0 1px 12px rgba(0, 0, 0, 0.06);
    --shadow-focus: 0 0 0 3px rgba(74, 108, 247, 0.25);

    /* Verdict badge colors — darkened for WCAG contrast on light backgrounds */
    --verdict-recommended: #1a7a2e;
    --verdict-caution: #9a6b00;
    --verdict-skip: #c23030;

    --accent-warm: #d14532;
    --accent-warm-hover: #b93a2a;
}

:root[data-theme='dark-mode'] { /*dark mode here*/
  --secondary-color: #4d6dff;
  --primary-color: #5b7bff;
  --tertiary-color: #7b9aff;
  --accent-color: #4cd964;

  --light-color: #C2E2F5;
  --background-color: #0e0e12;
  --background-color-card: rgba(24, 24, 30, 0.85);
  --border-color-card: rgba(255, 255, 255, 0.07);

  --primary-text-color: #f0f0f3;
  --secondary-text-color: #b0b0be;
  --tertiary-text-color: #f0f0f3;
  --primary-text-color-contrary: #ededf0;

  --footer-color: #0a0a0e;
  --copyright-footer-color: #060608;

  --github-button-color: #333;
  --button-color: var(--primary-color);

  --shadow-color: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(14, 14, 18, 0.72);

  /* Dark mode elevated shadows with subtle glow */
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(91, 123, 255, 0.1);
  --shadow-nav: 0 1px 12px rgba(0, 0, 0, 0.4);
  --shadow-focus: 0 0 0 3px rgba(91, 123, 255, 0.35);

  --blobcolor: rgba(91, 123, 255, 0.2);
  --blobtwocolor: rgba(91, 123, 255, 0.12);
  --blobthreecolor: rgba(123, 154, 255, 0.12);

  --matrix-text-color: var(--primary-color);
  --matrix-background-color: rgba(18, 18, 20, 0.1);

  /* Verdict badge colors — bright for contrast on dark backgrounds */
  --verdict-recommended: #4cd964;
  --verdict-caution: #f5a623;
  --verdict-skip: #e05252;

  --accent-warm: #e04d3a;
  --accent-warm-hover: #d14532;
}
:root {
    --font-family-base: 'Rubik', sans-serif;

    /* ── Type scale ── */
    --size-xxs: 0.5rem;
    --size-xs:  0.75rem;
    --size-sm:  0.875rem;
    --size-base: 1rem;
    --size-lg:  1.125rem;
    --size-xl:  1.25rem;
    --size-2xl: 1.5rem;
    --size-3xl: 1.875rem;
    --size-4xl: 2.25rem;
    --size-5xl: 3rem;
    --size-6xl: 3.75rem;
    --size-7xl: 4.5rem;
    --size-8xl: 6rem;
    --size-9xl: 8rem;
    --size-10xl: 10rem;

    /* ── Line-height scale ── */
    --leading-tight:   1.15;
    --leading-snug:    1.3;
    --leading-normal:  1.5;
    --leading-relaxed: 1.65;
    --leading-loose:   1.85;

    /* ── Letter-spacing scale ── */
    --tracking-tighter: -0.03em;
    --tracking-tight:   -0.015em;
    --tracking-normal:  0;
    --tracking-wide:    0.04em;
    --tracking-wider:   0.08em;
    --tracking-widest:  0.14em;

    /* ── Border radius tokens ── */
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ── Shadow scale ── */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm:  0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl:  0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(91, 123, 255, 0.15);

    /* ── Transition timing ── */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:   150ms;
    --duration-normal: 250ms;
    --duration-slow:   400ms;
    --duration-reveal: 600ms;

    /* ── Spacing rhythm (8px base grid) ── */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
}
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ========== RESET / BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  background-color: var(--background-color);
  color: var(--primary-text-color);
  transition: background-color var(--duration-slow) ease, color var(--duration-slow) ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--tertiary-color);
}

/* ========== IMAGE BLUR-UP LAZY LOADING ========== */
/* Progressive enhancement: images are visible by default.
   JS adds .blur-up to images it's managing; only those get hidden.
   Wrapper shows a tiny LQIP (Low-Quality Image Placeholder) as
   background-image while the real image loads — creates a smooth
   blur-to-sharp transition without layout shift. */
img.blur-up {
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--duration-normal, 0.3s) ease, filter var(--duration-normal, 0.3s) ease;
}
img.blur-up.loaded,
img.loaded {
  opacity: 1;
  filter: blur(0);
}
/* Wrapper for LQIP blur-up placeholder effect.
   Inline style sets background-image to the tiny LQIP;
   background-size: cover scales the ~32 px image to fill the
   container, producing a naturally blurred preview. */
.img-blur-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-subtle, rgba(128,128,128,0.08));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.img-blur-wrap picture {
  display: block;
  position: relative;
  z-index: 2;
}
.img-blur-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.post-hero-img .img-blur-wrap {
  max-width: 100%;
  max-height: 600px;
}
.post-hero-img .img-blur-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
}
.img-blur-wrap.loaded {
  background-image: none !important;
}

/* ========== FOCUS STATES (Accessibility) ========== */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible,
.filter-btn:focus-visible,
.header__contact:focus-visible {
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(74, 108, 247, 0.25));
  outline: none;
}

/* Skip-to-content link for keyboard navigation */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 99999;
  transition: top var(--duration-normal) var(--ease-out);
}
.skip-to-content:focus {
  top: 0.75rem;
  color: #fff;
}

/* ========== SELECTION HIGHLIGHT ========== */
::selection {
  background: rgba(91, 123, 255, 0.2);
  color: var(--primary-text-color);
}

/* ========== NAVBAR ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: transparent;
}

.header {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background-color: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border-color-card);
  transition: background-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

.header__logo-link {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.header__logo {
  max-width: 64px;
  height: auto;
}

.header__menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
  padding: 0;
}

.header__link {
  text-decoration: none;
  font-weight: 500;
  color: var(--secondary-text-color);
  font-size: var(--size-base);
  letter-spacing: var(--tracking-tight);
  transition: color var(--duration-normal) var(--ease-out);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

.header__link:hover,
.header__link.active {
  color: var(--primary-color);
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

.header__contact {
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--size-sm);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              filter var(--duration-fast) ease;
}

.header__contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 123, 255, 0.35);
  color: #fff;
  filter: brightness(1.08);
}

/* Theme toggle */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.small-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.6;
}

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

.toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  background-color: var(--border-color-card);
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  transition: background-color var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.toggle:checked {
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
}

.toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--duration-normal) var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle:checked::after {
  transform: translateX(18px);
}

/* Hamburger (mobile only) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary-text-color);
  border-radius: 2px;
  transition: background-color 0.2s;
}

.hamburger:hover span {
  background-color: var(--primary-color);
}

/* Mobile dropdown */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color-card);
  padding: 0.5rem 0;
  max-height: 500px;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
  overflow: hidden;
}

.mobile-nav a {
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  color: var(--primary-text-color);
  border-bottom: 1px solid var(--border-color-card);
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  font-size: var(--size-base);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background-color: rgba(91, 123, 255, 0.1);
  color: var(--primary-color);
  padding-left: 2rem;
}

.mobile-nav.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .header__menu {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  background-color: #1a2332;
  background-image: url('/static/image_assets/DSCF1754.JPG');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.55) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(10, 10, 20, 0.75) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
}

.hero__eyebrow {
  font-size: var(--size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, var(--size-2xl));
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero__bio {
  font-size: clamp(0.875rem, 1.8vw, var(--size-lg));
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  max-width: 620px;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero {
    aspect-ratio: auto;
    min-height: 500px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--size-base);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-normal) ease,
              background-color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              filter var(--duration-fast) ease;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: var(--tracking-tight);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 123, 255, 0.35);
  color: #fff;
  filter: brightness(1.08);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: var(--accent-warm);
  color: #fff;
  border: none;
}

.btn-accent:hover {
  background: var(--accent-warm-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(185, 58, 42, 0.35);
  color: #fff;
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 2rem;
}

.section--alt {
  background-color: var(--background-color-card);
}

.section__title {
  font-size: var(--size-4xl);
  font-weight: 700;
  color: var(--primary-text-color);
  margin-bottom: 0.25rem;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight, 1.15);
}

.section__subtitle {
  font-size: var(--size-base);
  color: var(--secondary-text-color);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.view-all {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  transition: color var(--duration-fast) ease,
              gap var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
}

.view-all:hover {
  color: var(--tertiary-color);
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* CTA banner */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}
.cta-banner:hover {
  border-color: rgba(91, 123, 255, 0.1);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.06));
}

.section--alt .cta-banner {
  background-color: var(--background-color);
}

.cta-banner__text h3 {
  font-size: var(--size-2xl);
  font-weight: 700;
  color: var(--primary-text-color);
  margin-bottom: 0.4rem;
}

.cta-banner__text p {
  font-size: var(--size-base);
  color: var(--secondary-text-color);
}

/* ========== CARDS (grid) ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
  border-color: rgba(91, 123, 255, 0.15);
}

.card__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.card__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: var(--size-xs);
  font-weight: 600;
  background-color: rgba(75, 123, 245, 0.15);
  color: var(--tertiary-color);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card__title {
  font-size: var(--size-xl);
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.3;
}

.card__description {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  line-height: 1.65;
  flex: 1;
}

.card__date {
  font-size: var(--size-xs);
  color: var(--secondary-text-color);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

/* ========== BLOG LIST (horizontal cards) ========== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card-h {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

.blog-card-h:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
  border-color: rgba(91, 123, 255, 0.15);
}

.blog-card-h__video {
  flex: 0 0 42%;
  position: relative;
  min-height: 210px;
}

.blog-card-h__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.blog-card-h__body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 680px) {
  .blog-card-h {
    flex-direction: column;
  }

  .blog-card-h__video {
    flex: none;
    position: relative;
    padding-top: 56.25%;
    min-height: unset;
  }
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border-color-card);
}

.page-header__title {
  font-size: clamp(2.5rem, 6vw, var(--size-6xl));
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  color: var(--primary-text-color);
  margin-bottom: 0.4rem;
  line-height: var(--leading-tight, 1.15);
}

.page-header__subtitle {
  font-size: var(--size-lg);
  color: var(--secondary-text-color);
  letter-spacing: var(--tracking-tight);
}

/* ========== ABOUT PAGE ========== */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.about-intro {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.about-intro__photo { flex-shrink: 0; }

.about-intro__img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(91, 123, 255, 0.3);
  box-shadow: 0 0 30px rgba(91, 123, 255, 0.15),
              0 0 60px rgba(91, 123, 255, 0.06);
  display: block;
  transition: box-shadow var(--duration-slow) ease,
              border-color var(--duration-slow) ease;
}
.about-intro__img:hover {
  box-shadow: 0 0 40px rgba(91, 123, 255, 0.25),
              0 0 80px rgba(91, 123, 255, 0.1);
  border-color: rgba(91, 123, 255, 0.5);
}

@media (max-width: 640px) {
  .about-intro { flex-direction: column; align-items: center; text-align: center; }
  .about-cta { justify-content: center; }
}

.about-intro__text h1 {
  font-size: clamp(2rem, 5vw, var(--size-5xl));
  font-weight: 800;
  color: var(--primary-text-color);
  margin-bottom: 0.25rem;
}

.about-intro__text .role {
  font-size: var(--size-xl);
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-intro__text p {
  font-size: var(--size-base);
  color: var(--secondary-text-color);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.about__skills {
  margin-bottom: 4rem;
}

.about__skills h2,
.about__contact h2 {
  font-size: var(--size-3xl);
  font-weight: 700;
  color: var(--primary-text-color);
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.skill-item {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: border-color var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) ease;
}

.skill-item:hover {
  border-color: rgba(91, 123, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  flex-shrink: 0;
}

.skill-item__name {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--primary-text-color);
}

.about__contact {
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: var(--size-base);
  color: var(--secondary-text-color);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.contact-info a {
  color: var(--primary-color);
}

.contact-info a:hover {
  color: var(--tertiary-color);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  color: var(--secondary-text-color);
  font-size: var(--size-lg);
  padding: 3rem 0;
  text-align: center;
}

/* ========== FOOTER ========== */
.footer-wrapper {
  background-color: var(--footer-color);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer {
  background-color: var(--footer-color);
  color: #fff;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

.footer-inner h3 {
  font-size: var(--size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-inner p {
  font-size: var(--size-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: #fff;
}

.copyright-footer {
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 1rem;
  font-size: var(--size-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========== VIDEO SEARCH & FILTERS ========== */
.video-search-wrap {
  padding: 0 0 0.5rem;
}
.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.video-count {
  font-size: 0.82rem;
  color: var(--secondary-text-color);
  margin-bottom: 1.25rem;
}

/* ========== VIDEO THUMBNAIL GRID ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.video-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
  border-color: rgba(91, 123, 255, 0.15);
  color: inherit;
}

.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.video-card:hover .video-card__thumb img {
  opacity: 0.75;
}

.video-card__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background-color: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  background: linear-gradient(135deg, rgba(91, 123, 255, 0.3), rgba(74, 108, 247, 0.2));
  backdrop-filter: blur(2px);
}

.video-card:hover .video-card__play {
  opacity: 1;
}

.video-card__body {
  padding: 0.75rem 0.9rem;
}

.video-card__title {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--primary-text-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Video → Blog review links ── */
.video-card-wrap { display: flex; flex-direction: column; }
.video-card__blog-links { padding: 0.4rem 0.9rem 0.6rem; }
.video-blog-link {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.video-blog-link:hover { color: var(--tertiary-color); text-decoration: underline; }
.video-blog-link__cat {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--secondary-text-color);
  margin-right: 0.3rem;
}

/* ── Product description on shop cards ── */
.product-card__desc {
  font-size: 0.8rem;
  color: var(--secondary-text-color);
  line-height: 1.45;
  margin: 0.25rem 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__sold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.product-card__sold-label {
  background: #e05252;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

#shop-source-filters {
  margin-bottom: 1rem;
}

/* ========== NEWSPAPER / BLOG ========== */

.masthead {
  border-bottom: 3px double var(--border-color-card);
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.masthead__eyebrow {
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-text-color);
  margin-bottom: 0.6rem;
}

.masthead__title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary-text-color);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight, 1.15);
}

.masthead__rule {
  height: 1px;
  background-color: var(--border-color-card);
  margin-top: 1.5rem;
}

.masthead__rule--section {
  margin: 0 2rem 2rem;
}

.newspaper {
  padding: 2rem;
}

/* Featured article */
.newspaper__featured {
  padding-bottom: 2rem;
  margin-bottom: 0;
  max-width: 780px;
}

.article-featured {
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--primary-color), var(--tertiary-color)) 1;
  padding-left: 1.5rem;
}

.article__category {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.article-featured__title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.article-featured__excerpt {
  font-size: var(--size-lg);
  color: var(--secondary-text-color);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 680px;
}

.article__meta {
  font-size: var(--size-xs);
  color: var(--secondary-text-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article__dot {
  opacity: 0.4;
}

/* Article grid */
.newspaper__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.article-card {
  padding: 1.75rem;
  border-right: 1px solid var(--border-color-card);
  border-bottom: 1px solid var(--border-color-card);
  transition: background-color 0.2s ease;
}

.article-card:hover {
  background-color: rgba(91, 123, 255, 0.03);
}

.article-card:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.article-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.article-card__title {
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-xl);
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.3;
  margin: 0.4rem 0 0.6rem;
  letter-spacing: -0.01em;
}

.article-card__excerpt {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .newspaper__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card:nth-child(3n) {
    border-right: 1px solid var(--border-color-card);
    padding-right: 1.5rem;
  }

  .article-card:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 580px) {
  .newspaper__grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    border-right: none;
    padding-right: 0;
  }
}

/* ========== HOME BLOG SECTION ========== */
.home-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.home-blog-featured {
  border-right: 1px solid var(--border-color-card);
  padding-right: 2rem;
}

.home-blog-featured__title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.25;
  margin: 0.4rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.home-blog-featured__excerpt {
  font-size: var(--size-base);
  color: var(--secondary-text-color);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.home-blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-blog-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color-card);
}

.home-blog-item:first-child {
  padding-top: 0;
}

.home-blog-item:last-child {
  border-bottom: none;
}

.home-blog-item:hover {
  background-color: rgba(91, 123, 255, 0.03);
}

.home-blog-item__title {
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.3;
  margin: 0.3rem 0 0.4rem;
  letter-spacing: -0.01em;
}

@media (max-width: 700px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .home-blog-featured {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-color-card);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
  }

}

/* ========== BLOG BODY (grid + sidebar) ========== */
.newspaper__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .newspaper__body {
    grid-template-columns: 1fr;
  }
}

/* ========== BLOG SIDEBAR ========== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background-color: var(--background-color-card);
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}
.sidebar-widget:hover {
  border-color: rgba(91, 123, 255, 0.1);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.06));
}

.sidebar-widget--cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  border-color: transparent;
}
.sidebar-widget--cta:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(91, 123, 255, 0.3);
}

.sidebar-widget--cta .sidebar-widget__title,
.sidebar-widget--cta .sidebar-widget__text {
  color: #fff;
}

.sidebar-widget__title {
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-text-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color-card);
}

.sidebar-widget--cta .sidebar-widget__title {
  border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-most-read {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-most-read__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.sidebar-most-read__num {
  font-size: var(--size-2xl);
  font-weight: 800;
  color: var(--secondary-text-color);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 1.5rem;
  font-family: 'Rubik', sans-serif;
}

.sidebar-most-read__title {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--primary-text-color);
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.sidebar-most-read__meta {
  font-size: var(--size-xs);
  color: var(--secondary-text-color);
}

.sidebar-widget__text {
  font-size: var(--size-sm);
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--secondary-text-color);
}

.sidebar-widget__btn {
  width: 100%;
  text-align: center;
  background: #fff !important;
  color: var(--primary-color) !important;
  border-color: #fff;
}

.sidebar-widget__btn:hover {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.85);
}

/* ========== SHOP PAGE ========== */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.shop-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.shop-sort__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-text-color);
  margin-right: 0.25rem;
}
.shop-sort__select {
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-sm);
  font-weight: 600;
  padding: 0.45rem 2.2rem 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color-card);
  background: none;
  color: var(--secondary-text-color);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23888' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.shop-sort__select:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  animation: sort-pulse 0.7s ease-in-out;
}
@keyframes sort-pulse {
  0%   { box-shadow: 0 0 0 0 transparent; }
  40%  { box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.2); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.shop-sort__select:focus {
  outline: none;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color-card);
  background: none;
  color: var(--secondary-text-color);
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              background-color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) ease;
  letter-spacing: var(--tracking-tight);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(91, 123, 255, 0.3);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
  border-color: rgba(91, 123, 255, 0.15);
  color: inherit;
}

.product-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--background-color-card) 0%,
    rgba(91, 123, 255, 0.08) 50%,
    rgba(91, 123, 255, 0.15) 100%);
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card__thumb img.loaded {
  opacity: 0.75;
}

.product-card:hover .product-card__thumb img.loaded {
  opacity: 0.55;
}

.product-card__body {
  padding: 1rem 1rem 0.5rem;
  flex: 1;
}

.product-card__category {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.product-card__name {
  font-size: var(--size-base);
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.product-card__price {
  display: inline-block;
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

.product-card__source {
  font-size: var(--size-xs);
  color: var(--secondary-text-color);
  line-height: 1.4;
}

.product-card__footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border-color-card);
  margin-top: 0.75rem;
}

.product-card__cta {
  display: block;
  text-align: center;
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(91, 123, 255, 0.06);
  border: 1.5px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  transition: background var(--duration-normal) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}

.product-card:hover .product-card__cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  border-color: transparent;
  color: #fff;
}

.shop-disclaimer {
  font-size: var(--size-xs);
  color: var(--secondary-text-color);
  text-align: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border-color-card);
  line-height: 1.6;
}

/* ========== CLICKABLE CARD LINKS ========== */
.article-card-link,
.article-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card-link:hover .article-card,
.article-card-link:hover .home-blog-featured,
.article-card-link:hover .home-blog-item {
  background-color: var(--background-color-card);
  border-radius: 8px;
}

.article-card-link:hover .article-card__title,
.article-card-link:hover .home-blog-featured__title,
.article-card-link:hover .home-blog-item__title {
  color: var(--primary-color);
}

.article-featured-link:hover .article-featured__title {
  color: var(--primary-color);
}

/* ========== SIDEBAR MOST-READ LINKS ========== */
.sidebar-most-read__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.sidebar-most-read__link:hover .sidebar-most-read__title {
  color: var(--primary-color);
}

.sidebar-most-read__item--active .sidebar-most-read__title {
  color: var(--primary-color);
  font-weight: 600;
}

.sidebar-most-read__item--active .sidebar-most-read__num {
  background: var(--primary-color);
  color: #fff;
}

/* ========== BLOG POST PAGE ========== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-layout .blog-sidebar { display: none; }
}

.post-article { min-width: 0; }

.post-back {
  display: inline-block;
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.post-back:hover { color: var(--primary-color); }

.post-header { margin-bottom: 2.5rem; }

.post-header .article__category { margin-bottom: 0.75rem; display: block; }

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: var(--leading-tight, 1.15);
  color: var(--primary-text-color);
  margin-bottom: 1rem;
  letter-spacing: var(--tracking-tighter);
}

.post-meta { margin-top: 0.75rem; }

/* Article body typography */
.post-body {
  font-size: var(--size-lg);
  line-height: var(--leading-relaxed, 1.65);
  color: var(--secondary-text-color);
  letter-spacing: var(--tracking-tight);
}

.post-body a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: rgba(91, 123, 255, 0.3);
  text-underline-offset: 3px;
  transition: color var(--duration-fast) ease,
              text-decoration-color var(--duration-fast) ease;
}
.post-body a:hover {
  color: var(--tertiary-color);
  text-decoration-color: var(--tertiary-color);
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--primary-color);
  background: var(--background-color-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--secondary-text-color);
  line-height: 1.7;
}
.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 0.88em;
  background: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--primary-color);
}

.post-body pre {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.6;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
  color: var(--primary-text-color);
}

.post-body hr {
  border: none;
  height: 1px;
  background: var(--border-color-card);
  margin: 2.5rem 0;
}

/* Post hero image (Image 1 — full-width, above article body) */
/* Hero image styling is defined later in the file (responsive, contain-based) */

/* Post gallery (Images 2 & 3 — side-by-side after body) */
.post-photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}
.post-photo-gallery__item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.post-photo-gallery__item--full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}
.post-photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.post-photo-gallery__item img:hover { transform: scale(1.02); }
@media (max-width: 600px) {
  .post-photo-gallery { grid-template-columns: 1fr; }
  .post-photo-gallery__item--full { aspect-ratio: 4 / 3; grid-column: auto; }
}

/* Inline images distributed through post content */
.post-inline-img {
  margin: 2rem auto;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.post-inline-img img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.post-inline-img img:hover { transform: scale(1.01); }

/* Image source credit caption */
.post-img-source {
  font-size: 0.75rem;
  color: var(--secondary-text-color, #888);
  text-align: center;
  padding: 0.35rem 0.5rem 0;
  font-style: italic;
}
.post-img-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(128,128,128,0.4);
}
.post-img-source a:hover {
  color: var(--primary-text-color);
  text-decoration-color: currentColor;
}

.post-body p { margin-bottom: 1.4rem; }

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-text-color);
  margin: 2.5rem 0 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color-card);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug, 1.3);
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text-color);
  margin: 1.75rem 0 0.6rem;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug, 1.3);
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.4rem 1.5rem;
}

.post-body li { margin-bottom: 0.5rem; }

.post-body strong { color: var(--primary-text-color); font-weight: 600; }

.post-body em { font-style: italic; }

/* ========== POST GEAR CTA (affiliate products) ========== */
.post-gear-cta {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--background-color-card) 0%, rgba(91,123,255,0.06) 100%);
  border: 1px solid var(--border-color-card);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.post-gear-cta__header { margin-bottom: 1.5rem; }

.post-gear-cta__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.post-gear-cta__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-text-color);
  margin: 0;
}

.post-gear-cta__all {
  font-size: var(--size-sm);
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.post-gear-cta__all:hover { text-decoration: underline; }

.post-gear-cta__subtitle {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  margin: 0;
}

.post-gear-cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

/* Individual product card */
.gear-card {
  display: flex;
  flex-direction: column;
  background: var(--background-color);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-md);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

.gear-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
  border-color: rgba(91, 123, 255, 0.15);
}

.gear-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--background-color-card) 0%,
    rgba(91, 123, 255, 0.08) 50%,
    rgba(91, 123, 255, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gear-card:hover .gear-card__img { transform: scale(1.06); }

.gear-card__img-placeholder {
  font-size: 2.5rem;
  opacity: 0.35;
}

.gear-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.gear-card__cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
}

.gear-card__name {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--primary-text-color);
  margin: 0;
  line-height: 1.35;
  flex: 1;
}

.gear-card__btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.4rem 0.75rem;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.gear-card:hover .gear-card__btn { background: var(--tertiary-color); }

.post-gear-cta__disclosure {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: var(--secondary-text-color);
  opacity: 0.7;
  text-align: center;
}

@media (max-width: 600px) {
  .post-gear-cta { padding: 1.25rem; }
  .post-gear-cta__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Post footer: prev/next nav */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color-card);
}

.post-footer__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  max-width: 45%;
}

.post-nav-link--next { text-align: right; margin-left: auto; }

.post-nav-link__label {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-text-color);
  margin-bottom: 0.3rem;
}

.post-nav-link__title {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--primary-text-color);
  transition: color var(--duration-fast) ease;
}

.post-nav-link:hover .post-nav-link__title { color: var(--primary-color); }
.post-nav-link:hover .post-nav-link__label { color: var(--primary-color); }

/* ================================================================
   NEW FEATURES — appended
   ================================================================ */

/* ========== READING PROGRESS BAR ========== */
#reading-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
  box-shadow: 0 0 12px rgba(91, 123, 255, 0.45);
  z-index: 10000;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ========== TABLE OF CONTENTS ========== */
.post-toc {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-toc__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-text-color);
  margin-bottom: 0.75rem;
}
.post-toc__list {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}
.post-toc__item {
  margin-bottom: 0.4rem;
}
.post-toc__link {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.15s;
}
.post-toc__link:hover {
  color: var(--tertiary-color);
  text-decoration: underline;
}

/* ========== SIDEBAR YOUTUBE EMBED ========== */
.sidebar-youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.sidebar-youtube-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ========== RELATED POSTS ========== */
.related-posts { margin: 2.5rem 0; }
.related-posts__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color-card);
  padding-bottom: 0.5rem;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  padding: 1rem;
  background: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--primary-text-color);
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}
.related-card:hover {
  border-color: rgba(91, 123, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(91, 123, 255, 0.12));
}
.related-card__title { font-size: 0.9rem; font-weight: 600; margin: 0.35rem 0 0.5rem; line-height: 1.4; }
.related-card__meta { font-size: 0.75rem; color: var(--secondary-text-color); }

/* ========== RESPONSIVE IMAGES ========== */

/* Image containers with flexible aspect ratios */
.image-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.image-container--landscape { aspect-ratio: 16 / 9; }
.image-container--portrait { aspect-ratio: 9 / 16; }
.image-container--square { aspect-ratio: 1 / 1; }
.image-container--auto { aspect-ratio: auto; }

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Related articles card image container (fixes overflow issue) */
.related-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px 8px 0 0;
  margin: -1rem -1rem 0.75rem -1rem;
}

.related-card__img .img-blur-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card__img picture {
  width: 100%;
  height: 100%;
}
.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero image - responsive with no hardcoded dimensions */
.post-hero-img {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-hero-img .img-blur-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 600px;
}

.post-hero-img picture {
  display: flex;
  justify-content: center;
}

.post-hero-img img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: contain;
}

/* Photo gallery - handles multiple images with flexible aspect ratios */
.post-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.post-photo-gallery__item {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-secondary);
}

.post-photo-gallery__item--full {
  grid-column: 1 / -1;
}

.post-photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* Content with image - text wrapping layout */
.content-with-image {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.content-with-image--left {
  flex-direction: row;
}

.content-with-image--right {
  flex-direction: row-reverse;
}

.content-with-image__img {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-secondary);
  height: fit-content;
}

.content-with-image__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.content-with-image__text {
  flex: 1;
  min-width: 250px;
}

/* Responsive: stack on tablet and mobile */
@media (max-width: 768px) {
  .content-with-image {
    flex-direction: column;
  }

  .content-with-image--left,
  .content-with-image--right {
    flex-direction: column;
  }

  .content-with-image__img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .post-photo-gallery {
    grid-template-columns: 1fr;
  }

  .post-photo-gallery__item--full {
    grid-column: 1;
  }
}

/* Inline image utilities for post content */
.post-body img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
}

.post-body img.img-inline-left {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  max-width: 40%;
}

.post-body img.img-inline-right {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 40%;
}

.post-body img.img-full-width {
  width: 100%;
  max-width: 100%;
}

/* Clearfix for inline images */
.post-body::after {
  content: '';
  display: table;
  clear: both;
}

/* Mobile: stack inline images */
@media (max-width: 640px) {
  .post-body img.img-inline-left,
  .post-body img.img-inline-right {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
}

/* ========== SOCIAL SHARE ========== */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-card);
}
.post-share__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--secondary-text-color);
}
.post-share__btn {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color-card);
  background: var(--background-color-card);
  color: var(--primary-text-color);
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out);
}
.post-share__btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.post-share__btn--reddit:hover  { border-color: #ff5700; background: rgba(255,87,0,0.07); }

/* ========== NEWSLETTER FORM (sidebar) ========== */
.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.newsletter-form__input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-md);
  color: var(--primary-text-color);
  font-family: 'Rubik', sans-serif;
  font-size: 0.85rem;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-normal) ease;
}
.newsletter-form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(74, 108, 247, 0.25));
}
.newsletter-form__btn { width: 100%; }
.newsletter-form__msg { font-size: 0.82rem; margin-top: 0.4rem; }

/* ========== STRAVA WIDGET ========== */
.strava-widget__name { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.strava-widget__stats { display: flex; gap: 1.25rem; margin-bottom: 0.4rem; }
.strava-stat { font-size: 0.85rem; color: var(--secondary-text-color); }
.strava-stat strong { color: var(--primary-text-color); }
.strava-widget__date { font-size: 0.78rem; color: var(--secondary-text-color); margin-bottom: 0.5rem; }
.strava-widget__link { font-size: 0.82rem; font-weight: 600; color: #fc4c02; }
.strava-widget__link:hover { text-decoration: underline; }

/* ========== BLOG SEARCH ========== */
.blog-search-wrap { padding: 1rem 0 0.25rem; }
.blog-search {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 1rem;
  background: var(--background-color-card);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  color: var(--primary-text-color);
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-normal) ease;
}
.blog-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(74, 108, 247, 0.25));
}

/* Blog category filter pills (reuses .filter-btn from shop) */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.blog-search-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--secondary-text-color);
  font-size: 1rem;
}

/* ========== VERDICT BADGE ========== */
.verdict-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.verdict-badge--recommended {
  background: rgba(76,217,100,0.15);
  color: var(--verdict-recommended, #1a7a2e);
  border: 1px solid rgba(76,217,100,0.3);
}
.verdict-badge--caution {
  background: rgba(245,166,35,0.15);
  color: var(--verdict-caution, #9a6b00);
  border: 1px solid rgba(245,166,35,0.3);
}
.verdict-badge--skip {
  background: rgba(224,82,82,0.15);
  color: var(--verdict-skip, #c23030);
  border: 1px solid rgba(224,82,82,0.3);
}

/* ========== SOURCE BADGE (ALIEXPRESS vs PRINTFUL) ========== */
.source-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  margin-right: 0.5rem;
}
.source-badge--aliexpress {
  background-color: rgba(150, 150, 150, 0.15);
  color: #666666;
  border: 1px solid rgba(150, 150, 150, 0.3);
}
.source-badge--printful {
  background-color: rgba(79, 124, 255, 0.15);
  color: #4f7cff;
  border: 1px solid rgba(79, 124, 255, 0.3);
}
.source-badge--siroko {
  background-color: rgba(230, 60, 30, 0.15);
  color: #d4381a;
  border: 1px solid rgba(230, 60, 30, 0.3);
}

/* ========== SEEN-IN BADGE ========== */
.seen-in-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(79,124,255,0.12);
  color: #4f7cff;
  border: 1px solid rgba(79,124,255,0.25);
  border-radius: 5px;
  padding: 0.08rem 0.4rem;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* ========== CALCULATOR PAGE ========== */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-sidebar { order: -1; }
}
.calc-total {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.5rem 0 0.25rem;
}
.calc-count { font-size: 0.82rem; color: var(--secondary-text-color); margin: 0; }
.calc-category { margin-bottom: 2rem; }
.calc-category__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--secondary-text-color);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color-card);
  padding-bottom: 0.35rem;
}
.calc-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  border: 1px solid transparent;
}
.calc-item:hover { background: var(--background-color-card); border-color: var(--border-color-card); }
.calc-item input[type=checkbox] { accent-color: var(--primary-color); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.calc-item__name { flex: 1; font-size: 0.88rem; }
.calc-item__price { font-size: 0.82rem; font-weight: 600; color: var(--secondary-text-color); white-space: nowrap; }


/* ============================================================
   NEW FEATURE CSS — contact, thumbnails, stars, lightbox,
   newsletter CTA, back-to-top, user count badge
   ============================================================ */

/* ── Article card thumbnails ──────────────────────────────────────────────── */
.article-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Small thumbnail variant for home page recent list */
.article-card-thumb--small {
  width: 80px;
  height: 60px;
  aspect-ratio: unset;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.article-card-thumb--small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Home page list item needs flex layout when thumbnail present */
.home-blog-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.home-blog-item__text { flex: 1; }

/* Featured thumbnail on blog listing page */
.article-card-thumb--featured {
  aspect-ratio: 21 / 9;
  max-height: 300px;
}

/* Thumbnail placeholder — shown when a blog post has no image yet */
.article-card-thumb--placeholder {
  background: linear-gradient(135deg, #060621 0%, #0000cc 65%, #1a1aff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.22);
  font-size: 3.5rem;
  user-select: none;
}
.article-card-thumb--placeholder.article-card-thumb--small {
  font-size: 1.6rem;
}

/* ── About strip (homepage) ───────────────────────────────────────────────── */
.section--about-strip { padding-top: 3rem; padding-bottom: 3rem; }
.about-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.about-strip__photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(91, 123, 255, 0.3);
  box-shadow: 0 0 24px rgba(91, 123, 255, 0.12);
  flex-shrink: 0;
  display: block;
  transition: box-shadow var(--duration-slow) ease,
              border-color var(--duration-slow) ease;
}
.about-strip__photo:hover {
  border-color: rgba(91, 123, 255, 0.5);
  box-shadow: 0 0 36px rgba(91, 123, 255, 0.2);
}
.about-strip__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: var(--leading-tight, 1.15);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.about-strip__text p {
  font-size: var(--size-base);
  color: var(--secondary-text-color);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 540px;
}
@media (max-width: 600px) {
  .about-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-strip__photo {
    margin: 0 auto;
    order: -1;
  }
  .about-strip__text p {
    max-width: none;
  }
}

/* ── Star ratings ─────────────────────────────────────────────────────────── */
.star-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1;
}
.star--full  { color: #f5a623; }
.star--half  { color: #f5a623; opacity: 0.65; }
.star--empty { color: var(--border-color-card, #2a2d3a); }
.star-rating__num {
  font-size: 0.72rem;
  color: var(--secondary-text-color);
  margin-left: 0.3rem;
  font-weight: 600;
}

/* ── Reader / view count badge ───────────────────────────────────────────── */
.post-view-count {
  font-size: 0.82rem;
  color: var(--secondary-text-color);
}

/* ── Image lightbox ──────────────────────────────────────────────────────── */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#lightbox-overlay.lightbox--open {
  display: flex;
}
#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: lb-in 0.3s var(--ease-out) both;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
#lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out);
  z-index: 20001;
}
#lightbox-close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.1);
}

/* ── Back to top button ──────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(91, 123, 255, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-fast) ease,
              filter var(--duration-fast) ease;
  pointer-events: none;
}
.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(91, 123, 255, 0.45);
  transform: translateY(-2px);
}

/* ========== NEWSLETTER CTA ========== */
.newsletter-cta-section {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(91, 123, 255, 0.06) 0%, rgba(74, 108, 247, 0.02) 100%);
  border-top: 1px solid var(--border-color-card);
  border-bottom: 1px solid var(--border-color-card);
  overflow: hidden;
}

.newsletter-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 123, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-cta__title {
  font-size: var(--size-3xl, 1.875rem);
  font-weight: 700;
  color: var(--primary-text-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.newsletter-cta__subtitle {
  font-size: var(--size-base, 1rem);
  color: var(--secondary-text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.newsletter-cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.newsletter-cta-form__input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-md, 8px);
  background-color: var(--background-color);
  color: var(--primary-text-color);
  font-size: var(--size-base, 1rem);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-cta-form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(74, 108, 247, 0.25));
}

.newsletter-cta-form__consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-xs, 0.75rem);
  color: var(--secondary-text-color);
  cursor: pointer;
}

.newsletter-cta-form__consent input[type="checkbox"] {
  accent-color: var(--primary-color);
}

.newsletter-cta-form__btn {
  min-width: 160px;
}

.newsletter-cta-form__msg {
  font-size: var(--size-sm, 0.875rem);
  margin-top: 0.5rem;
}

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */

/* Page fade-in removed — handled by individual section reveals instead */

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-reveal, 600ms) var(--ease-out),
              transform var(--duration-reveal, 600ms) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (card grids) — smooth cascade */
.reveal-stagger > *:nth-child(1)  { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2)  { transition-delay: 0.06s; }
.reveal-stagger > *:nth-child(3)  { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(4)  { transition-delay: 0.18s; }
.reveal-stagger > *:nth-child(5)  { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(6)  { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(7)  { transition-delay: 0.36s; }
.reveal-stagger > *:nth-child(8)  { transition-delay: 0.42s; }
.reveal-stagger > *:nth-child(9)  { transition-delay: 0.48s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.54s; }
.reveal-stagger > *:nth-child(11) { transition-delay: 0.60s; }
.reveal-stagger > *:nth-child(12) { transition-delay: 0.66s; }

/* ========== REVEAL ANIMATION VARIANTS ========== */
.reveal-fade {
  opacity: 0;
  transition: opacity var(--duration-reveal, 0.6s) ease;
}
.reveal-fade.visible {
  opacity: 1;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-reveal, 0.6s) ease, transform var(--duration-reveal, 0.6s) var(--ease-out, ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-reveal, 0.6s) ease, transform var(--duration-reveal, 0.6s) var(--ease-out, ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero entrance keyframes */
@keyframes hero-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow  { animation: hero-up 0.8s var(--ease-out) 0.1s both; }
.hero__title    { animation: hero-up 0.8s var(--ease-out) 0.2s both; }
.hero__subtitle { animation: hero-up 0.8s var(--ease-out) 0.35s both; }
.hero__bio      { animation: hero-up 0.8s var(--ease-out) 0.5s both; }
.hero__cta      { animation: hero-up 0.8s var(--ease-out) 0.65s both; }

/* Navbar scroll states */
.nav--scrolled {
  box-shadow: var(--shadow-nav, 0 1px 12px rgba(0,0,0,0.06));
}

/* Animated hamburger (3 lines → X) */
.hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}
#hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
#hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Enhanced card image zoom on hover */
.card__thumb img,
.blog-card-h__thumb img,
.video-card__thumb img,
.product-card__thumb img,
.article-card-thumb img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__thumb img,
.blog-card-h:hover .blog-card-h__thumb img,
.video-card:hover .video-card__thumb img,
.product-card:hover .product-card__thumb img,
.article-card:hover .article-card-thumb img,
.article-card-link:hover .article-card-thumb img,
.article-featured-link:hover .article-card-thumb img,
.home-blog-featured:hover .article-card-thumb img,
.home-blog-item:hover .article-card-thumb img {
  transform: scale(1.04);
}

/* Button press feedback */
.btn:active,
.cta-btn:active,
.hero__cta a:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* ===================================================================== */
/*  Cart Badge (navigation bar)                                          */
/* ===================================================================== */

.header__cart {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--size-sm);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              filter var(--duration-fast) ease;
}
.header__cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 123, 255, 0.35);
  color: #fff;
  filter: brightness(1.08);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  padding: 0 4px;
}

/* ===================================================================== */
/*  Variant Selector (product detail — Printful items)                   */
/* ===================================================================== */

.variant-form {
  margin-top: 1.5rem;
}
.variant-selector {
  margin-bottom: 1rem;
}
.variant-selector__label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--secondary-text-color);
  margin-bottom: 0.4rem;
}
.variant-qty-input {
  width: 70px;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color-card);
  background: var(--surface-color);
  color: var(--primary-text-color);
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-sm);
  font-weight: 600;
  text-align: center;
}
.variant-qty-input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.variant-price-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.75rem 0;
}

/* ===================================================================== */
/*  Cart Page                                                            */
/* ===================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* Individual cart item */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color-card);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-card);
}
.cart-item__placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-card);
}
.cart-item__name {
  font-weight: 600;
  font-size: var(--size-base);
  color: var(--primary-text-color);
  text-decoration: none;
}
.cart-item__name:hover {
  color: var(--primary-color);
}
.cart-item__variant {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  margin-top: 0.2rem;
}
.cart-item__price {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  margin-top: 0.2rem;
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-item__qty-form {
  display: inline;
}
.cart-item__remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--secondary-text-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.cart-item__remove:hover {
  color: #e05252;
  background: rgba(224, 82, 82, 0.1);
}
.cart-item__total {
  font-weight: 700;
  font-size: var(--size-base);
  color: var(--primary-text-color);
  min-width: 70px;
  text-align: right;
}

/* Cart summary sidebar */
.cart-summary {
  background: var(--surface-color);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.cart-summary__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: var(--size-sm);
}
.cart-summary__row--muted {
  color: var(--secondary-text-color);
}
.cart-summary__row--total {
  border-top: 1.5px solid var(--border-color-card);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: var(--size-base);
}
.cart-summary__checkout {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}
.cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  text-decoration: none;
}
.cart-summary__continue:hover {
  color: var(--primary-color);
}

/* ===================================================================== */
/*  Shipping Estimate (cart page)                                        */
/* ===================================================================== */

.shipping-estimate {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color-card);
  margin-top: 0.25rem;
}
.shipping-estimate__header {
  font-size: var(--size-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.shipping-estimate__select {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color-card);
  background: var(--surface-color);
  color: var(--primary-text-color);
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238e8ea0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}
.shipping-estimate__select:focus {
  outline: none;
  border-color: var(--primary-color);
}
.shipping-estimate__result {
  margin-top: 0.6rem;
}
.shipping-estimate__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: var(--size-sm);
  cursor: pointer;
}
.shipping-estimate__option input[type="radio"] {
  accent-color: var(--primary-color);
  margin: 0;
  flex-shrink: 0;
}
.shipping-estimate__option-name {
  flex: 1;
  color: var(--primary-text-color);
}
.shipping-estimate__option-price {
  font-weight: 600;
  white-space: nowrap;
}
.shipping-estimate__days {
  color: var(--secondary-text-color);
  font-size: 0.78rem;
}
.shipping-estimate__muted {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
}
.shipping-estimate__loading {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  font-style: italic;
}
.shipping-estimate__error {
  font-size: var(--size-sm);
  color: #d4381a;
}

/* ===================================================================== */
/*  Checkout Success / Order Confirmation                                */
/* ===================================================================== */

.order-confirm {
  background: var(--surface-color);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.order-confirm__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color-card);
}
.order-confirm__items {
  margin-bottom: 1rem;
}
.order-confirm__items h3 {
  font-size: var(--size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-text-color);
  margin-bottom: 0.75rem;
}
.order-confirm__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: var(--size-sm);
}
.order-confirm__item-name {
  flex: 1;
}
.order-confirm__item-qty {
  margin: 0 1rem;
  color: var(--secondary-text-color);
}
.order-confirm__item-price {
  font-weight: 600;
}
.order-confirm__total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1.5px solid var(--border-color-card);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}
.order-confirm__info {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color-card);
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  line-height: 1.6;
}

/* ===================================================================== */
/*  Order Status / Tracking page                                         */
/* ===================================================================== */

.order-lookup-form {
  margin-bottom: 2rem;
}
.order-lookup-form__row {
  display: flex;
  gap: 0.75rem;
}
.order-lookup-form__input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color-card);
  background: var(--surface-color);
  color: var(--primary-text-color);
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-base);
}
.order-lookup-form__input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.order-lookup-form__btn {
  white-space: nowrap;
}

.order-list__count {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
  margin-bottom: 1.25rem;
}

.order-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.order-card__id {
  font-weight: 700;
  margin-right: 0.75rem;
}
.order-card__date {
  font-size: var(--size-sm);
  color: var(--secondary-text-color);
}
.order-card__items {
  border-top: 1px solid var(--border-color-card);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.order-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: var(--size-sm);
}
.order-card__item-name {
  flex: 1;
}
.order-card__item-qty {
  margin: 0 1rem;
  color: var(--secondary-text-color);
}
.order-card__item-price {
  font-weight: 600;
}
.order-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color-card);
  padding-top: 0.75rem;
}
.order-card__total {
  font-weight: 700;
}

/* Order status badges (shared by customer + admin) */
.order-status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.order-status-badge--pending {
  background: rgba(245, 166, 35, 0.15);
  color: #d4930a;
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.order-status-badge--paid {
  background: rgba(91, 123, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(91, 123, 255, 0.3);
}
.order-status-badge--fulfilled,
.order-status-badge--shipped {
  background: rgba(76, 175, 80, 0.15);
  color: #3d9940;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.order-status-badge--failed,
.order-status-badge--error,
.order-status-badge--canceled {
  background: rgba(224, 82, 82, 0.15);
  color: #d4381a;
  border: 1px solid rgba(224, 82, 82, 0.3);
}

.order-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

/* Small button variant */
.btn--sm {
  padding: 0.4rem 1rem;
  font-size: var(--size-sm);
}

/* ===================================================================== */
/*  Cart & Order — Responsive                                            */
/* ===================================================================== */

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
  }
  .cart-item__image img,
  .cart-item__placeholder {
    width: 60px;
    height: 60px;
  }
  .cart-item__actions {
    grid-column: 2;
  }
  .cart-item__total {
    grid-column: 2;
    text-align: left;
  }
  .cart-summary {
    position: static;
  }
  .order-lookup-form__row {
    flex-direction: column;
  }
  .order-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .order-card__footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

/* Prefers reduced motion — disable all animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-fade,
  .reveal-left,
  .reveal-scale { opacity: 1; transform: none; }
}
/* Cookie Consent Popup Styles */

/* Base container - fixed position overlay */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 1, 26, 0.9); /* semi-transparent dark overlay */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000; /* above header which is 9999 */
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
}

/* Main banner card container */
.cookie-banner__container {
  max-width: 600px;
  background-color: var(--background-color-card, #1a1a2e);
  border: 1px solid var(--border-color-card, #333);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header with icon */
.cookie-banner__header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.cookie-banner__icon {
  color: var(--primary-color, #0000ff);
  width: 32px;
  height: 32px;
}

/* Title and description */
.cookie-banner__title {
  font-size: var(--size-xl, 1.5rem);
  font-weight: 700;
  color: var(--primary-text-color, #ffffff);
  margin: 0 0 0.75rem 0;
}

.cookie-banner__description {
  font-size: var(--size-sm, 0.875rem);
  color: var(--secondary-text-color, #b0b0b0);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.cookie-banner__link {
  color: var(--primary-color, #0000ff);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cookie-banner__link:hover {
  opacity: 0.8;
}

.cookie-banner__link:focus {
  outline: 2px solid var(--primary-color, #0000ff);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Actions/buttons grid */
.cookie-banner__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cookie-banner__btn {
  flex: 1;
  min-width: 120px;
  font-size: var(--size-sm, 0.875rem);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner__btn:focus {
  outline: 2px solid var(--primary-color, #0000ff);
  outline-offset: 2px;
}

.cookie-banner__btn--small {
  flex: 0 1 auto;
  min-width: 100px;
}

/* Customize panel (expandable section) */
.cookie-banner__customize {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color-card, #333);
}

.cookie-category {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.cookie-category__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-color, #0000ff);
  flex-shrink: 0;
  border-radius: 4px;
}

.cookie-category__checkbox:checked {
  background-color: var(--primary-color, #0000ff);
  border-color: var(--primary-color, #0000ff);
}

.cookie-category__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category__checkbox:focus {
  outline: 2px solid var(--primary-color, #0000ff);
  outline-offset: 2px;
}

.cookie-category__label {
  cursor: pointer;
  flex: 1;
  user-select: none;
}

.cookie-category__label strong {
  display: block;
  color: var(--primary-text-color, #ffffff);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-category__desc {
  display: block;
  font-size: var(--size-xs, 0.75rem);
  color: var(--secondary-text-color, #b0b0b0);
  margin-top: 0.25rem;
  font-weight: 400;
}

.cookie-banner__customize-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.cookie-banner__customize-actions .btn {
  flex: 1;
  padding: 0.6rem 1.2rem;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }

  .cookie-banner__btn:hover {
    transform: none;
  }
}

/* Mobile responsive - stack buttons vertically on small screens */
@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.5rem;
  }

  .cookie-banner__container {
    padding: 1.5rem 1rem;
  }

  .cookie-banner__title {
    font-size: var(--size-lg, 1.25rem);
  }

  .cookie-banner__description {
    font-size: var(--size-xs, 0.75rem);
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__btn {
    flex: none;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .cookie-banner__btn--small {
    width: 100%;
    flex: none;
  }

  .cookie-category {
    gap: 0.75rem;
  }

  .cookie-category__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0;
  }

  .cookie-banner__customize-actions {
    flex-direction: column;
  }

  .cookie-banner__customize-actions .btn {
    width: 100%;
  }
}

/* Tablet responsive */
@media (min-width: 481px) and (max-width: 768px) {
  .cookie-banner__container {
    max-width: 90%;
  }

  .cookie-banner__actions {
    gap: 0.75rem;
  }

  .cookie-banner__btn {
    padding: 0.6rem 1rem;
    font-size: var(--size-xs, 0.75rem);
  }
}

/* Dark mode support (respects data-theme attribute) */
[data-theme="light-mode"] .cookie-banner {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light-mode"] .cookie-banner__container {
  background-color: #ffffff;
  border-color: #e0e0e0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light-mode"] .cookie-banner__title {
  color: #000000;
}

[data-theme="light-mode"] .cookie-banner__description {
  color: #555555;
}

[data-theme="light-mode"] .cookie-banner__link {
  color: #0000ff;
}

[data-theme="light-mode"] .cookie-category__label strong {
  color: #000000;
}

[data-theme="light-mode"] .cookie-category__desc {
  color: #666666;
}

[data-theme="light-mode"] .cookie-banner__customize {
  border-top-color: #e0e0e0;
}
