/* Modern Tech Precision Theme Overrides & Art Direction */

/* Base & Scroll Polishing */
html {
  scroll-padding-top: 80px;
}

body {
  text-rendering: optimizeLegibility;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Header & Sticky Navigation Polish */
.v01b-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(10, 14, 22, 0.03);
}

html.dark .v01b-app-bar {
  background: rgba(17, 28, 26, 0.88);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.v01b-logo-cluster {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  gap: 10px;
}

.v01b-logo-cluster svg {
  filter: drop-shadow(0 2px 8px rgba(var(--color-primary-rgb), 0.4));
  transition: transform 0.3s ease;
}

.v01b-logo-cluster:hover svg {
  transform: rotate(10deg) scale(1.05);
}

.v01b-way-finder {
  gap: 6px;
  background: var(--color-bg-card);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--color-border);
}

.v01b-way-finder a {
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.v01b-way-finder a:hover {
  color: var(--color-text);
  background: rgba(var(--color-primary-rgb), 0.35);
}

html.dark .v01b-way-finder a:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.15);
}

#v01b-quick-find {
  border-radius: 20px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
}

/* Hero / Splash Section Refinement */
.v01b-splash-panel {
  position: relative;
  background: radial-gradient(1000px circle at 20% 20%, rgba(210, 249, 239, 0.18), transparent 60%),
              radial-gradient(800px circle at 85% 75%, rgba(142, 225, 204, 0.12), transparent 55%),
              #0a1311;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v01b-splash-panel::before {
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.12), transparent),
                    radial-gradient(1px 1px at 40px 70px, rgba(210, 249, 239, 0.08), transparent);
  background-size: 80px 80px;
}

.v01b-lead-frame {
  padding: 88px 24px 80px;
  max-width: 900px;
}

.v01b-lead-frame::before {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-accent));
  box-shadow: 0 0 12px rgba(77, 239, 199, 0.6);
  margin-bottom: 1.8rem;
}

.v01b-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.v01b-stamp::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  box-shadow: 0 0 8px var(--color-primary-dark);
}

.v01b-splash-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.v01b-splash-panel p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(230, 245, 240, 0.82);
  margin-bottom: 2.2rem;
  max-width: 680px;
}

.v01b-lead-action {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
  color: #061411;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 14px 34px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px rgba(77, 239, 199, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.v01b-lead-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(77, 239, 199, 0.5);
  filter: brightness(1.05);
}

/* Article Container Rhythm & Flow */
.v01b-article-stream {
  max-width: 900px;
  padding: 3rem 1.5rem 2rem;
}

/* Article Typography System */
.article-text-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}

.article-text-body p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.article-text-body strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Headings with Modern Tech Precision Accent Marks */
.article-text-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.0rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 3.2rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-text-body h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-primary-dark);
  box-shadow: 0 0 8px rgba(77, 239, 199, 0.5);
}

.article-text-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.2rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-text-body h3::before {
  content: "›";
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

/* Links Polish */
.article-text-body a {
  color: var(--color-success);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(17, 154, 100, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

html.dark .article-text-body a {
  color: var(--color-primary-dark);
  border-bottom-color: rgba(77, 239, 199, 0.4);
}

.article-text-body a:hover {
  color: var(--color-text);
  border-bottom-style: solid;
  border-bottom-color: var(--color-primary-dark);
  background: rgba(var(--color-primary-rgb), 0.15);
  border-radius: 2px;
}

/* Lists Polish */
.article-text-body ul, .article-text-body ol {
  padding-left: 0;
  margin: 1.2rem 0 1.5rem;
  list-style: none;
}

.article-text-body ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--color-text-muted);
}

.article-text-body ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  box-shadow: 0 0 6px rgba(77, 239, 199, 0.6);
}

.article-text-body ol {
  counter-reset: tech-step;
}

.article-text-body ol li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--color-text-muted);
}

.article-text-body ol li::before {
  counter-increment: tech-step;
  content: counter(tech-step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(var(--color-accent-rgb), 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Premium Blockquotes */
.article-text-body blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

.article-text-body blockquote p {
  color: var(--color-text);
  font-size: 1.02rem;
  font-style: italic;
  margin: 0;
}

/* Polished In-Article Tables */
.article-text-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--color-bg);
}

.article-text-body th {
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.article-text-body td {
  padding: 13px 18px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.article-text-body tr:last-child td {
  border-bottom: none;
}

.article-text-body tr:nth-child(even) {
  background: rgba(var(--color-primary-rgb), 0.04);
}

html.dark .article-text-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Form & Interactive Component Fine-Tuning */
#v01b-get-in-touch {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  position: relative;
}

#v01b-get-in-touch h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

#v01b-reachout-form label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

#v01b-reachout-form input, 
#v01b-reachout-form textarea {
  border-radius: var(--radius-ctl);
  background: var(--color-input-bg) !important;
  border: 1px solid var(--color-border) !important;
  font-size: 0.95rem;
}

#v01b-reachout-form input:focus, 
#v01b-reachout-form textarea:focus {
  border-color: var(--color-primary-dark) !important;
  box-shadow: 0 0 0 3px rgba(77, 239, 199, 0.2) !important;
}

#v01b-reachout-form button[type="submit"] {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%) !important;
  color: #061411 !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  box-shadow: 0 4px 14px rgba(77, 239, 199, 0.3);
}

#v01b-reachout-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 239, 199, 0.45);
  opacity: 1;
}

/* Author Section Refinement */
#v01b-editor-bio {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

#v01b-editor-bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary-dark);
}

.v01b-author-frame img {
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.v01b-author-frame h3 {
  font-family: var(--font-display);
  font-weight: 800;
}

/* Footer Section Polishing */
.v01b-end-strip {
  background: var(--footer-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
}

.v01b-end-strip h4 {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.7);
}

.v01b-end-strip a:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.v01b-close-line {
  letter-spacing: 0.04em;
}

/* Motion & Animation Set */
@media (prefers-reduced-motion: no-preference) {
  .v01b-splash-panel h1,
  .v01b-splash-panel p,
  .v01b-lead-action {
    animation: techFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .v01b-splash-panel p {
    animation-delay: 0.12s;
  }

  .v01b-lead-action {
    animation-delay: 0.24s;
  }

  @keyframes techFadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive Layout Guards & Enhancements */
@media (max-width: 768px) {
  .v01b-app-bar {
    padding: 12px 16px;
    gap: 12px;
  }

  .v01b-way-finder {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .v01b-lead-frame {
    padding: 56px 20px 48px;
  }

  .v01b-article-stream {
    padding: 1.8rem 1rem;
  }

  .article-text-body h2 {
    margin-top: 2.2rem;
  }

  #v01b-editor-bio, 
  #v01b-get-in-touch {
    padding: 20px;
    margin: 1.8rem auto;
  }
}

@media (max-width: 480px) {
  .v01b-logo-cluster {
    font-size: 0.95rem;
  }

  .v01b-lead-action {
    width: 100%;
    text-align: center;
  }
}

/* === CSS CONTENT === */

/* ==========================================================================
   UNIFIED DATA COMPONENTS STYLESHEET
   Aesthetic: Tech Precision — Crisp geometry, luminous gradients, dashboard energy
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COMPARISON TABLE SECTION (#v01b-rank-table)
   -------------------------------------------------------------------------- */
#v01b-rank-table {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  margin: 2.2rem 0 3.2rem;
}

.qx-matrix-header {
  margin-bottom: 1.25rem;
}

.qx-matrix-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Signature Technique: Gradient Text-Fill */
.qx-glow-text,
.k9x-gradient-glow {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.dark .qx-glow-text,
html.dark .k9x-gradient-glow {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qx-matrix-subtitle {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.qx-table-scroller {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: var(--color-bg);
  backdrop-filter: blur(8px);
}

.qx-data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  text-align: left;
}

.qx-data-table th {
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.qx-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.qx-data-table tr:last-child td {
  border-bottom: none;
}

/* Row Variants */
.qx-winner-row {
  background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.22) 0%, rgba(var(--color-accent-rgb), 0.08) 100%);
  position: relative;
}

html.dark .qx-winner-row {
  background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.18) 0%, rgba(var(--color-accent-rgb), 0.06) 100%);
}

.qx-norm-row {
  background: var(--color-bg);
  transition: background-color 0.2s ease;
}

.qx-norm-row:hover {
  background: rgba(var(--color-accent-rgb), 0.06);
}

/* Table Brand & Rank Components */
.qx-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qx-rank-digit {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--color-text);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qx-winner-row .qx-rank-digit {
  background: var(--color-primary-dark);
  color: #051914;
  border-color: rgba(var(--color-primary-rgb), 0.8);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.4);
}

.qx-brand-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qx-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease;
}

a.qx-brand-title:hover {
  color: var(--color-success);
}

/* Signature Technique: Glassy Translucent Chips & Stat Pills */
.qx-winner-chip,
.k9x-winner-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(var(--color-primary-rgb), 0.38);
  border: 1px solid rgba(var(--color-primary-rgb), 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #06211a;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.2);
}

html.dark .qx-winner-chip,
html.dark .k9x-winner-chip {
  color: var(--color-primary-dark);
  background: rgba(var(--color-primary-rgb), 0.2);
  border-color: rgba(var(--color-primary-rgb), 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.qx-tags-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.qx-tag-badge,
.k9x-pill {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-ctl);
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Scores & Text Details */
.qx-score-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qx-score-num,
.k9x-score-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1;
}

.qx-star-rating,
.k9x-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: -1px;
}

.qx-text-highlight {
  font-weight: 650;
  color: var(--color-text);
  display: block;
}

.qx-text-caption {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  display: block;
}

/* CTA Hierarchy Buttons */
.qx-cta-primary,
.k9x-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  background: var(--color-primary-dark);
  color: #061e17 !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  border-radius: var(--radius-btn);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(var(--color-accent-rgb), 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.qx-cta-primary:hover,
.k9x-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.55);
  opacity: 0.96;
}

.qx-cta-secondary,
.k9x-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: var(--radius-btn);
  text-decoration: none !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.qx-cta-secondary:hover,
.k9x-btn-secondary:hover {
  background: rgba(var(--color-accent-rgb), 0.25);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.qx-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  background: transparent;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  border-radius: var(--radius-btn);
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.qx-cta-ghost:hover {
  color: var(--color-text) !important;
  border-color: var(--color-text-muted);
  background: var(--color-bg-card);
}

/* --------------------------------------------------------------------------
   2. LISTING CARDS SECTION (#v01b-review-deck)
   -------------------------------------------------------------------------- */
#v01b-review-deck {
  margin: 3.5rem 0;
}

.k9x-deck-header {
  margin-bottom: 2rem;
  text-align: left;
}

.k9x-deck-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.k9x-deck-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.k9x-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Card Geometry & Surface */
.k9x-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.k9x-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--color-accent-rgb), 0.4);
}

/* Winner Card Special Treatment */
.k9x-card-winner {
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.18) 0%, var(--color-bg-card) 60%);
  border: 1px solid var(--color-primary-dark);
  box-shadow: var(--shadow-card), 0 0 24px rgba(var(--color-primary-rgb), 0.15);
}

html.dark .k9x-card-winner {
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.22) 0%, var(--color-bg-card) 55%);
  border-color: rgba(var(--color-primary-rgb), 0.65);
  box-shadow: var(--shadow-card), 0 0 28px rgba(0, 0, 0, 0.4);
}

/* Card Header Layout */
.k9x-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.k9x-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.k9x-rank-pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 4px 11px;
  border-radius: var(--radius-ctl);
  background: rgba(var(--color-accent-rgb), 0.2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.k9x-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.k9x-prod-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.k9x-prod-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.k9x-prod-title a:hover {
  color: var(--color-success);
}

.k9x-summary {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  line-height: 1.62;
  margin: 0 0 1.25rem;
}

/* Compact Pros/Cons Box */
.k9x-pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-ctl);
  padding: 1.2rem;
  margin-bottom: 1.25rem;
}

.k9x-box-header {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.k9x-box-header.pro-hdr {
  color: var(--color-success);
}

.k9x-box-header.con-hdr {
  color: var(--color-danger);
}

/* Compact List Spacing */
#v01b-review-deck ul.k9x-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#v01b-review-deck ul.k9x-list li {
  position: relative !important;
  padding-left: 1.4rem !important;
  margin-bottom: 7px !important;
  font-size: 0.91rem !important;
  line-height: 1.48 !important;
  color: var(--color-text-muted) !important;
}

#v01b-review-deck ul.k9x-list li:last-child {
  margin-bottom: 0 !important;
}

/* Card Action Footer */
.k9x-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

.k9x-badge-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE BREAKPOINTS & LAYOUT STACKING
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #v01b-rank-table {
    margin: 1.5rem 0 2.5rem;
  }

  .qx-matrix-title {
    font-size: 1.35rem;
  }

  .k9x-card {
    padding: 1.25rem;
  }

  .k9x-pro-con-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .k9x-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .k9x-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .k9x-badge-pills {
    justify-content: flex-start;
  }

  .k9x-btn-primary,
  .k9x-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .k9x-meta-left {
    gap: 6px;
  }

  .k9x-rank-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .qx-winner-chip,
  .k9x-winner-chip {
    font-size: 0.64rem;
    padding: 2px 7px;
  }
}