/* --- STYL WEBU --- */
:root {
    --primary-purple: #8A2BE2;
    --dark-bg: #0b0118;
    --text-color: #ffffff;
    --main-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --main-gradient: linear-gradient(135deg, var(--primary-purple) 0%, #4B0082 100%);
    --nav-bg: rgba(138, 43, 226, 0.15);
    --footer-bg: #05010d;
    --panel-border: rgba(138, 43, 226, 0.3);
    --card-bg: #0f0f0f;
    --agent-accent: var(--primary-purple);
    --agent-gradient: var(--main-gradient);
    --agent-cta-bg: #ffffff;
    --agent-cta-text: #000000;
    --agent-glow: rgba(138, 43, 226, 0.55);
    --agent-panel-primary: #ffffff;
    --agent-panel-secondary: #f53d3d;
    --agent-panel-gradient: linear-gradient(135deg, #ffffff 0%, #f53d3d 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #10021f;
} 

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE/old Edge */
body {
    -ms-overflow-style: none;
}

.content-area {
    flex: 1;
    padding-top: 110px;
}

/* --- PRODUCT CARDS SECTION --- */
.products-container{
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.products-container-favorite{
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 20px;
}

.products-container-favorite-grid {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 20px;
  margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(180deg, rgba(25,10,40,0.95), rgba(20,6,30,0.98));
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s transform ease, 0.3s border-color ease;
    display: flex;
    flex-direction: column;
    margin-top: -20px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.28), transparent 34%),
    linear-gradient(180deg, rgba(28, 9, 47, 0.96), rgba(12, 4, 22, 0.98));
    backdrop-filter: blur(10px);
    
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding-top: 34px;
    padding-bottom: 18px;
    padding-right: 35px;
    padding-left: 35px;
    padding: 10px;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    color: rgba(255,255,255,0.92);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.product-rating-star {
    color: #ffd000;
    font-size: 0.95rem;
    line-height: 1;
}

.product-rating-count {
    color: rgba(255,255,255,0.48);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-info {
    position: relative;
    padding: 22px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    background: rgba(255, 255, 255, 0.035);
   
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      inset 0 -1px 0 rgba(255,255,255,0.025);
}

.product-info::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
      135deg,
      rgba(255,255,255,0.075),
      rgba(255,255,255,0.015) 45%,
      rgba(138,43,226,0.035)
    );

    opacity: 0.75;
}

.product-info > * {
    position: relative;
    z-index: 1;
}

.product-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
}

.meta-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(83, 82, 82, 0.15); 
    border-radius: 9px; 
    transition: 0.3s ease;
    white-space: nowrap;
}

.meta-tag.type {
    color: rgba(255, 255, 255, 0.6);
}

.meta-tag.brand {
    color: rgba(255, 255, 255, 0.6);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    height: 2.5em; 
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -16px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #00ff26;
    margin-top: 0;
}

.btn-view-full {
    display: block;
    width: 100%;
    background: var(--main-gradient);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-view-full:hover {
    transform: translateY(-2px);
}

:root {
  --site-width: 1480px;
  --site-side-gap: 40px;
}

.vault-hero,
.products-container {
  width: min(var(--site-width), calc(100% - var(--site-side-gap)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.products-container {
  padding: 40px 0;
}

/* --- NAVBAR --- */
.nav-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1480px; 
    height: 70px;

    background:
      linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
      radial-gradient(circle at 82% 18%, rgba(138,43,226,0.24), transparent 34%),
      linear-gradient(180deg, rgba(28, 9, 47, 0.88), rgba(12, 4, 22, 0.92));

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 0 40px; 
    z-index: 1000;
    margin-top: 20px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: visible;
    isolation: isolate;
}

.nav-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;

    background:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);

    background-size: 42px 42px;
    opacity: 0.25;
}

.nav-logo { 
    flex: 1; 
    display: flex; 
    align-items: center; 
}

.logo-text {
    font-weight: 900;
    font-size: 1.8rem; 
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    white-space: nowrap;
}
.logo-text span { 
  color: var(--primary-purple); 
}

.nav-menu { 
    flex: 2;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px;
    margin-left: 90px;
}

.nav-link { 
    color: rgba(255, 255, 255, 0.7); 
    font-weight: 600;
    font-size: 0.95rem; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none; 
    padding: 10px 18px; 
    border-radius: 12px; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    white-space: nowrap;
}

.nav-link:hover { 
    color: rgb(255, 255, 255); 
    background: rgba(138, 43, 226, 0.2);
}

.nav-link.active { 
    background: var(--main-gradient);
    color: white; 
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.nav-actions{
    flex: 1;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap: 1px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
}

.mobile-menu-btn span { 
    width: 25px; 
    height: 3px; 
    background: white; 
    border-radius: 3px; 
}

/* --- NAVBAR RESPONZIVITA --- */
@media (max-width: 992px) {
    .nav-container { padding: 0 25px; }
    .mobile-menu-btn { display: flex; order: 3; }
    .nav-menu {
        position: absolute; 
        top: 80px; 
        right: 20px;
        width: 250px; 
        background: rgba(11, 1, 24, 0.98);
        flex-direction: column; 
        padding: 30px; 
        border-radius: 20px;
        transform: translateX(150%); 
        transition: 0.4s;
        border: 1px solid var(--panel-border);
    }
    .nav-menu.open { transform: translateX(0); }
}

/* FOOTER */
.footer-main {
    padding: 40px 20px 40px 20px;
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-main-favorite {
    padding: 40px 20px 60px px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-wrapper {
    max-width: 1480px;
    margin: 0 auto;
}

.footer-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 40px 0 0 0;
    box-shadow: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-text {
    font-size: 1.8rem; 
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -1.5px;
}
.footer-logo-text span { color: var(--primary-purple); }

.footer-description { 
    color: #ffffff; 
    font-size: 0.85rem; 
    line-height: 1.8; 
    margin-bottom: 30px; 
    max-width: 400px; 
}

.footer-cta { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
}

.btn-kakobuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    padding: 12px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
}

.btn-discord:hover {
    box-shadow: 0 0 20px 5px #5865F2;
  transform: translateY(-3px);
}

.btn-kakobuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.footer-label {
    background: var(--main-gradient);
    color: #ffffff;
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer-links { list-style: none; padding: 0; }
.link-item { 
    color: #ffffff; 
    text-decoration: none; 
    font-size: 0.85rem; 
    line-height: 2.5; 
    transition: 0.2s; 
}
.link-item:hover { color: var(--primary-purple); transform: translateX(5px); }

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
}

.legal-copyright { 
    color: #ffffff; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.legal-links { 
    display: flex; 
    gap: 40px; 
}

.legal-item { 
    color: var(--primary-purple);
    font-size: 0.7rem; 
    font-weight: 700; 
    text-decoration: none; 
    text-transform: uppercase;
    transition: 0.2s; 
    display: inline-block; 
}

.legal-item:hover { 
    color: var(--primary-purple); 
    transform: translateX(5px); 
}

/* --- SETTINGS DROPDOWN --- */

.settings-header {
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #eee;
}

.settings-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 8px 0;
}

.item-icon-box, .option-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 30px;
}

.close-modal { 
  position: fixed;
  top: 25px;
  right: 70px; 
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  transition: .24s ease;
  display: flex;
align-items: center;
justify-content: center;
}

.close-modal:hover {
  transform: translateY(-2px);
  background: rgba(138,43,226,0.18);
  color: #fff;
  box-shadow: 0 0 20px rgba(138,43,226,0.22);
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Změna modalu na Fullscreen */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0; 
    top: 0;
    width: 100%; height: 100%;
    overflow-y: auto;
}

.modal-content-full{
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* 🔥 víc místa nahoře kvůli navbaru */
  padding: 200px 40px 60px;
}

.modal-container {
    margin: 0 auto;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
}

.modal-image-wrapper {
    background: #050505;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.modal-image-wrapper img {
    max-width: 100%;
    height: auto;
}

/* SPLIT BUTTON & DROPDOWN DOLŮ */

.btn-order-main {
    gap: 5px;
    flex: 1;
    background: white;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 12px 0 0 12px;
    font-size: 1.1rem;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* PRAVÁ STRANA INFO */
.modal-price-large {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00ff26;
    padding-top: 10px;
}

#modal-title {
    font-size: 3.2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.spec-label { 
  color: #888;
  font-size: 0.75rem; 
  text-transform: uppercase; 
}

.spec-value { 
  font-weight: 700; 
  margin-top: 5px; 
}

/* MOBILNÍ VERZE */
@media (max-width: 768px) {
    .modal-container { grid-template-columns: 1fr; gap: 22px; }
    .modal-content-full { padding: 86px 14px 28px; }

    .spec-info::after {
      max-width: min(220px, 72vw);
    }

    .spec-popover {
      width: min(258px, 78vw);
      right: 8px;
    }
}

.settings-label {
    padding: 10px 10px 5px 10px;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 800;
}

/* Boxy pro aktuální výběr */
.selection-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    margin: 5px 10px;
    height: 45px; /* Sjednocená výška */
}

.selection-box:hover {
    background: rgba(188, 188, 188, 0.1);
}

.selection-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Skrytý seznam, který se ukáže po kliku */
.collapsible-list {
    font-weight: 400;
    display: none; /* Skryté v základu */
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
    padding: 0 5px;
}

.collapsible-list.active {
    display: flex;
}

.arrow-icon {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    transition: transform 0.1s;
}

.selection-box.open .arrow-icon {
    transform: rotate(90deg);
}

.agent-icon-small, .option-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.05);
    margin: 0;
}

/* Aby měny v seznamu vypadaly dobře */
.currency-option-item {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
    font-size: 15px;
}

.currency-option-item:hover {
    background: rgba(188, 188, 188, 0.1);
    color: rgb(255, 255, 255);
    transform: translate(-5px);
}

.option-icon {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1;
    text-align: center;
}

.agent-icon-small {
    padding: 6px;
}

.selected-preference {
    font-size: 15px;
    font-weight: 500;
}

.list-symbol {
    font-size: 1.3rem !important;   
    font-weight: 800 !important;     
    color: #ffffff !important;        
    min-width: 25px; 
    display: inline-block;
    text-align: center;
    margin-right: 10px;
    background: rgba(188, 188, 188, 0.1);
    border-radius: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 8px;
    padding-right: 8px;
}

.list-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 400; 
}

.selected-preference-currency {
    font-size: 15px;
    font-weight: 500;
    margin-left: -10px;
}

/* === AGENT BUTTON COLORS === */

.btn-order-main.agent-kakobuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-kakobuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-litbuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-litbuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-oopbuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-oopbuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-mulebuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-mulebuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-acbuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-acbuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
    transform: translateY(-3px);
}

.btn-order-main.agent-joyagoo {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-joyagoo:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-loongbuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-loongbuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-superbuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-superbuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-allchinabuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-allchinabuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-itaobuy {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-itaobuy:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-usfans {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-usfans:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main.agent-sugargoo {
    background: var(--agent-cta-bg);
    color: var(--agent-cta-text);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-order-main.agent-sugargoo:hover {
    box-shadow: 0 0 20px 5px var(--agent-glow);
  transform: translateY(-3px);
}

.btn-order-main {
    width: 100%;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 18px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-btn-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-agent-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 6px;
}

.order-btn-text {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    min-width: 0;
}

/* === MODAL BUTTONS UPDATE === */
.order-buttons-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

/* Hlavní tlačítko agenta */
#modal-order-btn {
    flex: 1;
    height: 64px;
    padding: 0 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
}

/* Tlačítko s ikonou (původní Open Link) */


/* Styl ikony uvnitř tlačítka */
.direct-link-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.product-actions {
    width: 100%;
    position: relative;
    padding-top: 14px;
}

/* jemný rozdělovák */
.product-actions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.modal-meta{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* použijeme stejný meta-tag styl jako na kartách */
.modal-meta .meta-tag{
    font-size: 1rem;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
}

.modal-options{
  margin-top: 18px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(138,43,226,0.24);
}

.modal-option-group + .modal-option-group{
  margin-top: 16px;
}

.modal-option-group.is-collapsible{
  position: relative;
}

.modal-option-title{
  margin-bottom: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-option-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-option-list.is-collapsed{
  overflow: hidden;
  max-height: var(--collapsed-option-height, 40px);
}

.modal-option-toggle{
  margin-top: 10px;
  border: 1px solid rgba(138,43,226,0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(138,43,226,0.16), rgba(75,0,130,0.12)),
    rgba(18, 3, 33, 0.94);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 9px 12px;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.modal-option-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(180,110,255,0.72);
  background:
    linear-gradient(180deg, rgba(138,43,226,0.28), rgba(75,0,130,0.18)),
    rgba(22, 4, 40, 0.98);
}

.modal-option-pill{
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(138,43,226,0.42);
  background:
    linear-gradient(180deg, rgba(138,43,226,0.18), rgba(75,0,130,0.14)),
    rgba(18, 3, 33, 0.92);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 18px rgba(0,0,0,0.18),
    0 0 18px rgba(138,43,226,0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.modal-option-pill:focus-visible{
  outline: 2px solid rgba(138,43,226,0.72);
  outline-offset: 2px;
}

.modal-color-pill.has-image{
  cursor: zoom-in;
}

.modal-color-pill.has-image:hover{
  transform: translateY(-1px);
  border-color: rgba(180,110,255,0.72);
  background:
    linear-gradient(180deg, rgba(138,43,226,0.30), rgba(75,0,130,0.22)),
    rgba(22, 4, 40, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 22px rgba(0,0,0,0.22),
    0 0 22px rgba(138,43,226,0.18);
}

.modal-color-swatch{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.58);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.variant-lightbox-inner{
  flex-direction: column;
  gap: 14px;
  padding: 54px 18px 18px;
}

.variant-lightbox-title{
  max-width: min(760px, 82vw);
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}

/* === QC PHOTOS (modal) === */
.qc-section{
  margin-top: 12px;
}

.qc-header{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  margin-bottom: 12px;
  gap: 5px;
}

.qc-title{
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.9;
}

.qc-count{
  font-size: 0.85rem;
  opacity: 0.55;
  font-weight: 700;
}

.qc-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 76px;
}

.qc-thumb{
  width: 75px;
  height: 75px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.qc-thumb:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
}

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

/* === QC LIGHTBOX === */
.qc-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 200000000000000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 30px;
}

.qc-lightbox-inner{
  width: min(1092px, 95vw);
  height: min(800vh, 820px);
  background: rgba(15,15,15,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.qc-lightbox-inner img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qc-close{
  position:absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgb(31, 31, 31);
  color: white;
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 900;
  transition: 0.3s;
}
.qc-close:hover{ transform: translateY(-5px); }

#modal-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    white-space: nowrap;
    line-height: 1;
    color: rgba(255,255,255,0.92);
    margin-top: 7px;
    font-size: 1.18rem;
    font-weight: 950;
}

#modal-rating .product-rating-star {
    color: #ffd000;
    font-size: 1.22rem;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 208, 0, 0.28);
}

#modal-rating .product-rating-value {
    color: rgba(255,255,255,0.94);
    font-size: 1.18rem;
    font-weight: 950;
}

#modal-rating .product-rating-count {
    color: rgba(255,255,255,0.48);
    font-size: 0.92rem;
    font-weight: 850;
}

.qc-thumb-more {
  position: relative;
}

.qc-more-overlay{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

/* QC LIGHTBOX ARROWS */
.qc-nav{
  position: absolute;
  top: 50%;
  padding-bottom: 8px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgb(31, 31, 31);
  color: white;
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
  transition: 0.3s;
}

.qc-nav:hover{
  transform: translateY(-5px);
}

.qc-prev { 
  left: 14px; 
}
.qc-next { 
  right: 14px; 
}

.nav-search{
    position: relative;
    width: 360px;
    max-width: 38vw;
    height: 42px;
    display:flex;
    align-items:center;
    border-radius: 14px;
    background: #200f2e;
    border: 1px solid rgba(255,255,255,0.10);
    overflow: visible;
}

#nav-search-input{
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(255,255,255,0.92);
    font-weight: 650;
    font-size: 0.9rem;
    padding-right: 44px;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   margin-left: 30px;
}

#nav-search-input::placeholder{
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.nav-search-clear{
    position:absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 12px;
    cursor:pointer;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    display:none;
}

.nav-search-clear:hover{
    background: rgba(255,255,255,0.14);
}

/* Mobile: search schovej (nebo zmenši) */
@media (max-width: 992px){
    .nav-search{
        width: 220px;
        max-width: 52vw;
    }
}
@media (max-width: 620px){
    .nav-search{
        display:none;
    }
}

.nav-suggest{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(13,13,13,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
  z-index: 20000;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  max-height: 360px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.nav-suggest-item{
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  align-items: center;
  transition: 0.15s;
}

.nav-suggest-item:hover,
.nav-suggest-item.active{
  background: rgba(255,255,255,0.08);
}

.nav-suggest-thumb{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  flex: 0 0 auto;
}

.nav-suggest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

.nav-suggest-main{
  flex: 1;
  min-width: 0;
}

.nav-suggest-title{
  font-weight: 800;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-suggest-sub{
  margin-top: 2px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-suggest-price{
  font-weight: 900;
  color: #00ff26;
  flex: 0 0 auto;
}


.nav-suggest-empty{
  padding: 50px 20px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

.nav-suggest-empty-icon{
  font-size: 32px;
  opacity: 0.5;
  margin-bottom: 14px;
}

.nav-suggest-empty-title{
  font-weight: 800;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

.nav-suggest-empty-sub{
  font-size: 0.8rem;
  margin-top: 6px;
  opacity: 0.6;
}

body.qc-open .header-main{
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ===== MODAL OPEN ANIMATION ===== */
.modal.show .modal-container{
  animation: modalIn 0s ease both;
}

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

/* ===== LOADER OVERLAY INSIDE MODAL ===== */
.modal-loader{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #14041e;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10002; /* nad obsahem modalu */
}

.modal-loader-inner{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 14px;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1a1a1a;
}

.modal-spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: rgba(138,43,226,0.95);
  animation: spin 0.85s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.modal-loader-text{
  color: rgba(255,255,255,0.80);
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-kakobuy img,
.btn-discord img{
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* === FINDS HERO (header jako na screenu) === */
.finds-hero{
  padding: 40px 20px 10px;
}

.finds-favorite-subtitle {
  margin-top: -3px;
  margin-left: -967px;
  margin-bottom: 4px;
  max-width: 1200px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

/* search bar */
.finds-search{
  margin-top: 28px;
  position: relative;
  height: 56px;
  border-radius: 18px;
  background: #200f2e;
  border: 1px solid rgba(138, 43, 226, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.finds-search input{
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  padding: 0 56px 0 18px;
}

.finds-search input::placeholder{
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

@media (max-width: 700px){
  .finds-hero{
    padding: 30px 16px 0;
  }
  .finds-search{
    height: 52px;
    border-radius: 16px;
  }
}

/* === FILTER BUTTON === */
.filters-btn{
    margin-top: 28px;
    height: 42px;
    padding: 0 18px;
   
    border-radius: 14px;
    background: #200f2e;
    border: 1px solid rgba(138, 43, 226, 0.28);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.8);
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-weight:600;
    transition:0.25s ease;
}

/* === FILTER PANEL === */
.filters-panel{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  z-index: 2147483647;
  isolation: isolate;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0px);
  transition: 
    opacity 0.2s ease,
    backdrop-filter 0.25s ease;
}

.filters-panel.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.filters-panel.active .filters-shell{
  transform: translateX(0);
  opacity: 1;
}


.filters-icon-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
   filter: invert(1);
}

.filters-close{
    background: rgba(255,255,255,0.05);
    border:none;
    color:white;
    font-size:20px;
    padding:8px 12px;
    border-radius:12px;
    cursor:pointer;
}

/* HERO SEARCH ROW (search + filters vedle sebe) */
.finds-search-row{
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

/* aby search zabral většinu místa a tlačítko bylo vedle */
.finds-search-row .finds-search{
  flex: 1;
  min-width: 0;
}

/* verze tlačítka pro hero (můžeš doladit) */
.filters-btn.filters-btn-hero{
  height: 56px;           /* uprav podle výšky tvýho hero search */
  padding: 0 20px;
  border-radius: 16px;
  white-space: nowrap;
}

/* mobile: ať se to hezky skládá pod sebe */
@media (max-width: 700px){
  .finds-search-row{
    flex-direction: row;
    align-items: center;
  }

  .filters-btn.filters-btn-hero{
    width: auto;
  }
}

/* ===== FILTERS MODAL (screenshot-style) ===== */

.filters-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.45);
}

.filters-shell{
  position: relative;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-right: none;
  background: rgb(10, 3, 17);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  transition: 
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
  z-index: 1;
}

.filters-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgb(10, 3, 17);
  position: relative;
  z-index: 2;
}

.filters-title{
  display:flex;
  align-items:center;
  gap: 12px;
}

.filters-badge img {
    width: 28px;      /* uprav podle potřeby */
    height: 28px;
    object-fit: contain;
    filter: invert(1);
}

.filters-badge{
  width: 40px; height: 40px;
  display:flex; align-items:center; justify-content:center;
}
.filters-h1{ font-weight: 900; font-size: 1.15rem; }
.filters-sub{ opacity: 0.6; font-weight: 600; font-size: 0.8rem; margin-top: 2px; }

.filters-x{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: white;
  cursor:pointer;
  transition: 0.2s;
}
.filters-x:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.10); }

.filters-grid{
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.filters-col{
  display:flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.filters-card-price{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
  padding-bottom: 12px;
}

.filters-card{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
}

.filters-card-head{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.filters-card-title{
  font-weight: 900;
  letter-spacing: 0.2px;
  opacity: 0.9;
  
  display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(99, 47, 139, 0.15); 
    border-radius: 9px; 
    transition: 0.3s ease;
    white-space: nowrap;
}

.filters-categories{
  display:flex;
  flex-direction: column;
  overflow: hidden;
}
.filters-cat-list{
  padding: 12px;
  overflow: auto;
  height: 100%;
}
.filters-cat-item{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
  color: white;
  cursor: pointer;
  margin-bottom: 8px;
}
.filters-cat-item:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.filters-cat-left{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
}
.filters-cat-count{
  min-width: 40px;
  text-align: right;
  opacity: 0.65;
  font-weight: 900;
  font-size: 0.85rem;
}

.filters-price{
  padding: 16px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items:center;
}

.filters-to{ opacity: 0.6; font-weight: 900; }

.filters-gender{
  padding: 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.filters-pillbtn{
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color:white;
  cursor:pointer;
  font-weight: 800;
}
.filters-pillbtn:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.06); }

.filters-sort{
  padding: 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.filters-sortopt{
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  color:white;
  cursor:pointer;
  font-weight: 800;
  text-align:left;
  padding: 0 12px;
}
.filters-sortopt:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.06); }

.filters-quality-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.filters-qbadge{
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, rgb(138, 43, 226) 0%, rgb(75, 0, 130) 100%);
}
.filters-quality{ 
  padding: 14px 12px 12px;
}

.filters-rating-options{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.filters-rating-btn{
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.filters-rating-btn:hover{
  background: rgba(255,255,255,0.055);
}

.filters-rating-btn.active{
  background: rgba(138,43,226,0.22);
  border-color: rgba(138,43,226,0.52);
}

.filters-quality-labels{
  margin-top: 10px;
  display:flex;
  justify-content: space-between;
  opacity: 0.6;
  font-weight: 800;
  font-size: 0.8rem;
}

.filters-bottom{
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.filters-btn-ghost{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 900;
  cursor:pointer;
  transition: 0.18s;
}
.filters-btn-ghost:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.10); }

.filters-btn-primary{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(138, 43, 226) 0%, rgb(75, 0, 130) 100%);
  color: white;
  font-weight: 900;
  cursor:pointer;
  transition: 0.18s;
}
.filters-btn-primary:hover{ transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 980px){
  .filters-shell{ height: 100dvh; }
  .filters-grid{ grid-template-columns: 1fr; overflow:auto; }
  .filters-col{ overflow: visible; }
}

.filters-brand-list{
  padding: 12px;
  overflow: auto;
  max-height: 260px; /* ať to není nekonečný */
}

.filters-brand-item{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
  color: white;
  cursor: pointer;
  margin-bottom: 8px;
}

.filters-brand-item:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
}

.filters-brand-count{
  min-width: 40px;
  text-align: right;
  opacity: 0.65;
  font-weight: 900;
  font-size: 0.85rem;
}

.filters-leftcol{
  display:flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.filters-cat-item.active,
.filters-brand-item.active,
.filters-pillbtn.active,
.filters-sortopt.active{
  background: linear-gradient(135deg, #8A2BE2 0%, #4B0082 100%);
  border: none;
}

.filters-cat-item,
.filters-brand-item,
.filters-pillbtn,
.filters-sortopt{
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

/* === PRICE DOUBLE SLIDER (clean) === */
.filters-price-slider .slider-values{
  display:flex;
  justify-content:space-between;
  font-weight:800;
  letter-spacing: .2px;
  opacity:.95;
  margin-top: 10px;
  padding: 0 var(--price-slider-pad);
}

:root{
  --price-slider-pad: 14px;
  --thumb-size: 18px;
  --thumb-edge: calc(var(--thumb-size) / 2);
}

.slider-wrap{
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 var(--price-slider-pad);
  box-sizing: border-box;
}

.slider-track{
  position: absolute;
  left: var(--price-slider-pad);
  right: var(--price-slider-pad);
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;

  /* TADY je ten point: usekni track o půlku thumbu z obou stran */
  clip-path: inset(0 var(--thumb-edge) 0 var(--thumb-edge) round 999px);
}

.slider-track::before{
  content:"";
  position:absolute;
  left: var(--l, 0%);
  right: calc(100% - var(--r, 100%));
  height:100%;
  border-radius:999px;
  background: var(--primary-purple);
  box-shadow: 0 0 14px rgba(138,43,226,.55);
}

/* range inputy jen uvnitř paddingu */
.slider-wrap input[type="range"]{
  position:absolute;
  left: var(--price-slider-pad);
  right: var(--price-slider-pad);
  width: auto;
  height: 34px;
  margin-top: -12px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.slider-wrap input[type="range"]::-webkit-slider-runnable-track{
  height: 6px;
  background: transparent;
}

.slider-wrap input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  pointer-events:auto;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius:50%;
  background: var(--primary-purple);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 18px rgba(138,43,226,.65);
  cursor:pointer;
}

/* Firefox */
.slider-wrap input[type="range"]::-moz-range-track{ height:6px; background: transparent; }
.slider-wrap input[type="range"]::-moz-range-thumb{
  pointer-events:auto;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius:50%;
  background: var(--primary-purple);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 18px rgba(138,43,226,.65);
  cursor:pointer;
}

/* =========================================================
   FIX: HERO SEARCH + FILTERS ALIGNMENT (matches product grid)
   - Keeps the Filters button ending on the same right edge
     as the last product card (products-container).
   ========================================================= */

.finds-hero-inner{
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px; 
}

.finds-search-row{
  display: flex;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  justify-content: unset;
  width: 100%;
  margin: 28px 0 0 0; /* spacing handled here */
}

/* remove left offsets that break container alignment */
.finds-search{ margin-left: 0 !important; margin-top: 0 !important; }
.filters-btn.filters-btn-hero{ margin-left: 0 !important; margin-top: 0 !important; }

/* mobile stacking */
/* mobile: search + filters vedle sebe */
@media (max-width: 700px){
  .finds-search-row{
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .finds-search{
    min-width: 0;
  }

  .filters-btn.filters-btn-hero{
    width: 56px;
    min-width: 56px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
  }
}

#filters-apply {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#filters-apply:focus,
#filters-apply:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Brands card = stejnej layout jako Categories */
.filters-brands{
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scroll přímo na listu */
.filters-brand-list{
  padding: 12px;
  overflow: auto;
  height: 100%;
}

.filters-cat-list::-webkit-scrollbar,
.filters-brand-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.filters-cat-list::-webkit-scrollbar-button,
.filters-brand-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.filters-cat-list::-webkit-scrollbar-track,
.filters-brand-list::-webkit-scrollbar-track {
  background: transparent;
}

.filters-cat-list::-webkit-scrollbar-thumb,
.filters-brand-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(138,43,226,.65), rgba(75,0,130,.9));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(138,43,226,.4);
}

.filters-cat-list,
.filters-brand-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(138,43,226,.7) transparent;
}

.filters-grid,
.filters-shell{
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters-grid::-webkit-scrollbar,
.filters-shell::-webkit-scrollbar{
  display: none;
  width: 0;
  height: 0;
}

/* === RATING SLIDER – stejný styl jako price === */

.filters-quality input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  accent-color: var(--primary-purple);
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #8A2BE2 0%, #8A2BE2 var(--val, 0%), #2a2a2a var(--val, 0%), #2a2a2a 100%);
  outline: none;
  transition: background 0.2s ease;
}

.filters-quality input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-purple);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 18px rgba(138,43,226,.65);
}

.filters-quality input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-purple);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 18px rgba(138,43,226,.65);
}

/* === FORCE FONT FOR FILTERS === */
.filters-panel,
.filters-panel * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* === UNIFY FILTER TYPOGRAPHY === */
.filters-panel .filters-h1,
.filters-panel .filters-sub,
.filters-panel .filters-cat-left,
.filters-panel .filters-cat-count,
.filters-panel .filters-brand-item,
.filters-panel .filters-brand-count,
.filters-panel .filters-pillbtn,
.filters-panel .filters-sortopt,
.filters-panel .filters-qbadge,
.filters-panel .filters-quality-labels,
.filters-panel .filters-price-slider .slider-values,
.filters-panel .filters-btn-ghost,
.filters-panel .filters-btn-primary{
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* === PRODUCT BADGE: NEWLY ADDED === */
.product-badge {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 4px 9px 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(232, 191, 255, 0.46);

  font-weight: 900;
  font-size: 0.63rem;
  font-family: var(--main-font);
  line-height: 1;
  letter-spacing: 0.55px;
  text-transform: uppercase;

  color: #fff;
  background:
    linear-gradient(110deg, rgba(181, 73, 245, 0.96), rgba(104, 38, 163, 0.94) 54%, rgba(55, 22, 88, 0.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(34, 8, 52, 0.25),
    0 7px 16px rgba(43, 7, 68, 0.34),
    0 0 16px rgba(184, 76, 245, 0.2);

  user-select: none;
  pointer-events: none;
}

.product-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 1px;
  background: #f1c5ff;
  box-shadow: 0 0 8px rgba(239, 187, 255, 0.95);
  transform: rotate(45deg);
}

/* === FOOTER CTA: vždy vedle sebe === */
.footer-cta{
  display: flex;
  flex-wrap: nowrap;     /* ❗nespadne pod sebe */
  gap: 15px;
}

.footer-cta .btn-kakobuy,
.footer-cta .btn-discord{
  flex: 1;               /* rozdělí si šířku */
  min-width: 0;          /* umožní zkracování */
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finds-favorite-title {
  margin-left: -49px;
  margin-bottom: 15px;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  font-size: clamp(3rem, 4vw, 4.6rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.agent-warning{
  position: relative;
  z-index: 10;
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 18px 20px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(181,108,255,0.2);
  background:
    radial-gradient(circle at 5% 0%, rgba(138,43,226,0.2), transparent 38%),
    rgba(17,7,28,0.94);
  box-shadow: 0 16px 45px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.agent-warning::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #d69aff, #8a2be2);
}

.agent-warning-left{
  display:flex;
  align-items:center;
  gap:16px;
  min-width: 0;
  flex: 1 1 auto;
}

#agent-warning-icon{
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  object-fit: contain;
  padding: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(138,43,226,0.2);
}

.agent-warning-text{
  min-width: 0;
}

.agent-warning-heading{
  display: flex;
  align-items: baseline;
  gap: 11px;
  flex-wrap: wrap;
}

.agent-warning-eyebrow{
  color: #c47cff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.agent-warning-title{
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.agent-warning-benefits{
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 7px;
  color: rgba(255,255,255,0.58);
  font-size: 0.76rem;
}

.agent-warning-benefits span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-warning-benefits span::before{
  content: "✓";
  color: #56f39a;
  font-weight: 900;
}

.agent-warning-actions{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.agent-warning-btn{
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  font-weight: 900;
  background: var(--main-gradient);
  color: #fff;
  cursor: pointer;
}

.agent-warning-btn span{
  margin-left: 9px;
}

.agent-warning-keep{
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: rgba(255,255,255,0.55);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.agent-warning-keep:hover{
  color: #fff;
}

.agent-warning-close{
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 900px){
  .agent-warning{
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .agent-warning-actions{
    width: 100%;
  }

  .agent-warning-btn{
    flex: 1;
  }

  .agent-warning-close{
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 600px){
  .agent-warning{
    width: calc(100% - 24px);
    padding: 16px;
  }

  .agent-warning-left{
    align-items: flex-start;
    padding-right: 38px;
  }

  #agent-warning-icon{
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .agent-warning-benefits{
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .agent-warning-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .agent-warning-keep{
    order: 2;
  }
}

/* === SIMILAR ITEMS (modal) === */
.similar-section{
  margin-top: 26px;
}

.similar-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.similar-title{
  margin-left: 60px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 2rem;
  opacity: 0.92;
}

.similar-more{
  margin-right: 60px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.80);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  display:flex;
  align-items:center;
  gap: 8px;
}

.similar-more:hover{
  transform: translateY(-2px);
  background: rgba(138,43,226,0.18);
  color: #fff;
}

.similar-strip{
  display:flex;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.similar-strip::-webkit-scrollbar{ height: 8px; }
.similar-strip::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
}
.similar-strip::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
}

.similar-card{
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 350px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1a1a1a;
  transition: 0.3s transform ease, 0.3s border-color ease;
  cursor: pointer;
  position: relative;
}

.similar-card:hover{
  transform: translateY(-5px);
}

.similar-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgb(7, 3, 13);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
}

.similar-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.similar-bottom{
  background: rgb(16, 10, 25);
  padding: 12px 12px 14px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.similar-name{
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
  height: 2.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255,255,255,0.92);
}

.similar-price{
  font-weight: 900;
  color: #00ff26;
  font-size: 1rem;
}

.similar-badge{
  position:absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(138,43,226,0.22);
  border: 1px solid rgba(138,43,226,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================
   SIMILAR CAROUSEL (4 items)
   ========================= */

.similar-carousel{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: -50px;
}

.similar-viewport{
  overflow: hidden;
  width: 100%;
  padding-top: 8px;
  margin-top: -8px;
}

.similar-track{
  display: flex;
  gap: 14px;
  transition: transform 0.28s ease;
  will-change: transform;
}

/* 4 karty přesně v viewportu (desktop) */
.similar-track .similar-card{
  flex: 0 0 calc((100% - 14px * 3) / 4);
  width: auto !important;        /* přepíše tvůj width: 350px */
}

/* šipky */
.similar-navbtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: 0.2s ease;
}

.similar-navbtn:hover{
  background: rgba(138,43,226,0.16);
  border-color: rgba(138,43,226,0.30);
}

.similar-navbtn:disabled{
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* responsive: 2 items */
@media (max-width: 980px){
  .similar-carousel{ grid-template-columns: 44px 1fr 44px; }
  .similar-track .similar-card{
    flex: 0 0 calc((100% - 14px) / 2);
  }
}

/* mobile: 1 item */
@media (max-width: 520px){
  .similar-carousel{ grid-template-columns: 40px 1fr 40px; }
  .similar-navbtn{ width: 40px; height: 40px; border-radius: 12px; }
  .similar-track .similar-card{
    flex: 0 0 100%;
  }
}

/* =========================================
   HARD ALIGN: Similar section == Footer width
   ========================================= */

:root{
  --site-max: 1625px;
  --site-pad: 20px;
}

/* celá sekce (ne jen vnitřek) */
#modal-similar{
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  margin-bottom: 100px;
  box-sizing: border-box;
}

/* uvnitř už žádný extra padding/margins */
#modal-similar .similar-header,
#modal-similar .similar-strip,
#modal-similar .similar-carousel,
#modal-similar .similar-viewport{
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

#modal-recent{
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  margin-bottom: 100px;
  box-sizing: border-box;
}

#modal-recent .similar-header,
#modal-recent .similar-strip,
#modal-recent .similar-carousel,
#modal-recent .similar-viewport{
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Modal overlay přes celou obrazovku */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* Zamknutí scrollu stránky */
html.modal-lock,
body.modal-lock{
  overflow: hidden !important;
  height: 100%;
}

/* Modal content může scrollovat normálně… */
.modal-content-full{
  height: 100vh;
  overflow: auto;
}

/* …ALE během loaderu ne */
.modal.is-loading .modal-content-full{
  overflow: hidden !important;
}

/* Loader jako overlay co chytá interakce */
#modal-loader{
  position: absolute;
  inset: 0;
  z-index: 99999;
  pointer-events: auto;
}

.modal.is-loading #modal-similar,
.modal.is-loading #modal-recent,
.modal.is-loading .footer-main{
  display: none !important;
}

/* Kontejner */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Tlačítko */
.nav-dropdown-btn {
  color: rgba(255, 255, 255, 0.7); 
  font-weight: 600;
  font-size: 0.95rem; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 25px 12px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

/* Šipka */
.nav-dropdown-caret {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Menu panel - VYČIŠTĚNO */
.nav-dropdown-menu {
  position: absolute;
  top: 100%; /* Přilepeno ke spodku tlačítka */
  padding-top: 15px; /* Most pro myš (zabrání mizení) */
  left: 0;
  min-width: 230px;
  background:
    linear-gradient(135deg, rgba(45, 18, 68, 0.96), rgba(18, 5, 32, 0.96)),
    rgba(18, 5, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  z-index: 9999;
  
  /* Stav: skryté */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

/* Položky */
.nav-dropdown-item-topandbottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  margin: 4px 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78); 
  font-weight: 800;
  font-size: 0.86rem; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  margin: 4px 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78); 
  font-weight: 800;
  font-size: 0.86rem; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(138, 43, 226, 0.28);
  color: #fff;
}

.nav-dropdown-item-topandbottom:hover {
  background: rgba(138, 43, 226, 0.28);
  color: #fff;
}

/* Aktivní stav (hover) */
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown:hover .nav-dropdown-caret {
  transform: rotate(180deg);
}

.modal-seller-link {
    color: white;
    text-decoration: none;
    transition: 0.2s ease;
    pointer-events: none;
}

.modal-seller-link.is-clickable {
    color: #8A2BE2;
    pointer-events: auto;
}

.modal-seller-link.is-clickable:hover {
    color: #b266ff;
    text-decoration: none;
}

/* =========================================================
   RESPONSIVE REWRITE — LINK CONVERTER / TABLET / MOBILE
   desktopu se to nedotýká
========================================================= */

/* ------------------------------
   TABLET
------------------------------ */
@media (max-width: 991.98px) {
  .content-area {
    padding-top: 88px;
  }

  .nav-container {
    width: calc(100% - 28px) !important;
    height: 64px;
    margin-top: 14px;
    padding: 0 16px !important;
    border-radius: 18px;
  }

  .logo-text {
    font-size: 1.25rem;
    letter-spacing: -0.8px;
  }

  .nav-search {
    width: 220px;
    max-width: 38vw;
    height: 40px;
  }

  #nav-search-input {
    margin-left: 14px;
    font-size: 0.88rem;
  }

  .mobile-menu-btn {
    display: flex !important;
    margin-left: 8px;
  }

  .mobile-menu-btn span {
    width: 22px;
    height: 2.5px;
  }

  .nav-menu {
    top: calc(100% + 8px);
    right: 0 !important;
    width: min(280px, 82vw) !important;
    margin-left: 0 !important;
    padding: 14px !important;
    border-radius: 18px;
    gap: 6px;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .nav-link,
  .nav-dropdown-btn {
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    justify-content: space-between;
  }

  .footer-main {
    padding: 0 16px 16px;
  }

  .footer-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}


/* ------------------------------
   MOBILE
------------------------------ */
@media (max-width: 767.98px) {
  .content-area {
    padding-top: 74px;
  }

  .nav-container {
    width: calc(100% - 16px) !important;
    height: 56px;
    margin-top: 8px;
    padding: 0 14px !important;
    border-radius: 16px;
  }

  .logo-text {
    font-size: 1.08rem;
    letter-spacing: -0.5px;
  }

  .nav-search {
    display: none !important;
  }

  .mobile-menu-btn span {
    width: 21px;
    height: 2.5px;
  }

  .nav-menu {
    width: min(230px, 86vw) !important;
    padding: 12px !important;
    border-radius: 16px;
  }

  .nav-link,
  .nav-dropdown-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .settings-dropdown {
    margin-right: -40px;
    margin-top: -10px;
  }

  .footer-main {
    padding: 0 14px 14px;
  }

  .footer-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 22px;
  }

  .footer-logo-text {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }

  .footer-description {
    font-size: 0.84rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .footer-cta {
    flex-direction: column;
    gap: 10px;
  }

  .footer-cta .btn-kakobuy,
  .footer-cta .btn-discord {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 0.78rem;
  }

  .footer-legal {
    padding-top: 20px;
  }

  .legal-links {
    flex-direction: column;
    gap: 10px;
  }
}


/* ------------------------------
   SMALL MOBILE
------------------------------ */
@media (max-width: 479.98px) {
  .nav-container {
    width: calc(100% - 12px) !important;
    padding: 0 12px !important;
    height: 54px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .footer-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .footer-logo-text {
    font-size: 1.22rem;
  }

  .nav-dropdown-menu {
    margin-left: -7px;
  }

  .footer-label {
    display: block;
    margin: 0 auto 25px auto;
    width: fit-content;
  }

  .link-item {
    display: block;
    margin: 0 auto;
    width: fit-content;
  }

  .legal-copyright {
    display: block;
    margin: 0 auto;
    width: fit-content;
  }

  .legal-links {
    margin: 0 auto;
    width: fit-content;
  }
}

.similar-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.similar-meta .meta-tag{
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 9px;
}

.hero-title-icon{
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateX(-10px) translateY(-8px);
}

.hero-title-icon-favorite{
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateX(-55px) translateY(-8px);
}

.filters-head-with-search{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filters-searchinput-inline{
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 10px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 13px;

  outline: none;
  transition: all 0.2s ease;
}

.filters-searchinput-inline:focus{
  background: rgba(255,255,255,0.05);
}

/* Types + Brands = stejná výška */
.filters-categories,
.filters-brands{
  display: flex;
  flex-direction: column;
  height: 220px;
  overflow: hidden;
}

/* vnitřní seznamy vyplní zbytek karty */
.filters-cat-list,
.filters-brand-list{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

/* Basic drawer filter layout */
.filters-panel .filters-grid{
  padding: 10px 20px 18px;
  gap: 0;
}

.filters-panel .filters-leftcol,
.filters-panel .filters-col{
  gap: 0;
}

.filters-panel .filters-card,
.filters-panel .filters-card-price{
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.filters-panel .filters-card-price{
  overflow: visible;
}

.filters-panel .filters-card:last-child,
.filters-panel .filters-card-price:last-child{
  border-bottom: 0;
}

.filters-panel .filters-card-head{
  padding: 0 0 12px;
  border-bottom: 0;
}

.filters-panel .filters-card-title{
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.filters-panel .filters-head-with-search{
  align-items: stretch;
}

.filters-panel .filters-searchinput-inline{
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.filters-panel .filters-cat-list,
.filters-panel .filters-brand-list{
  padding: 0 2px 0 0;
}

.filters-panel .filters-cat-item,
.filters-panel .filters-brand-item{
  background: transparent;
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 6px;
  margin-bottom: 2px;
}

.filters-panel .filters-cat-item:hover,
.filters-panel .filters-brand-item:hover{
  background: rgba(255,255,255,0.055);
  transform: none;
}

.filters-panel .filters-cat-item.active,
.filters-panel .filters-brand-item.active{
  background: rgba(138,43,226,0.18);
  border: 0;
  color: #fff;
}

.filters-panel .filters-gender,
.filters-panel .filters-quality,
.filters-panel .filters-sort{
  padding: 0;
}

.filters-panel .filters-pillbtn,
.filters-panel .filters-sortopt,
.filters-panel .filters-rating-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
}

.filters-panel .filters-pillbtn:hover,
.filters-panel .filters-sortopt:hover,
.filters-panel .filters-rating-btn:hover{
  background: rgba(255,255,255,0.055);
  transform: none;
}

.filters-panel .filters-pillbtn.active,
.filters-panel .filters-sortopt.active,
.filters-panel .filters-rating-btn.active{
  background: rgba(138,43,226,0.22);
  border-color: rgba(138,43,226,0.52);
}

/* =========================================
   FILTERS PANEL — MOBILE COMPATIBLE
   přidej NA KONEC finds.css
========================================= */

@media (max-width: 980px){
  .filters-panel{
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
  }

  .filters-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
  }

  .filters-shell{
    width: 420px;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border-left: 1px solid rgba(255,255,255,0.10);
    border-right: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
  }

  .filters-top{
    flex-shrink: 0;
    padding: 16px 16px;
  }

  .filters-grid{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .filters-leftcol,
  .filters-col{
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
  }

  .filters-bottom{
    flex-shrink: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .filters-btn-ghost,
  .filters-btn-primary{
    width: 100%;
    min-width: 0;
  }

  .filters-categories,
  .filters-brands{
    height: 200px;
  }

  .filters-head-with-search{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filters-searchinput-inline{
    width: 100%;
  }
}

@media (max-width: 767.98px){
  .filters-shell{
    width: min(410px, calc(100vw - 20px));
    border-radius: 0;
  }

  .filters-top{
    padding: 14px;
  }

  .filters-title{
    gap: 10px;
    min-width: 0;
  }

  .filters-badge{
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .filters-badge img{
    width: 22px;
    height: 22px;
  }

  .filters-h1{
    font-size: 1.25rem;
    line-height: 1;
  }

  .filters-sub{
    font-size: 0.82rem;
    line-height: 1.25;
    opacity: 0.72;
    margin-top: 4px;
  }

  .filters-x{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
    font-size: 1.1rem;
  }

  .filters-grid{
    padding: 12px;
    gap: 12px;
  }

  .filters-card,
  .filters-card-price{
    border-radius: 14px;
  }

  .filters-card-head{
    padding: 12px 12px;
  }

  .filters-card-title{
    font-size: 0.72rem;
  }

  .filters-cat-item,
  .filters-brand-item,
  .filters-sortopt,
  .filters-pillbtn{
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .filters-categories,
  .filters-brands{
    height: 185px;
  }

  .filters-cat-list,
  .filters-brand-list{
    padding: 10px;
  }

  .filters-bottom{
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .filters-btn-ghost,
  .filters-btn-primary{
    height: 44px;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 479.98px){
  .filters-top{
    padding: 12px;
  }

  .filters-h1{
    font-size: 1.35rem;
  }

  .filters-sub{
    font-size: 0.86rem;
  }

  .filters-x{
    width: 42px;
    height: 42px;
  }

  .filters-grid{
    padding: 10px;
    gap: 10px;
  }

  .filters-categories,
  .filters-brands{
    height: 170px;
  }

  .filters-bottom{
    grid-template-columns: 1fr 1fr;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .filters-btn-ghost,
  .filters-btn-primary{
    font-size: 0.88rem;
  }
}

/* =========================================
   MOBILE MODAL — one smooth scroll only
========================================= */
@media (max-width: 768px){
  .modal{
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .modal-content-full{
    height: auto;
    min-height: 100%;
    overflow: visible;
    align-items: stretch;
    padding: 86px 14px 28px;
  }

  .modal-container{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 22px;
  }

  .modal-left,
  .modal-right{
    min-width: 0;
    width: 100%;
  }

  .order-buttons-wrapper{
    gap: 8px;
  }

  #modal-order-btn{
    min-width: 0;
    height: 62px;
    padding: 0 18px !important;
    border-radius: 12px;
  }

  #modal-direct-btn{
    width: 52px;
    min-width: 52px;
    height: 62px;
    border-radius: 12px;
  }

  .order-btn-content{
    width: auto;
    min-width: 0;
    justify-content: center;
    gap: 12px;
  }

  .order-agent-icon{
    width: 38px;
    height: 38px;
    padding: 5px;
    flex: 0 0 auto;
  }

  .order-btn-text{
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: clamp(0.98rem, 4vw, 1.08rem);
    line-height: 1;
  }

  #preferred-agent-name{
    white-space: nowrap;
  }

  #modal-title{
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.02;
  }

  .modal-meta{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .specs-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #modal-similar,
  #modal-recent{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .similar-carousel,
  .similar-viewport{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .similar-track{
    touch-action: pan-x;
  }

  .qc-strip{
    touch-action: pan-x;
  }

  .modal-image-wrapper,
  .similar-card,
  .spec-card{
    max-width: 100%;
  }
}

@media (max-width: 380px){
  #modal-order-btn{
    padding: 0 14px !important;
  }

  .order-btn-content{
    gap: 9px;
  }

  .order-agent-icon{
    width: 34px;
    height: 34px;
  }

  .order-btn-text{
    font-size: 0.94rem;
  }
}

/* =========================================
   QC FIX — MOBILE
========================================= */
@media (max-width: 768px){
  .qc-section{
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .qc-header{
    margin-bottom: 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .qc-title{
    font-size: 0.8rem;
  }

  .qc-count{
    font-size: 0.8rem;
  }
}

/* =========================================
   MOBILE FIX — SIMILAR / RECENTLY VIEWED
========================================= */
@media (max-width: 768px){
  #modal-similar,
  #modal-recent{
    overflow: visible !important;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .similar-section{
    overflow: visible;
  }

  .similar-carousel{
    margin-bottom: 0 !important;
    gap: 10px;
  }

  .similar-viewport{
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
  }

  .similar-track{
    align-items: stretch;
  }

  .similar-card{
    height: auto;
    min-height: 100%;
  }

  .similar-bottom{
    padding-bottom: 18px;
  }
}

/* =========================================
   MOBILE FIX — TAGY VZDY V JEDNOM ŘÁDKU
========================================= */
@media (max-width: 768px){
  .product-meta,
  .modal-meta,
  .similar-meta{
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-meta::-webkit-scrollbar,
  .modal-meta::-webkit-scrollbar,
  .similar-meta::-webkit-scrollbar{
    display: none;
  }

  .product-meta .meta-tag,
  .modal-meta .meta-tag,
  .similar-meta .meta-tag{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .similar-meta .meta-tag,
  .product-meta .meta-tag{
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .modal-meta .meta-tag{
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}

@media (max-width: 768px){
  .close-modal{
    top: 74px;
    left: 10px;
    right: auto;

    width: 40px;
    height: 40px;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 1;
    border-radius: 12px;

    transform: none;
  }
}

@media (max-width: 768px){
  .similar-carousel{
    grid-template-columns: 56px minmax(0, 1fr) 56px !important;
    gap: 12px !important;
    padding: 0 6px;
  }

  .similar-navbtn{
    width: 44px;
    height: 44px;
    justify-self: center;
    align-self: center;
  }

  .similar-viewport{
    min-width: 0;
  }
}

.btn-like{
  width:42px;
  height:42px;
  border: none;
  border-radius:120px;
  background: #211230;
  color:#0f0f0f;
  font-size:1.1rem;
  font-weight:900;
  cursor:pointer;
  transition:0.25s ease;
  backdrop-filter: blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.btn-like:hover{
  transform: translateY(-2px) scale(1.04);
  color:#ff5abf;
}

.btn-like.is-favorite{
  background: #211230;
  color:#ff5abf;
}

.btn-like.is-favorite:hover {
  color:#ff5abf;
}

/* nový lock po kliku */
.btn-like.hover-lock:hover{
  transform: translateY(-2px) scale(1.04);
}

.btn-like.hover-lock:not(.is-favorite):hover{
  color:#0f0f0f;
}

.btn-like.hover-lock.is-favorite:hover{
  color:#ff5abf;
}

#favorites-modal-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

#favorites-modal-grid .product-card{
  width: 100%;
  margin-top: 0;
}

@media (max-width: 1400px){
  #favorites-modal-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px){
  #favorites-modal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
  #favorites-modal-grid{
    grid-template-columns: 1fr;
  }
}

/* FAVORITES BUTTON */
.favorites-btn{
    height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    background: #200f2e;
    border: 1px solid rgba(138, 43, 226, 0.28);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.8);
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-weight:600;
    transition:0.25s ease;
    height: 56px;
    padding: 0 20px;
    border-radius: 16px;
    white-space: nowrap;
    width: 56px;
    min-width: 56px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.favorites-btn:hover {
    color:#ff5abf;
}

.footer-main {
    margin-top: auto;
}

.favorites-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.favorites-title-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -80px;
  margin-left: -665px;
}

.favorites-empty-title{
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 120px;
}

.favorites-empty-sub{
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: -1000px;
}

.favorites-empty-state{
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: center;
  text-align: center;   
  margin-top: 80px; 
}

.favorites-grid-actions{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.favorites-clear-btn{
    margin-top: 14px;
    height: 56px;
    padding: 0 18px;
    margin-left: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(138, 43, 226, 0.28);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.8);
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-weight:600;
    transition:0.25s ease;
}

.favorite-toast {
    position: fixed;
    top: 30px;
    right: 20px;
    background: rgba(20, 10, 40, 0.96);
    border: 1px solid rgba(138, 43, 226, 0.45);
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);

    opacity: 0;
    transform: translateX(100%); /* 👈 start mimo obraz */
    pointer-events: none;

    transition: 
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;

    z-index: 100000000;
}

.favorite-toast.show {
    opacity: 1;
    transform: translateX(0); /* 👈 slide dovnitř */
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0118; /* tmavé pozadí */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8A2BE2, #4B0082);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9b4dff, #5a00a8);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.9);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: #8A2BE2 #0b0118;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #10021f;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content-full {
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 200px 40px 60px;
}

.modal-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.product-meta {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-meta::-webkit-scrollbar {
    display: none;
}

/* 👇 jen když jde scrollovat */
.product-meta.can-scroll {
    cursor: grab;
}

/* 👇 při dragu */
.product-meta.dragging {
    cursor: grabbing;
}

/* 👇 fade jen když je něco vpravo */
.product-meta.has-overflow-right {
    mask-image: linear-gradient(to right, black 80%, transparent);
}

.zenithdeck-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px 30px 36px;
  background:
    radial-gradient(circle at 88% 18%, rgba(138, 43, 226, 0.22), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(111, 0, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #1a0326 0%, #14001d 100%);
  border: 1px solid rgba(138, 43, 226, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 20px 50px rgba(0,0,0,0.28);
}

.zenithdeck-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03), transparent 20%, transparent 80%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.zenithdeck-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8A2BE2 0%, #6a11d8 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 0 22px rgba(138, 43, 226, 0.38);
}

.zenithdeck-heading {
  margin: 26px 0 10px;
  max-width: 10000px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: -3px;
  color: #f3f1ee;
}

.zenithdeck-heading-glow {
  display: block;
  background: linear-gradient(180deg, #f4efff 0%, #d5a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  margin-top: -20px;
}

.zenithdeck-copy {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.9);
  font-size: 0.98rem;
  line-height: 1.55;
}

.zenithdeck-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.zenithdeck-metric {
  min-height: 82px;
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.zenithdeck-metric strong {
  display: block;
  margin-bottom: 6px;
  color: #f5f2f7;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.zenithdeck-metric span {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-transform: uppercase;

  /* GRADIENT */
  background: linear-gradient(90deg, #c383eb, #7700ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* pro Firefox */
  background-clip: text;
  color: transparent;
}

.zenithdeck-frame{
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 28px;
  padding: 18px 20px 0;
}

.finds-search-row{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
}

.finds-search{
  flex: 1;
  min-width: 0;
  margin: 0;
}

.filters-btn,
.favorites-btn{
  flex: 0 0 auto;
  margin: 0;
}

.zenithdeck-panel{
  position: relative;
}

.zenithdeck-floating-count{
  position: absolute;
  top: 70px;
  right: 140px;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

#zenithdeck-count-big{
  display: block;
  font-size: 7rem;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #8A2BE2, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zenithdeck-floating-label{
  margin-top: 14px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 980px) {
  .zenithdeck-panel {
    padding: 28px 22px 28px;
    border-radius: 24px;
  }

  .zenithdeck-heading {
    margin-top: 22px;
    letter-spacing: -2px;
  }

  .zenithdeck-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .zenithdeck-frame {
    padding: 16px 12px 0;
  }

  .zenithdeck-panel {
    padding: 22px 16px 22px;
    border-radius: 22px;
  }

  .zenithdeck-pill {
    font-size: 0.72rem;
    padding: 0 12px;
  }

  .zenithdeck-copy {
    font-size: 0.92rem;
  }

  .zenithdeck-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .zenithdeck-heading {
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .zenithdeck-floating-count {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 18px 0 20px;
    text-align: center;
    pointer-events: none;
  }

  #zenithdeck-count-big {
    display: block;
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: -1px;
  }

  .zenithdeck-floating-label {
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 3px;
  }

  .zenithdeck-panel {
    display: flex;
    flex-direction: column;
  }

  .zenithdeck-heading {
    order: 1;
  }

  .zenithdeck-copy {
    order: 2;
    margin-bottom: 0;
  }

  .zenithdeck-floating-count {
    order: 3;
  }

  .zenithdeck-metrics {
    order: 4;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }
}

.settings-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 999999999999999999999999999999999999;
}

.settings-overlay.active{
  opacity: 1;
  pointer-events: auto;
}

.settings-drawer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-header{
  padding: 0;
  font-weight: 800;
  font-size: 2rem;
  color: #eee;
}

.settings-close{
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* overlay za panelem */
.settings-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}

.settings-overlay.active{
  opacity: 1;
  pointer-events: auto;
}

/* settings místo dropdownu = drawer zprava */
.settings-dropdown{
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 100vw);
  height: 100dvh;
 background: rgba(15, 10, 25, 1);
  border-left: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  padding: 28px 20px 24px;
  display: block;              /* už ne display:none */
  transform: translateX(100%);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: transform .3s ease;
  z-index: 999999999999999999999999999999999;
  overflow-y: auto;
  box-shadow: -20px 0 50px rgba(0,0,0,.45);
}

.settings-dropdown.active{
  transform: translateX(0);
  pointer-events: auto;
}

.settings-header{
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 0 0 12px 0;
}

.settings-divider{
  margin: 0 0 18px 0;
}

.settings-dropdown {
    scrollbar-width: none;
}

.settings-dropdown::-webkit-scrollbar {
    display: none;
}

.user-center-container {
  position: relative;
}

.user-center-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.user-center-btn:hover {
  background: rgba(138, 43, 226, 0.2);
}

.user-center-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 100000;
}

.user-center-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 100001;
}

.user-center-modal.open,
.user-center-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.user-center-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0b0118;
  color: #fff;
}

.user-center-topbar {
  height: 110px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.user-center-brand {
  font-size: 1.3rem;
  font-weight: 800;
}

.user-center-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.user-center-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start; /* 🔥 DŮLEŽITÝ */
}

.user-center-sidebar {
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  height: 100%; /* 🔥 */
}

.user-center-content {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  height: 100%;
}

.user-profile-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.user-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  margin: 0 auto;
}

.user-name {
  margin: 0 0 6px;
}

.user-tag {
  color: rgba(255,255,255,0.65);
}

.user-center-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.user-tab.active {
  background: linear-gradient(135deg, #8A2BE2 0%, #4B0082 100%);
}

.user-tab-panel {
  display: none;
}

.user-tab-panel.active {
  display: block;
}

.user-center-footer {
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .user-center-body {
    grid-template-columns: 1fr;
  }

  .user-center-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* =========================================================
   USER CENTER — VISUAL UPGRADE
   vlož na konec finds.css
========================================================= */

.user-center-overlay{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 15%, rgba(138,43,226,0.16), transparent 60%),
    radial-gradient(50% 50% at 85% 80%, rgba(103,58,183,0.14), transparent 60%),
    rgba(3, 2, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 10000;
}

.user-center-overlay.open{
  opacity: 1;
  visibility: visible;
}

.user-center-modal{
  position: fixed;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 10001;
}

.user-center-modal.open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* FULLSCREEN APP STYLE */
.user-center-shell{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border: none;

  background:
    radial-gradient(80% 60% at 10% 0%, rgba(138,43,226,0.15), transparent 60%),
    radial-gradient(70% 60% at 90% 100%, rgba(138,43,226,0.12), transparent 60%),
    linear-gradient(180deg, #0b0118, #05010d);

  box-shadow: none;

  transform: none;
}

.user-center-modal.open .user-center-shell{
  transform: translateY(0) scale(1);
}

.user-center-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(138,43,226,0.13), transparent 40%),
    radial-gradient(50% 70% at 100% 100%, rgba(138,43,226,0.10), transparent 45%);
}

.user-center-topbar{
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 30px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.user-center-brand{
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #fff;
  text-transform: uppercase;
}

.user-center-close{
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  transition: .24s ease;
  display: grid;
  place-items: center;
}

.user-center-close:hover{
  transform: translateY(-2px);
  background: rgba(138,43,226,0.18);
  color: #fff;
  box-shadow: 0 0 20px rgba(138,43,226,0.22);
}

.user-center-body{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  overflow-y: auto;
  scrollbar-width: none;
}

.user-center-sidebar{
  position: relative;
  padding: 22px 18px 22px 22px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012));
  overflow-y: auto;
  
}

.user-profile-card{
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 12px 30px rgba(0,0,0,0.22);
  margin-bottom: 20px;
}

.user-profile-card::before{
  content: "";
  position: absolute;
  top: -80px;
  left: 100%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,43,226,0.22), transparent 68%);
  pointer-events: none;
}

.user-profile-card img{
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border: 2px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 6px rgba(138,43,226,0.12),
    0 0 30px rgba(138,43,226,0.22);
}

.user-profile-card h3{
  font-size: 1.22rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.user-profile-card p{
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}

.user-profile-card .user-badge,
.user-profile-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, rgba(138,43,226,0.92), rgba(75,0,130,0.92));
  box-shadow: 0 10px 22px rgba(138,43,226,0.20);
}

.user-center-nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-center-logout{
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border: 1px solid rgba(255,80,80,0.18);
  border-radius: 16px;
  background: rgba(255,80,80,0.10);
  color: #ffabab;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform .2s ease,
    border-color .22s ease,
    background .22s ease,
    color .22s ease;
}

.user-center-logout:hover{
  transform: translateY(-2px);
  border-color: rgba(255,80,80,0.30);
  background: rgba(255,80,80,0.18);
  color: #fff;
}

.user-tab{
  position: relative;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.68);
  border-radius: 18px;
  padding: 15px 16px 15px 18px;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform .2s ease,
    color .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
  overflow: hidden;
}

.user-tab::before{
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c77dff, #8A2BE2);
  opacity: 0;
  transform: scaleY(.6);
  transition: .22s ease;
}

.user-tab:hover{
  transform: translateX(3px);
  color: #fff;
  border-color: rgba(138,43,226,0.20);
  background: rgba(138,43,226,0.10);
}

.user-tab.active{
  color: #fff;
  border-color: rgba(138,43,226,0.28);
  background:
    linear-gradient(135deg, rgba(138,43,226,0.22), rgba(75,0,130,0.16));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 12px 24px rgba(138,43,226,0.14);
}

.user-tab.active::before{
  opacity: 1;
  transform: scaleY(1);
}

.user-tab-panel{
  display: none;
  animation: userFade .22s ease;
}

.user-tab-panel.active{
  display: block;
}

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

.user-tab-panel h3{
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #fff;
}

.user-tab-panel p{
  max-width: 820px;
  color: rgba(255,255,255,0.66);
  line-height: 1.75;
  font-size: 0.98rem;
}

.user-panel-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 32px rgba(0,0,0,0.22);
  padding: 20px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  margin-top: 5px;
  margin-right: 5px;
  margin-left: 5px;
  margin-bottom: 5px;
}

.user-panel-card:hover{
  border-color: rgba(138,43,226,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 38px rgba(0,0,0,0.28),
    0 0 24px rgba(138,43,226,0.10);
}

.user-center-footer{
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.48);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.015);
}

/* trigger button v navbaru */
.user-center-container{
  position: relative;
  margin-left: 12px;
}

.user-center-btn{
  width: 58px;
  height: 51px;
  border: none;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.user-center-btn:hover{
  background: rgba(138,43,226,0.18);
  box-shadow: 0 0 18px rgba(138,43,226,0.15);
}

.user-center-icon-img{
  width: 58px;
  height: 51px;
  object-fit: contain;
  border-radius: 10px;
  padding: 10px;
  transition: transform .28s ease, filter .28s ease;
}

.user-center-btn:hover .user-center-icon-img{
  filter: drop-shadow(0 0 10px rgba(138,43,226,0.35));
}

/* desktop polish */
.user-center-content::-webkit-scrollbar,
.user-center-sidebar::-webkit-scrollbar{
  width: 10px;
}

.user-center-content::-webkit-scrollbar-thumb,
.user-center-sidebar::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #8A2BE2, #4B0082);
  border-radius: 999px;
}

/* responsive */
@media (max-width: 1100px){
  .user-center-body{
    grid-template-columns: 280px minmax(0,1fr);
  }

  .user-center-shell{
    height: min(900px, calc(100dvh - 34px));
  }
}

@media (max-width: 900px){
  .user-center-modal{
    padding: 10px;
  }

  .user-center-shell{
    width: 100%;
    height: calc(100dvh - 20px);
    border-radius: 24px;
  }

  .user-center-body{
    grid-template-columns: 1fr;
  }

  .user-center-sidebar{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px;
  }

  .user-center-nav{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .user-center-content{
    padding: 18px 16px 20px;
  }

  .user-tab-panel h3{
    font-size: 1.65rem;
  }
}

@media (max-width: 640px){
  .user-center-modal{
    padding: 0;
  }

  .user-center-shell{
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .user-center-topbar{
    min-height: 72px;
    padding: 0 14px 0 16px;
  }

  .user-center-brand{
    font-size: 1rem;
  }

  .user-center-close{
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .user-center-sidebar{
    padding: 14px;
  }

  .user-profile-card{
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .user-profile-card img{
    width: 72px;
    height: 72px;
  }

  .user-center-nav{
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .user-tab{
    padding: 13px 14px;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  .user-center-content{
    padding: 16px 14px 18px;
  }

  .user-tab-panel h3{
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .user-tab-panel p{
    font-size: 0.93rem;
    line-height: 1.65;
  }

  .user-center-footer{
    min-height: 54px;
    padding: 0 14px;
    font-size: 0.74rem;
  }
}

.nav-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-utility-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;

  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  transition: all .2s ease;
  color: rgba(255, 255, 255, 0.7); 
}

.nav-utility-btn:hover{
  color: #fff;
  background: rgba(255,255,255,0.04);
}

/* ICON */
.btn-icon{
  color: rgba(255, 255, 255, 0.7); 
  width: 18px;
  height: 18px;

  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;

  opacity: 0.9;
}

/* ===== SETTINGS DRAWER VISUAL REWORK — ONLY DRAWER, NO JS CHANGE ===== */

#settings-overlay{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 15%, rgba(138,43,226,0.12), transparent 60%),
    radial-gradient(50% 50% at 85% 80%, rgba(103,58,183,0.10), transparent 60%),
    rgba(3, 2, 8, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 99998;
}

#settings-overlay.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#settings-dropdown{
  position: fixed;
  top: 0;
  right: 0;
  width: 420px; /* můžeš upravit */
  height: 100dvh; /* 🔥 CELÁ VÝŠKA */
  max-height: 100dvh;

  border-radius: 0; /* 🔥 žádný zaoblení */
  border-left: 1px solid rgba(255,255,255,0.08);

  background:
    radial-gradient(80% 60% at 10% 0%, rgba(138,43,226,0.12), transparent 60%),
    radial-gradient(70% 60% at 90% 100%, rgba(138,43,226,0.08), transparent 60%),
    linear-gradient(180deg, rgba(20,8,32,0.96), rgba(10,5,18,0.98));

  box-shadow:
    -30px 0 80px rgba(0,0,0,0.5), /* 🔥 stín doleva */
    0 0 0 1px rgba(138,43,226,0.08) inset;

  overflow-y: auto;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%); /* 🔥 slide from right */
  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    opacity .2s ease;

  z-index: 99999999999999999999999999999;
}

#settings-dropdown.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

#settings-dropdown::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(138,43,226,0.10), transparent 40%),
    radial-gradient(50% 70% at 100% 100%, rgba(138,43,226,0.08), transparent 45%);
}

/* top bar */
#settings-dropdown .settings-drawer-top{
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#settings-dropdown .settings-header{
  padding: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#settings-dropdown .settings-close{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: .22s ease;
}

#settings-dropdown .settings-close:hover{
  transform: translateY(-1px) rotate(90deg);
  background: rgba(138,43,226,0.18);
  color: #fff;
  box-shadow: 0 0 18px rgba(138,43,226,0.18);
}

/* sections */
#settings-dropdown .settings-section{
  padding: 14px 16px;
}

#settings-dropdown .settings-label{
  padding: 0 0 10px 4px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

#settings-dropdown .settings-divider{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 2px 16px;
}

/* current selection rows */
#settings-dropdown .selection-box{
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: .22s ease;
}

#settings-dropdown .selection-box:hover{
  transform: translateY(-1px);
  border-color: rgba(138,43,226,0.22);
  background:
    linear-gradient(180deg, rgba(138,43,226,0.10), rgba(255,255,255,0.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 28px rgba(0,0,0,0.22),
    0 0 20px rgba(138,43,226,0.10);
}

#settings-dropdown .selection-content{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#settings-dropdown .agent-icon-small,
#settings-dropdown .option-icon,
#settings-dropdown .item-icon-box{
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1.1rem;
  margin-right: 10px;
}

#settings-dropdown .agent-icon-small{
  object-fit: cover;
  padding: 6px; 
  margin-right: 0px
}

#settings-dropdown .selected-preference,
#settings-dropdown .selected-preference-currency{
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#settings-dropdown .arrow-icon{
  color: rgba(255,255,255,0.42);
  font-size: 1rem;
  transition: .2s ease;
}

#settings-dropdown .selection-box:hover .arrow-icon{
  color: #fff;
  transform: translateX(2px);
}

/* internal option lists — keep existing open/close logic intact */
#settings-dropdown .collapsible-list{
  margin-top: 10px;
  padding: 0;
  gap: 8px;
}

#settings-dropdown .currency-option-item,
#settings-dropdown .agent-option-item,
#settings-dropdown .theme-option-item,
#settings-dropdown .language-option-item,
#settings-dropdown .collapsible-list > *{
  border-radius: 14px;
}

/* scrollbar */
#settings-dropdown::-webkit-scrollbar{
  width: 10px;
}

#settings-dropdown::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #8A2BE2, #4B0082);
  border-radius: 999px;
}

@media (max-width: 640px){
  #settings-dropdown{
    top: 10px;
    right: 10px;
    width: min(410px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
  }
} 

#settings-dropdown #agent-select-list img{
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.user-profile-card{
  position: relative;
}

.user-avatar{
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.user-avatar:hover{
  transform: scale(1.03);
  box-shadow: 0 0 0 6px rgba(138,43,226,0.12);
}

.avatar-change-btn{
  margin-top: 8px;
  margin-bottom: 14px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.avatar-reset-btn{
  margin-top: 8px;
  margin-bottom: 14px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.avatar-change-btn:hover{
  background: rgba(138,43,226,0.16);
  border-color: rgba(138,43,226,0.22);
  color: #fff;
}

.product-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.product-actions-row .btn-view-full {
    flex: 1;
    width: auto;
    margin: 0;
}

.btn-like {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: rgba(138, 43, 226, 0.12);
    color:#0f0f0f;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-like:hover {
    transform: translateY(-2px);
    background: rgba(138, 43, 226, 0.22);
}

.btn-like.active {
    color: #ff4d88;
    background: rgba(255, 77, 136, 0.14);
}

.user-profile-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.profile-edit-toggle{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  z-index: 2;
}

.profile-edit-menu{
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);

  display: none;
  flex-direction: column;
  gap: 10px;

  position: static;
  background: transparent;
  border: none;
  box-shadow: none;
}

.profile-edit-menu.open{
  display: flex;
}

.profile-edit-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.profile-edit-field span{
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.profile-edit-field input{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.profile-edit-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.profile-menu-btn{
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.profile-menu-btn:hover{
  background: rgba(138,43,226,0.18);
}

.profile-menu-btn.danger:hover{
  background: rgba(255,80,80,0.18);
}

.user-center-shell,
.user-center-body,
.user-center-sidebar,
.user-center-content,
.user-profile-card,
.user-center-nav,
.user-tab-panel {
  min-width: 0;
  max-width: 100%;
}

.user-center-shell,
.user-center-sidebar,
.user-center-content {
  overflow-x: hidden;
}

/* =========================
   FAVORITES — BETTER LAYOUT
========================= */

.favorites-panel{
  width: 100%;
  max-width: 1500px;
  background:
    linear-gradient(180deg, rgba(22, 8, 35, 0.92), rgba(14, 5, 24, 0.96));
  border: 1px solid rgba(138, 43, 226, 0.18);
  border-radius: 28px;
  padding: 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.favorites-clear-btn{
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.favorites-clear-btn:hover{
  background: rgba(255, 90, 191, 0.12);
  border-color: rgba(255, 90, 191, 0.22);
  color: #ff7ac9;
}

.products-container-favorite-grid{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#favorites-modal-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

#favorites-modal-grid .product-card{
  width: 100%;
  margin-top: 0;
  height: 100%;
}

#favorites-modal-grid .product-info{
  flex: 1;
}

.favorites-empty-state{
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.025);
  margin-bottom: 12px;
}

.favorites-empty-icon{
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 2rem;
  color: #ff5abf;
  background: rgba(255,90,191,0.08);
  margin-bottom: 18px;
}

.favorites-empty-title{
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.favorites-empty-sub{
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.favorites-back-btn{
  top: 24px;
  right: 32px;
}

@media (max-width: 900px){

  .favorites-clear-btn{
    width: 100%;
  }

  #favorites-modal-grid{
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px){

  #favorites-modal-grid{
    grid-template-columns: 1fr;
  }
}

.user-center-sidebar {
  position: sticky;
  top: 0px;
  height: 100%;
}

.user-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* === USER CENTER ACTIVE STATE === */
.user-center-open .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

html, body {
  overflow: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;              /* Chrome, Safari */
}

/* schovej scrollbar VE VŠECHNO v modalu */
.modal,
.modal * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal::-webkit-scrollbar,
.modal *::-webkit-scrollbar {
  display: none;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.user-stat {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.user-stat span {
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.user-preferences {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pref-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  padding: 12px;
  border-radius: 10px;
}

.user-center-shell {
  height: 100%; /* nebo 100vh */
  display: flex;
  flex-direction: column;
}

.user-center-body {
  flex: 1;
  display: flex;
  align-items: stretch; /* 🔥 důležitý */
}

.user-center-sidebar {
  width: 280px;
  flex-shrink: 0;
  height: 100%; /* 🔥 */
}

.user-center-content {
  flex: 1;
  height: 100%; /* 🔥 */
  overflow-y: auto;
}

.user-center-content {
  overflow-y: auto;

  /* Chrome, Edge, Safari */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE */
}

.user-center-content::-webkit-scrollbar {
  display: none;               /* Chrome */
}

.user-tab-panel {
  width: 100%;
}

.favorites-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.featured-card img {
  width: 200px;
}

.featured-info h2 {
  font-size: 28px;
}

.featured-info p {
  opacity: 0.7;
}

.recommended-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.recommended-item img {
  width: 50px;
}

/* CARD WRAPPER */
.nebula-shell {
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 32px rgba(0,0,0,0.22);
    
  border-radius: 20px;
  padding: 24px;
  width: 100%;


  box-shadow:
    0 0 80px rgba(124,58,237,0.15),
    inset 0 0 40px rgba(255,255,255,0.02);
}

/* HEADER */
.nebula-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.nebula-head h3 {
  font-size: 16px;
}

.nebula-head p {
  font-size: 13px;
  color: #9ca3af;
}

.nebula-link {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 10px;
  color: #c4b5fd;
  cursor: pointer;
}

/* CONTENT */
.nebula-core {
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px;
  border-radius: 16px;

  background: transparent;

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.03),
    0 0 50px rgba(124,58,237,0.12);
}

/* BADGE */
.nebula-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(90deg, #9333ea, #a855f7);
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 999px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;

  box-shadow: 0 0 15px rgba(168,85,247,0.6);
}

/* RATING */
.nebula-score {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(20, 8, 42, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;

  border: 1px solid rgba(255,255,255,0.08);
}

/* IMAGE */
.nebula-art {
  width: 160px;
  height: 160px;
  padding: 20px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 40px;

  box-shadow:
    0 0 25px rgba(124,58,237,0.2),
    inset 0 0 10px rgba(255,255,255,0.05);
}

/* INFO */
.nebula-meta {
  max-width: 400px;
}

.nebula-flags {
  margin-bottom: 10px;
}

.nebula-flags span {
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  margin-right: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;

  border: 1px solid rgba(168,85,247,0.2);
}

.nebula-meta h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.nebula-meta p {
  color: #9ca3af;
  font-size: 14px;
}

/* BUTTON */
.nebula-cta {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  color: white;

  background: var(--main-gradient);

  cursor: pointer;
  transition: 0.2s;
}

.nebula-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 25px rgba(236,72,153,0.7),
    0 0 60px rgba(147,51,234,0.5);
}

  /* STACK */
.nebula-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ITEM */
.nebula-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px;
  border-radius: 16px;

  background: transparent;

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.02),
    0 0 40px rgba(124,58,237,0.1);

  transition: 0.25s;
}

.nebula-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 60px rgba(124,58,237,0.25);
}

/* menší obrázek aby se vešly 3 */
.nebula-item .nebula-art {
  width: 120px;
  height: 120px;
  padding: 10px;
}

/* menší text */
.nebula-item h2 {
  font-size: 20px;
}

.nebula-item p {
  font-size: 13px;
}

.nebula-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start; /* 👈 důležité (ne stretch) */
}

.nebula-left,
.nebula-right {
  display: flex;
  flex-direction: column;
}

/* ===== USER CENTER STATS ===== */

.stats-shell {
  padding: 24px;
  border-radius: 20px;

  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 32px rgba(0,0,0,0.22);

  box-shadow:
    0 0 60px rgba(124,58,237,0.15),
    inset 0 0 30px rgba(255,255,255,0.02);

  margin-bottom: 20px;
}

.stats-title {
  font-size: 18px;
  margin-bottom: 18px;
}

/* grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* card */
.stat-card {
  padding: 20px;
  border-radius: 16px;

  background: transparent;

  border: 1px solid rgba(255,255,255,0.06);

  text-align: center;

  transition: 0.25s;

  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.02),
    0 0 30px rgba(124,58,237,0.08);
}

/* hover efekt */
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 50px rgba(124,58,237,0.25);
}

/* icon */
.stat-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

/* číslo */
.stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* label */
.stat-label {
  font-size: 12px;
  color: #9ca3af;
}

/* ===== USER CENTER PREFERENCES ===== */

.prefs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pref-item {
  display: flex;
  flex-direction: column;
}

.pref-item label {
  font-size: 12px;
  margin-bottom: 6px;
  color: #9ca3af;
}

/* select styl */
.pref-item select {
  padding: 10px 12px;
  border-radius: 10px;

  background:
    linear-gradient(145deg, #14082a, #0a0418);

  border: 1px solid rgba(255,255,255,0.08);
  color: white;

  outline: none;
  cursor: pointer;

  transition: 0.2s;
}

/* hover / focus glow */
.pref-item select:hover,
.pref-item select:focus {
  border-color: #a855f7;
  box-shadow:
    0 0 10px rgba(168,85,247,0.4);
}

.dashboard-wrapper {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.modal.is-loading .about-product-section,
.modal.is-loading .similar-section,
.modal.is-loading .recently-section {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal.is-loading .modal-content-full > *:not(#modal-loader):not(.close-modal) {
  display: none;
}

.modal.is-loading {
  overflow: hidden;
}

/* =========================================================
   FINDS HERO — DARK DEFAULT + LIGHT THEME VARIABLES
   Paste this at the end of finds.css
========================================================= */

/* DARK MODE DEFAULT */
:root {
  --hero-page-bg:
    radial-gradient(circle at 12% 0%, rgba(138, 43, 226, 0.28), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(189, 115, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #16051f 0%, #100219 48%, #08010f 100%);

  --hero-panel-bg:
    radial-gradient(circle at 86% 24%, rgba(166, 72, 255, 0.26), transparent 34%),
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(138, 43, 226, 0.20), transparent 46%),
    linear-gradient(135deg, rgba(32, 15, 46, 0.96), rgba(19, 5, 31, 0.96) 52%, rgba(35, 12, 54, 0.94));

  --hero-panel-border: rgba(255, 255, 255, 0.10);
  --hero-panel-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 0 70px rgba(138, 43, 226, 0.14);

  --hero-title: #ffffff;
  --hero-title-gradient: linear-gradient(135deg, #8a2be2 0%, #b563ff 55%, #d9adff 100%);
  --hero-copy: rgba(255, 255, 255, 0.68);

  --hero-metric-bg: rgba(255, 255, 255, 0.055);
  --hero-metric-border: rgba(255, 255, 255, 0.10);
  --hero-metric-title: #ffffff;
  --hero-metric-label: #bb78ff;

  --hero-count-bg:
    radial-gradient(circle, rgba(160, 72, 255, 0.18) 0%, rgba(255, 255, 255, 0.055) 56%, transparent 74%);
  --hero-count-ring: rgba(255, 255, 255, 0.12);
  --hero-count-label: rgba(255, 255, 255, 0.58);
  --hero-count-gradient: linear-gradient(135deg, #8a2be2 0%, #c179ff 100%);

  --hero-grid-opacity: 0.28;
  --hero-grid-line: rgba(255, 255, 255, 0.32);
}

/* LIGHT MODE OVERRIDE */
body.light-theme {
  --hero-page-bg:
    radial-gradient(circle at 14% 0%, rgba(138, 43, 226, 0.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(189, 115, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #f3e8ff 0%, #fbf8ff 46%, #efe1ff 100%);

  --hero-panel-bg:
    radial-gradient(circle at 88% 24%, rgba(180, 95, 255, 0.34), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.94), transparent 33%),
    radial-gradient(circle at 50% 100%, rgba(138, 43, 226, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 235, 255, 0.9) 48%, rgba(232, 205, 255, 0.78));

  --hero-panel-border: rgba(255, 255, 255, 0.72);
  --hero-panel-shadow: 0 28px 80px rgba(138, 43, 226, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --hero-title: #17111f;
  --hero-title-gradient: linear-gradient(135deg, #6412c9 0%, #8a2be2 48%, #b663ff 100%);
  --hero-copy: rgba(23, 17, 31, 0.72);

  --hero-metric-bg: rgba(255, 255, 255, 0.54);
  --hero-metric-border: rgba(255, 255, 255, 0.68);
  --hero-metric-title: #17111f;
  --hero-metric-label: #a45cf2;

  --hero-count-bg:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.28) 54%, transparent 72%);
  --hero-count-ring: rgba(255, 255, 255, 0.38);
  --hero-count-label: rgba(23, 17, 31, 0.64);
  --hero-count-gradient: linear-gradient(135deg, #7020e8 0%, #b65dff 100%);

  --hero-grid-opacity: 0.52;
  --hero-grid-line: rgba(255, 255, 255, 0.42);
}


/* hero frame */
.zenithdeck-frame {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 32px;
  padding: 0 20px;
  position: relative;
}

/* main hero panel */
.zenithdeck-panel {
  position: relative;
  overflow: hidden;
  min-height: 425px;
  padding: 66px 64px 36px;
  border-radius: 28px;

  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-border);
  box-shadow: var(--hero-panel-shadow);

  color: var(--hero-title);
  isolation: isolate;
}

/* soft blur layer */
.zenithdeck-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(circle at 88% 28%, rgba(162, 64, 255, 0.18), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(177, 112, 255, 0.18), transparent 32%);
}

/* subtle grid / rings */
.zenithdeck-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--hero-grid-opacity);

  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px),
    radial-gradient(circle at 86% 25%, transparent 0 95px, var(--hero-grid-line) 96px 97px, transparent 98px 155px, var(--hero-grid-line) 156px 157px, transparent 158px);

  background-size: 38px 38px, 38px 38px, auto;

  mask-image:
    radial-gradient(circle at 0% 100%, black 0 19%, transparent 35%),
    radial-gradient(circle at 100% 100%, black 0 16%, transparent 32%),
    radial-gradient(circle at 86% 25%, black 0 28%, transparent 42%);
  mask-composite: add;
}

/* big count circle */
.zenithdeck-floating-count {
  position: absolute;
  top: 58px;
  right: 92px;
  width: 235px;
  height: 235px;
  border-radius: 999px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--hero-count-bg);
  box-shadow:
    0 0 90px rgba(166, 72, 255, 0.24),
    inset 0 0 0 1px var(--hero-count-ring);

  isolation: isolate;
}

.zenithdeck-floating-count::before,
.zenithdeck-floating-count::after {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: inherit;
  border: 1px solid var(--hero-count-ring);
  opacity: 0.75;
}

.zenithdeck-floating-count::after {
  inset: -72px;
  opacity: 0.38;
}

#zenithdeck-count-big {
  font-size: clamp(5rem, 8vw, 7.7rem);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: -7px;

  background: var(--hero-count-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 18px 36px rgba(138, 43, 226, 0.22);
}

.zenithdeck-floating-label {
  margin-top: 22px;
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: 9px;
  color: var(--hero-count-label);
}

/* heading */
.zenithdeck-heading {
  max-width: 980px;
  position: relative;
  z-index: 2;

  font-size: clamp(3.8rem, 7vw, 6.1rem);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: -5px;
  color: var(--hero-title);
}

.zenithdeck-heading-glow {
  display: block;
  background: var(--hero-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zenithdeck-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin-top: 28px;

  color: var(--hero-copy);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
}

/* metric cards */
.zenithdeck-metrics {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  margin-top: 56px;
}

.zenithdeck-metric {
  min-height: 82px;
  padding: 22px 24px;
  border-radius: 22px;

  background: var(--hero-metric-bg);
  border: 1px solid var(--hero-metric-border);

  box-shadow:
    0 16px 40px rgba(138, 43, 226, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.zenithdeck-metric:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.34);
  box-shadow:
    0 22px 50px rgba(138, 43, 226, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.zenithdeck-metric strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 950;
  color: var(--hero-metric-title);
}

.zenithdeck-metric span {
  display: block;
  margin-top: 11px;
  font-size: 0.82rem;
  font-weight: 950;
  color: var(--hero-metric-label);
}

/* responsive */
@media (max-width: 1050px) {
  .zenithdeck-panel {
    padding: 52px 34px 32px;
  }

  .zenithdeck-floating-count {
    position: relative;
    top: auto;
    right: auto;
    width: 170px;
    height: 170px;
    margin-left: auto;
    margin-bottom: 18px;
  }

  #zenithdeck-count-big {
    font-size: 5.2rem;
  }

  .zenithdeck-floating-label {
    font-size: 0.85rem;
    letter-spacing: 6px;
  }

  .zenithdeck-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .zenithdeck-frame {
    padding: 0 14px;
  }

  .zenithdeck-panel {
    min-height: auto;
    padding: 34px 22px 24px;
    border-radius: 24px;
  }

  .zenithdeck-heading {
    font-size: clamp(2.6rem, 13vw, 4rem);
    letter-spacing: -3px;
  }

  .zenithdeck-copy {
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .zenithdeck-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .zenithdeck-floating-count {
    width: 135px;
    height: 135px;
  }

  #zenithdeck-count-big {
    font-size: 4.1rem;
    letter-spacing: -4px;
  }
}

/* =========================
   AUTH POPUP — REPDATABASE
========================= */

body.auth-lock {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999999999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(138,43,226,0.22), transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(255,90,191,0.12), transparent 35%),
    rgba(3, 0, 8, 0.78);
  backdrop-filter: blur(14px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(460px, 94vw);
  border-radius: 30px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(138,43,226,0.22), transparent 55%),
    radial-gradient(100% 80% at 100% 100%, rgba(255,90,191,0.10), transparent 55%),
    linear-gradient(180deg, rgba(28,12,45,0.96), rgba(12,5,22,0.98));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 35px 100px rgba(0,0,0,0.55),
    0 0 50px rgba(138,43,226,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.22s ease;
}

.auth-card button,
.auth-card input,
.auth-card label {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.auth-modal.open .auth-card {
  transform: translateY(0) scale(1);
}

.auth-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(35px);
  opacity: 0.42;
  pointer-events: none;
}

.auth-glow-one {
  top: -70px;
  right: -60px;
  background: rgba(138,43,226,0.75);
}

.auth-glow-two {
  bottom: -90px;
  left: -60px;
  background: rgba(255,90,191,0.35);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
  transition: 0.22s ease;
  z-index: 2;
}

.auth-close:hover {
  transform: translateY(-2px);
  background: rgba(138,43,226,0.20);
  color: #fff;
  box-shadow: 0 0 24px rgba(138,43,226,0.22);
}

.auth-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.auth-logo-dot {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--main-gradient);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 16px 35px rgba(138,43,226,0.35);
}

.auth-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.auth-card h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.66);
  line-height: 1.65;
  font-size: 0.94rem;
  margin: 0 0 20px;
  max-width: 360px;
}

.auth-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 18px;
}

.auth-tab {
  height: 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font-weight: 900;
  transition: 0.22s ease;
}

.auth-tab.active {
  background: var(--main-gradient);
  color: #fff;
  box-shadow: 0 12px 28px rgba(138,43,226,0.28);
}

.auth-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field > span {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.auth-input-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 12px;
  transition: 0.22s ease;
}

.auth-input-wrap:focus-within {
  border-color: rgba(138,43,226,0.55);
  box-shadow: 0 0 0 5px rgba(138,43,226,0.12);
  background: rgba(255,255,255,0.075);
}

.auth-input-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(138,43,226,0.16);
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.auth-input-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-input-wrap input::placeholder {
  color: rgba(255,255,255,0.32);
}

.auth-password-toggle {
  border: none;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.78);
  border-radius: 10px;
  height: 34px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.auth-password-toggle:hover {
  background: rgba(138,43,226,0.18);
  color: #fff;
}

.auth-hint {
  margin-top: -2px;
  color: rgba(255,255,255,0.48);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-primary-btn,
.auth-secondary-btn,
.auth-danger-btn {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 950;
  font-size: 0.95rem;
  transition: 0.24s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-primary-btn {
  margin-top: 4px;
  background: var(--main-gradient);
  color: #fff;
  box-shadow:
    0 16px 35px rgba(138,43,226,0.28),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.auth-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(138,43,226,0.36),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.auth-secondary-btn {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.08);
}

.auth-secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.auth-danger-btn {
  background: rgba(255,80,80,0.12);
  color: #ff8b8b;
  border: 1px solid rgba(255,80,80,0.18);
}

.auth-danger-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,80,80,0.18);
}

.auth-btn-loader {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  display: none;
  animation: authSpin 0.75s linear infinite;
}

.auth-primary-btn.is-loading .auth-btn-loader {
  display: inline-block;
}

.auth-primary-btn.is-loading .auth-btn-text {
  opacity: 0.75;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-signed-in {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.auth-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,255,120,0.18), rgba(138,43,226,0.22));
  border: 1px solid rgba(255,255,255,0.08);
  color: #00ff7b;
  font-size: 2rem;
  font-weight: 950;
  margin-bottom: 4px;
}

.auth-signed-title {
  font-size: 1.3rem;
  font-weight: 950;
}

.auth-signed-email {
  color: rgba(255,255,255,0.62);
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-word;
}

.auth-message {
  position: relative;
  z-index: 1;
  display: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 700;
}

.auth-message.show {
  display: block;
}

.auth-message.success {
  color: #9dffc8;
  background: rgba(0,255,120,0.10);
  border: 1px solid rgba(0,255,120,0.16);
}

.auth-message.error {
  color: #ffabab;
  background: rgba(255,80,80,0.10);
  border: 1px solid rgba(255,80,80,0.16);
}

#user-center-toggle.is-logged-in {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Light theme support */
body.light-theme .auth-backdrop {
  background:
    radial-gradient(circle at 20% 10%, rgba(138,43,226,0.16), transparent 35%),
    rgba(247,243,255,0.72);
}

body.light-theme .auth-card {
  color: #17121f;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(138,43,226,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,255,0.98));
  border: 1px solid rgba(138,43,226,0.14);
  box-shadow: 0 35px 100px rgba(50,25,90,0.18);
}

.auth-logo-clean {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

body.light-theme .auth-kicker,
body.light-theme .auth-subtitle,
body.light-theme .auth-field > span,
body.light-theme .auth-hint,
body.light-theme .auth-signed-email {
  color: rgba(23,18,31,0.58);
}

body.light-theme .auth-tabs,
body.light-theme .auth-input-wrap,
body.light-theme .auth-secondary-btn {
  background: rgba(138,43,226,0.06);
  border-color: rgba(138,43,226,0.12);
}

body.light-theme .auth-input-wrap input {
  color: #17121f;
}

body.light-theme .auth-input-wrap input::placeholder {
  color: rgba(23,18,31,0.34);
}

body.light-theme .auth-close,
body.light-theme .auth-password-toggle {
  background: rgba(138,43,226,0.08);
  color: #17121f;
}

body.light-theme .auth-secondary-btn {
  color: #17121f;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-card h2 {
    font-size: 1.65rem;
  }

  .auth-logo-dot {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .auth-input-wrap,
  .auth-primary-btn,
  .auth-secondary-btn,
  .auth-danger-btn {
    height: 50px;
  }
}

/* === ONLY ZENITHDECK PANEL BACKGROUND UPGRADE === */

.zenithdeck-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(circle at 82% 24%, rgba(160, 70, 255, 0.34), transparent 28%),
    radial-gradient(circle at 14% 85%, rgba(138, 43, 226, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(20, 5, 38, 0.98), rgba(39, 10, 70, 0.92));

  border: 1px solid rgba(190, 120, 255, 0.22);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    0 0 55px rgba(138, 43, 226, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* glow uvnitř panelu */
.zenithdeck-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(circle at 88% 28%, rgba(177, 89, 255, 0.32), transparent 24%),
    radial-gradient(circle at 6% 100%, rgba(118, 35, 210, 0.26), transparent 31%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.035) 45%, transparent 72%);
}

/* grid + kruhy jen v panelu */
.zenithdeck-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;

  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px),
    radial-gradient(circle at 86% 25%, transparent 0 92px, rgba(195,130,255,0.25) 94px 96px, transparent 98px),
    radial-gradient(circle at 86% 25%, transparent 0 138px, rgba(195,130,255,0.15) 140px 142px, transparent 144px),
    radial-gradient(circle at 86% 25%, transparent 0 184px, rgba(195,130,255,0.09) 186px 188px, transparent 190px);

  background-size:
    38px 38px,
    38px 38px,
    100% 100%,
    100% 100%,
    100% 100%;
}

/* trochu lepší orb okolo čísla */
.zenithdeck-floating-count {
  background:
    radial-gradient(circle, rgba(162, 72, 255, 0.22) 0%, rgba(138,43,226,0.08) 55%, transparent 73%);

  box-shadow:
    0 0 80px rgba(138,43,226,0.22),
    inset 0 0 0 1px rgba(200,140,255,0.20);
}

.zenithdeck-floating-count::before,
.zenithdeck-floating-count::after {
  border-color: rgba(200,140,255,0.18);
}

/* glass boxy dole */
.zenithdeck-metric {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.032));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 35px rgba(0,0,0,0.16);
}

.zenithdeck-metric:hover {
  transform: translateY(-4px);
  border-color: rgba(190,120,255,0.32);
  box-shadow:
    0 22px 55px rgba(138,43,226,0.16),
    inset 0 1px 0 rgba(255,255,255,0.13);
}

/* === ODSTRANĚNÍ VŠECH ČTVERCŮ A KRUHŮ V ZENITHDECK PANELU === */

/* odstraní grid + kruhy z panel overlay */
.zenithdeck-panel::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}

/* odstraní kruhový glow kolem čísla */
.zenithdeck-floating-count {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* odstraní velké ring kruhy okolo čísla */
.zenithdeck-floating-count::before,
.zenithdeck-floating-count::after {
  content: none !important;
  display: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.zenithdeck-floating-count {
  right: 130px; /* větší číslo = posune se víc doleva */
  width: 260px;
}

#zenithdeck-count-big {
  display: inline-block;
  padding-right: 0.08em;
  letter-spacing: -3px;
}

.zenithdeck-floating-count {
  right: 130px;
  width: 270px;
  height: 270px;
  padding-bottom: 12px;
}

#zenithdeck-count-big {
  line-height: 1;
  padding-bottom: 4px;
}

.zenithdeck-floating-label {
  line-height: 1.25;
  margin-top: 8px;
}

/* === MODAL SPEC CARDS - same background as product-info === */
.spec-card {
  position: relative;
  overflow: visible;

  background: rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(255,255,255,0.025);

  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}

.spec-card:hover,
.spec-card:focus-within {
  z-index: 20;
}

.spec-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.075),
    rgba(255,255,255,0.015) 45%,
    rgba(138,43,226,0.035)
  );

  opacity: 0.75;
}

.spec-card > * {
  position: relative;
  z-index: 1;
}

.spec-info {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.55);
  cursor: help;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  transition: 0.2s ease;
}

.spec-info::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: max-content;
  max-width: 230px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(11, 4, 24, 0.96);
  box-shadow: 0 14px 35px rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.84);
  font-size: 0.74rem;
  line-height: 1.45;
  font-style: normal;
  font-weight: 700;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: 0.18s ease;
}

.spec-info::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  right: 7px;
  width: 9px;
  height: 9px;
  background: rgba(11, 4, 24, 0.96);
  border-left: 1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.10);
  opacity: 0;
  transform: translateY(-4px) rotate(45deg);
  pointer-events: none;
  transition: 0.18s ease;
}

.spec-info:hover,
.spec-info:focus-visible {
  background: rgba(168,85,247,0.16);
  border-color: rgba(168,85,247,0.30);
  color: #fff;
  outline: none;
}

.spec-info:hover::after,
.spec-info:hover::before,
.spec-info:focus-visible::after,
.spec-info:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.spec-info-card::before,
.spec-info-card::after {
  content: none;
}

.spec-popover {
  position: absolute;
  top: 42px;
  right: 12px;
  z-index: 30;
  width: 276px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background:
    linear-gradient(135deg, rgba(43, 15, 65, 1), rgba(30, 9, 48, 1)),
    #1e0930;
  color: #ffffff;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: left;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.spec-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 14px;
  height: 14px;
  background: #2a0f40;
  border-left: 1px solid rgba(168, 85, 247, 0.22);
  border-top: 1px solid rgba(168, 85, 247, 0.22);
  transform: rotate(45deg);
}

.spec-info-card:hover + .spec-popover,
.spec-info-card:focus-visible + .spec-popover,
.spec-popover:hover {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spec-popover-title,
.batch-tier-title {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.spec-popover-copy,
.batch-tier-copy {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.batch-tier-copy {
  margin-bottom: 14px;
}

.rating-popover-bar {
  position: relative;
  z-index: 1;
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.rating-popover-bar span {
  display: block;
  width: var(--rating-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd000, #a855f7);
  box-shadow: 0 0 18px rgba(255, 208, 0, 0.24);
}

.rating-popover-labels {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.7rem;
  font-weight: 900;
}

.batch-tier-scale {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
}

.batch-tier-scale span {
  height: 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.batch-tier-scale span:nth-child(2) {
  background: rgba(255, 255, 255, 0.12);
}

.batch-tier-scale span:nth-child(3) {
  background: rgba(255, 255, 255, 0.12);
}

.batch-tier-popover.is-budget .batch-tier-scale span:nth-child(1),
.batch-tier-popover.is-good .batch-tier-scale span:nth-child(2),
.batch-tier-popover.is-top .batch-tier-scale span:nth-child(3) {
  background: linear-gradient(90deg, #8a2be2, #c084fc);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.42);
}

.batch-tier-labels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.batch-tier-budget,
.batch-tier-good,
.batch-tier-top {
  color: rgba(255, 255, 255, 0.42);
}

.batch-tier-good {
  position: relative;
}

.batch-tier-top {
  text-align: right;
}

.batch-tier-popover.is-budget .batch-tier-budget,
.batch-tier-popover.is-good .batch-tier-good,
.batch-tier-popover.is-top .batch-tier-top {
  color: #ffffff;
}


/* === MODAL DIRECT LINK BUTTON - same glass style as product-info === */
#modal-direct-btn {
  position: relative;
  overflow: hidden;

  width: 64px;
  min-width: 64px;
  height: 64px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(255,255,255,0.025);

  color: white;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.25s ease;
  padding: 0 !important;
  margin-top: 0 !important;
}

#modal-direct-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.075),
    rgba(255,255,255,0.015) 45%,
    rgba(138,43,226,0.035)
  );

  opacity: 0.75;
}

#modal-direct-btn > * {
  position: relative;
  z-index: 1;
}

#modal-direct-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    0 10px 25px rgba(138,43,226,0.18);
}

/* === MODAL TAGS - glass style like product-info === */
.modal-meta .meta-tag {
  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(255,255,255,0.025);

  color: rgba(255,255,255,0.78);
  border-radius: 12px;
}

.modal-meta .meta-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.075),
    rgba(255,255,255,0.015) 45%,
    rgba(138,43,226,0.035)
  );

  opacity: 0.75;
}

.modal-meta .meta-tag {
  z-index: 1;
}

/* =========================================================
   NEW FINDS TOP HERO — VAULT
========================================================= */

.vault-hero {
  width: min(var(--site-width), calc(100% - var(--site-side-gap)));
  margin: 0 auto 18px;
  position: relative;
  isolation: isolate;
}

.vault-hero-card {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 26px;
  padding: 34px 36px;
  position: relative;

  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.28), transparent 34%),
    linear-gradient(180deg, rgba(28, 9, 47, 0.96), rgba(12, 4, 22, 0.98));

  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 22px 58px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.vault-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 80%);
  opacity: 0.35;
}

.vault-hero-left,
.vault-hero-right {
  position: relative;
  z-index: 2;
}

.vault-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vault-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  margin-bottom: 20px;

  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.vault-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00ff26;
  box-shadow: 0 0 10px rgba(0,255,38,0.62);
  animation: vault-live-pulse 2s ease-in-out infinite;
}

@keyframes vault-live-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0,255,38,0.55);
  }

  50% {
    transform: scale(1.16);
    box-shadow: 0 0 12px rgba(0,255,38,0.78), 0 0 18px rgba(0,255,38,0.18);
  }
}

.vault-eyebrow[data-status="loading"] .vault-live-dot {
  background: #facc15;
  box-shadow: 0 0 10px rgba(250,204,21,0.62);
}

.vault-eyebrow[data-status="offline"] {
  color: #fecaca;
  border-color: rgba(239,68,68,0.34);
  background:
    linear-gradient(135deg, rgba(239,68,68,0.18), rgba(127,29,29,0.16)),
    rgba(255,255,255,0.055);
}

.vault-eyebrow[data-status="offline"] .vault-live-dot {
  background: #ff2d2d;
  box-shadow: 0 0 12px rgba(255,45,45,0.72);
  animation-name: vault-offline-pulse;
}

@keyframes vault-offline-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255,45,45,0.55);
  }

  50% {
    transform: scale(1.16);
    box-shadow: 0 0 18px rgba(255,45,45,0.95);
  }
}

body.light-theme .vault-eyebrow[data-status="offline"] {
  color: #991b1b !important;
  border-color: rgba(239,68,68,0.24) !important;
  background:
    linear-gradient(135deg, rgba(239,68,68,0.12), rgba(254,202,202,0.28)),
    rgba(255,255,255,0.82) !important;
}

.vault-title {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -4.5px;
  font-weight: 950;
}

.vault-title span {
  display: block;
  margin-top: 7px;
  background: linear-gradient(135deg, #8A2BE2 0%, #c77dff 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vault-copy {
  max-width: 700px;
  margin-top: 18px;
  color: rgba(255,255,255,0.68);
  font-size: 0.94rem;
  line-height: 1.65;
  font-weight: 600;
}

.vault-actions {
  width: min(660px, 100%);
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 50px;
  gap: 10px;
}

.vault-search {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  padding: 0 16px;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.vault-search-icon {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.55);
  font-weight: 900;
}

.vault-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--main-font);
  font-size: 0.9rem;
  font-weight: 750;
}

.vault-search input::placeholder {
  color: rgba(255,255,255,0.48);
}

.vault-icon-btn,
.vault-fav-btn {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.075);
  color: #fff;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-icon-btn:hover,
.vault-fav-btn:hover {
  transform: translateY(-4px);
  background: rgba(138,43,226,0.22);
  box-shadow: 0 18px 45px rgba(138,43,226,0.22);
}

.vault-icon-btn img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: invert(1);
}

.vault-fav-btn {
  font-size: 1.16rem;
  font-weight: 900;
  color: #ff4f87;
}

.vault-hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-count-card {
  flex: 1;
  min-height: 180px;
  border-radius: 22px;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 50% 0%, rgba(138,43,226,0.32), transparent 55%),
    rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.11);
}

.vault-count-card::after {  
  display: none;
  content: none;
}

.vault-count-label {
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.82rem, 1.05vw, 1.05rem);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: center;
}

#zenithdeck-count-big {
  margin-top: 0;
  font-size: clamp(4.7rem, 7vw, 7.3rem);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: -6px;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #c77dff 45%, #8A2BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}

.vault-count-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.vault-count-sub {
  display: none;
}

.vault-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vault-mini-card {
  min-height: 70px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  transition: 0.25s ease;
}

.vault-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138,43,226,0.34);
  box-shadow: 0 18px 40px rgba(138,43,226,0.16);
}

.vault-mini-card strong {
  display: block;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 950;
  line-height: 1;
}

.vault-mini-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.54);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

/* light theme support */
body.light-theme .vault-hero-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,255,0.98)) !important;
  border-color: rgba(138,43,226,0.16) !important;
  box-shadow: 0 22px 55px rgba(50,25,90,0.12) !important;
}

body.light-theme .vault-title {
  color: #17121f !important;
}

body.light-theme .vault-copy,
body.light-theme .vault-count-label,
body.light-theme .vault-count-sub,
body.light-theme .vault-mini-card span,
body.light-theme .vault-search input::placeholder {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .vault-eyebrow,
body.light-theme .vault-search,
body.light-theme .vault-icon-btn,
body.light-theme .vault-fav-btn,
body.light-theme .vault-count-card,
body.light-theme .vault-mini-card {
  background: rgba(255,255,255,0.76) !important;
  border-color: rgba(138,43,226,0.13) !important;
}

body.light-theme .vault-search input,
body.light-theme .vault-mini-card strong {
  color: #17121f !important;
}

/* responsive */
@media (max-width: 820px) {
  .vault-hero-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .vault-hero-right {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vault-count-card {
    min-height: 160px;
  }
}

@media (max-width: 640px) {
  .vault-hero {
    width: calc(100% - 24px);
    margin-bottom: 18px;
  }

  .vault-hero-card {
    padding: 24px 16px;
    border-radius: 26px;
  }

  .vault-title {
    letter-spacing: -3px;
    line-height: 0.96;
  }

  .vault-copy {
    font-size: 0.92rem;
    margin-top: 20px;
  }

  .vault-actions {
    grid-template-columns: 1fr 44px 44px;
    gap: 9px;
  }

  .vault-search,
  .vault-icon-btn,
  .vault-fav-btn {
    height: 44px;
    border-radius: 13px;
  }

  .vault-search {
    padding: 0 13px;
  }

  .vault-search-icon {
    display: none;
  }

  .vault-mini-grid {
    grid-template-columns: 1fr;
  }

  #zenithdeck-count-big {
    font-size: clamp(4.2rem, 22vw, 6.2rem);
    letter-spacing: -4px;
  }
}


/* =========================================================
   FULL LIGHT THEME PATCH
   aktivace: body.light-theme
========================================================= */

body.light-theme {
  --primary-purple: #8A2BE2;
  --dark-bg: #f7f3ff;
  --text-color: #17121f;
  --main-gradient: linear-gradient(135deg, #8A2BE2 0%, #b56cff 100%);
  --nav-bg: rgba(255,255,255,0.82);
  --footer-bg: #f2ecfb;
  --panel-border: rgba(138,43,226,0.18);
  --card-bg: #ffffff;
  --agent-accent: #8A2BE2;
  --agent-gradient: linear-gradient(135deg, #8A2BE2 0%, #b56cff 100%);

  background:
    radial-gradient(circle at 18% 0%, rgba(138,43,226,0.12), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(181,108,255,0.10), transparent 28%),
    #f7f3ff !important;
  color: #17121f !important;
}

/* GLOBAL TEXT */
body.light-theme,
body.light-theme * {
  color-scheme: light;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .finds-favorite-title,
body.light-theme .zenithdeck-heading,
body.light-theme .footer-logo-text,
body.light-theme .filters-h1,
body.light-theme #modal-title,
body.light-theme .similar-title,
body.light-theme .user-tab-panel h3,
body.light-theme .stats-title,
body.light-theme .nebula-meta h2,
body.light-theme .user-center-brand,
body.light-theme .settings-header {
  color: #17121f !important;
}

body.light-theme p,
body.light-theme .finds-favorite-subtitle,
body.light-theme .footer-description,
body.light-theme .zenithdeck-copy,
body.light-theme .about-product-section p,
body.light-theme .filters-sub,
body.light-theme .user-tab-panel p,
body.light-theme .nebula-meta p,
body.light-theme .stat-label,
body.light-theme .legal-copyright,
body.light-theme .user-tag {
  color: rgba(23,18,31,0.68) !important;
}

/* PAGE / LAYOUT */
body.light-theme .content-area,
body.light-theme .modal-content-full,
body.light-theme .dashboard-wrapper {
  background: transparent !important;
  color: #17121f !important;
}

/* NAVBAR */
body.light-theme .nav-container {
  background: rgba(255,255,255,0.84) !important;
  border: 1px solid rgba(138,43,226,0.18) !important;
  box-shadow:
    0 18px 40px rgba(50,25,90,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(16px);
}

body.light-theme .logo-text {
  color: #17121f !important;
}

body.light-theme .logo-text span {
  color: #8A2BE2 !important;
}

body.light-theme .nav-link,
body.light-theme .nav-dropdown-btn,
body.light-theme .btn-icon {
  color: rgba(23,18,31,0.68) !important;
}

body.light-theme .nav-utility-btn {
  color: rgba(23,18,31,0.68);
  border: 1px solid rgba(138,43,226,0.18)
}

body.light-theme #user-center-toggle.is-logged-in {
  background: transparent;
  border-color: rgba(138,43,226,0.18);
  color: rgba(23,18,31,0.68);
}

body.light-theme .nav-link:hover,
body.light-theme .nav-utility-btn:hover {
  color: #17121f !important;
  background: rgba(138,43,226,0.10) !important;
}

body.light-theme .nav-dropdown-btn:hover {
  color: #17121f !important;
}

body.light-theme .nav-link.active {
  color: #fff !important;
  background: var(--main-gradient) !important;
  box-shadow: 0 8px 18px rgba(138,43,226,0.28) !important;
}

body.light-theme .mobile-menu-btn span {
  background: #17121f !important;
}

/* SEARCH */
body.light-theme .nav-search,
body.light-theme .finds-search {
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(138,43,226,0.18) !important;
  box-shadow: 0 14px 32px rgba(50,25,90,0.08) !important;
}

body.light-theme #nav-search-input,
body.light-theme .finds-search input {
  color: #17121f !important;
}

body.light-theme #nav-search-input::placeholder,
body.light-theme .finds-search input::placeholder {
  color: rgba(23,18,31,0.42) !important;
}

body.light-theme .nav-search-clear {
  background: rgba(138,43,226,0.08) !important;
  color: #17121f !important;
}

body.light-theme #nav-search-input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.light-theme .nav-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 0 10px;
}

body.light-theme #nav-search-input {
  flex: 1;
  background: transparent;
}

body.light-theme #nav-search-clear {
  background: transparent;
  border: none;
  color: #888;
  padding: 0 6px;
}

body.light-theme .nav-suggest {
  background: rgba(255,255,255,0.96) !important;
  border-color: rgba(138,43,226,0.14) !important;
  box-shadow: 0 18px 45px rgba(50,25,90,0.16) !important;
}

body.light-theme .nav-suggest-item:hover,
body.light-theme .nav-suggest-item.active {
  background: rgba(138,43,226,0.08) !important;
}

body.light-theme .nav-suggest-title {
  color: #17121f !important;
}

body.light-theme .nav-suggest-sub,
body.light-theme .nav-suggest-empty,
body.light-theme .nav-suggest-empty-sub {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .nav-suggest-thumb {
  background: #f2ecfb !important;
  border-color: rgba(138,43,226,0.12) !important;
}

/* DROPDOWNS */
body.light-theme .nav-dropdown-menu {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    rgba(255,255,255,0.97) !important;
  border: 1px solid rgba(138,43,226,0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 20px 50px rgba(50,25,90,0.14) !important;
}

body.light-theme .nav-dropdown-item,
body.light-theme .nav-dropdown-item-topandbottom {
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme .nav-dropdown-item:hover,
body.light-theme .nav-dropdown-item-topandbottom:hover {
  background: rgba(124, 58, 237, 0.10) !important;
  color: #17121f !important;
}

/* HERO / ZENITH */
body.light-theme .zenithdeck-panel {
  background:
    radial-gradient(circle at 88% 18%, rgba(138,43,226,0.16), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,244,255,0.96)) !important;
  border-color: rgba(138,43,226,0.16) !important;
  box-shadow:
    0 22px 55px rgba(50,25,90,0.12),
    inset 0 1px 0 rgba(255,255,255,0.88) !important;
}

body.light-theme .zenithdeck-heading {
  color: #17121f !important;
}

body.light-theme .zenithdeck-heading-glow {
  background: linear-gradient(180deg, #8A2BE2 0%, #4B0082 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-theme .zenithdeck-metric {
  background: rgba(255,255,255,0.78) !important;
  border-color: rgba(138,43,226,0.12) !important;
}

body.light-theme .zenithdeck-metric strong {
  color: #17121f !important;
}

body.light-theme .zenithdeck-floating-label {
  color: rgba(23,18,31,0.62) !important;
}

/* PRODUCT CARDS */
body.light-theme .product-card,
body.light-theme .similar-card {
  background:
    linear-gradient(180deg, #ffffff, #fbf8ff) !important;
  border: 1px solid rgba(138,43,226,0.3) !important;
  box-shadow:
    0 18px 42px rgba(50,25,90,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
  color: #17121f !important;
}

body.light-theme .product-card:hover,
body.light-theme .similar-card:hover {
  border-color: rgba(138,43,226,0.28) !important;
  box-shadow:
    0 24px 54px rgba(50,25,90,0.14),
    0 0 24px rgba(138,43,226,0.10) !important;
}

body.light-theme .product-image,
body.light-theme .similar-img {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(138,43,226,0.12), transparent 60%),
    #f4effb !important;
  border-bottom: 1px solid rgba(138,43,226,0.10) !important;
}

body.light-theme .product-title,
body.light-theme .similar-name {
  color: #17121f !important;
}

body.light-theme .product-actions::before {
  background: rgba(138,43,226,0.12) !important;
}

body.light-theme .product-price,
body.light-theme .similar-price,
body.light-theme .nav-suggest-price,
body.light-theme .modal-price-large {
  color: #16a34a !important;
}

body.light-theme .meta-tag,
body.light-theme .modal-meta .meta-tag,
body.light-theme .similar-meta .meta-tag {
  background: rgba(138,43,226,0.08) !important;
  border: 1px solid rgba(138,43,226,0.12) !important;
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme .modal-option-title {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .modal-options {
  border-top-color: rgba(23,18,31,0.10) !important;
}

body.light-theme .modal-option-pill {
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(23,18,31,0.12) !important;
  color: rgba(23,18,31,0.78) !important;
  box-shadow:
    0 8px 18px rgba(50,25,90,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

body.light-theme .modal-color-pill.has-image:hover {
  background: rgba(138,43,226,0.10) !important;
  border-color: rgba(138,43,226,0.28) !important;
}

body.light-theme .modal-color-swatch {
  border-color: rgba(23,18,31,0.18) !important;
}

body.light-theme .variant-lightbox-title {
  color: #17121f !important;
}

body.light-theme .product-badge,
body.light-theme .similar-badge,
body.light-theme .zenithdeck-pill,
body.light-theme .footer-label {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.88), rgba(75, 0, 130, 0.82)),
    rgba(255, 255, 255, 0.2) !important;
}

/* BUTTONS */
body.light-theme .btn-view-full,
body.light-theme .filters-btn-primary,
body.light-theme .nebula-cta {
  background: var(--main-gradient) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(138,43,226,0.24) !important;
}



body.light-theme .filters-btn-ghost,
body.light-theme .favorites-clear-btn,
body.light-theme .close-modal,
body.light-theme .filters-x,
body.light-theme .settings-close,
body.light-theme .user-center-close,
body.light-theme #modal-direct-btn,
body.light-theme .qc-close,
body.light-theme .qc-nav,
body.light-theme .similar-navbtn,
body.light-theme .profile-edit-toggle,
body.light-theme .profile-menu-btn,
body.light-theme .avatar-change-btn,
body.light-theme .avatar-reset-btn {
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid rgba(138,43,226,0.16) !important;
  color: #17121f !important;
}

body.light-theme .filters-btn {
  background: #ffffff !important;
  border: 1px solid rgba(138,43,226,0.16) !important;
  color: #17121f !important;
}

body.light-theme .favorites-btn {
  background: #ffffff !important;
  border: 1px solid rgba(138,43,226,0.16) !important;
  color: #4B0082 !important;
}

body.light-theme .filters-btn:hover,
body.light-theme .filters-btn-ghost:hover,
body.light-theme .favorites-clear-btn:hover,
body.light-theme .close-modal:hover,
body.light-theme .filters-x:hover,
body.light-theme .settings-close:hover,
body.light-theme .user-center-close:hover,
body.light-theme #modal-direct-btn:hover,
body.light-theme .similar-navbtn:hover {
  background: rgba(138,43,226,0.10) !important;
  color: #17121f !important;
  box-shadow: 0 10px 24px rgba(138,43,226,0.12) !important;
}

body.light-theme .favorites-btn:hover {
  background: rgba(138,43,226,0.10) !important;
  color: #ff5abf !important;
  box-shadow: 0 10px 24px rgba(138,43,226,0.12) !important;
}

body.light-theme .btn-like {
  background: rgba(138,43,226,0.10) !important;
  color: #4B0082 !important;
}

body.light-theme .btn-like:hover,
body.light-theme .btn-like.active,
body.light-theme .btn-like.is-favorite {
  background: rgba(255,90,191,0.14) !important;
  color: #ff4d88 !important;
}

/* MODAL */
body.light-theme .modal {
  background:
    radial-gradient(circle at 20% 0%, rgba(138,43,226,0.12), transparent 35%),
    #f7f3ff !important;
  color: #17121f !important;
}


body.light-theme .spec-card,
body.light-theme .about-product-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,247,255,0.96)) !important;
  border: 1px solid rgba(138,43,226,0.14) !important;
  box-shadow:
    0 20px 50px rgba(50,25,90,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85) !important;
  color: #17121f !important;
}

body.light-theme .modal-image-wrapper {
  background: #f4effb !important;
  border: 1px solid rgba(138,43,226,0.12) !important;
}

body.light-theme .spec-label,
body.light-theme .qc-count,
body.light-theme .qc-title,
body.light-theme .about-kicker {
  color: rgba(23,18,31,0.55) !important;
}

body.light-theme .spec-info {
  background: rgba(138,43,226,0.08);
  border-color: rgba(138,43,226,0.16);
  color: rgba(23,18,31,0.56);
}

body.light-theme .spec-info::after {
  background: rgba(255,255,255,0.98);
  border-color: rgba(138,43,226,0.14);
  box-shadow: 0 14px 35px rgba(50,25,90,0.14);
  color: rgba(23,18,31,0.78);
}

body.light-theme .spec-info::before {
  background: rgba(255,255,255,0.98);
  border-color: rgba(138,43,226,0.14);
}

body.light-theme .modal-loader {
  background: rgba(247,243,255,0.92) !important;
}

body.light-theme .modal-loader-inner {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(138,43,226,0.14) !important;
}

body.light-theme .modal-loader-text {
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme .modal-spinner {
  border-color: rgba(138,43,226,0.18) !important;
  border-top-color: #8A2BE2 !important;
}

body.light-theme .direct-link-icon {
  filter: invert(1);
}

/* QC */
body.light-theme .qc-thumb {
  background: #f4effb !important;
  border-color: rgba(138,43,226,0.14) !important;
}

body.light-theme .qc-thumb:hover {
  background: #ede4fb !important;
}

body.light-theme .qc-lightbox {
  background: rgba(0,0,0,0.78) !important;
}

body.light-theme .qc-lightbox-inner {
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* FILTERS */
body.light-theme .filters-panel.active {
  backdrop-filter: blur(8px);
}

body.light-theme .filters-overlay {
  background: rgba(245,239,255,0.60) !important;
}

body.light-theme .filters-shell,
body.light-theme .filters-card,
body.light-theme .filters-card-price {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(250,247,255,0.98)) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #17121f !important;
  box-shadow: 0 26px 70px rgba(50,25,90,0.16) !important;
}

body.light-theme .filters-card,
body.light-theme .filters-card-price {
  background: transparent !important;
  border-color: rgba(138,43,226,0.12) !important;
  box-shadow: none !important;
}

body.light-theme .filters-top,
body.light-theme .filters-bottom,
body.light-theme .filters-card-head {
  border-color: rgba(138,43,226,0.12) !important;
}

body.light-theme .filters-card-title {
  background: transparent !important;
  color: rgba(23,18,31,0.82) !important;
}

body.light-theme .filters-cat-item,
body.light-theme .filters-brand-item,
body.light-theme .filters-pillbtn,
body.light-theme .filters-sortopt,
body.light-theme .filters-rating-btn {
  background: rgba(138,43,226,0.055) !important;
  border: 1px solid rgba(138,43,226,0.12) !important;
  color: #17121f !important;
}

body.light-theme .filters-cat-item:hover,
body.light-theme .filters-brand-item:hover,
body.light-theme .filters-pillbtn:hover,
body.light-theme .filters-sortopt:hover,
body.light-theme .filters-rating-btn:hover {
  background: rgba(138,43,226,0.10) !important;
}

body.light-theme .filters-cat-item.active,
body.light-theme .filters-brand-item.active,
body.light-theme .filters-pillbtn.active,
body.light-theme .filters-sortopt.active,
body.light-theme .filters-rating-btn.active,
body.light-theme .filters-qbadge {
  background: var(--main-gradient) !important;
  color: #fff !important;
}

body.light-theme .filters-cat-count,
body.light-theme .filters-brand-count,
body.light-theme .filters-quality-labels,
body.light-theme .filters-to {
  color: rgba(23,18,31,0.55) !important;
}

body.light-theme .filters-searchinput-inline {
  background: #ffffff !important;
  border-color: rgba(138,43,226,0.16) !important;
  color: #17121f !important;
}

/* INPUTS / FORMS */
body.light-theme input,
body.light-theme textarea,
body.light-theme select,
body.light-theme .profile-edit-field input,
body.light-theme .pref-item select {
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(138,43,226,0.16) !important;
  color: #17121f !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: rgba(23,18,31,0.42) !important;
}

body.light-theme label,
body.light-theme .profile-edit-field span,
body.light-theme .pref-item label {
  color: rgba(23,18,31,0.62) !important;
}

/* SETTINGS DRAWER */
body.light-theme #settings-overlay,
body.light-theme .settings-overlay {
  background:
    radial-gradient(60% 60% at 20% 15%, rgba(138,43,226,0.12), transparent 60%),
    rgba(247,243,255,0.56) !important;
}

body.light-theme #settings-dropdown,
body.light-theme .settings-dropdown {
  background:
    radial-gradient(80% 60% at 10% 0%, rgba(138,43,226,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,255,0.98)) !important;
  border-left: 1px solid rgba(138,43,226,0.16) !important;
  color: #17121f !important;
  box-shadow: -30px 0 80px rgba(50,25,90,0.16) !important;
}

body.light-theme #settings-dropdown .settings-drawer-top {
  border-bottom-color: rgba(138,43,226,0.12) !important;
}

body.light-theme #settings-dropdown .settings-label,
body.light-theme .settings-label {
  color: rgba(23,18,31,0.55) !important;
}

body.light-theme #settings-dropdown .selection-box,
body.light-theme .selection-box {
  background: rgba(255,255,255,0.78) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #17121f !important;
}

body.light-theme #settings-dropdown .selection-box:hover,
body.light-theme .selection-box:hover {
  background: rgba(138,43,226,0.08) !important;
}

body.light-theme #settings-dropdown .agent-icon-small,
body.light-theme #settings-dropdown .option-icon,
body.light-theme #settings-dropdown .item-icon-box,
body.light-theme .agent-icon-small,
body.light-theme .option-icon,
body.light-theme .item-icon-box {
  background: rgba(138,43,226,0.08) !important;
  border-color: rgba(138,43,226,0.12) !important;
  color: #17121f !important;
}

body.light-theme #settings-dropdown .selected-preference,
body.light-theme #settings-dropdown .selected-preference-currency,
body.light-theme .selected-preference,
body.light-theme .selected-preference-currency {
  color: #17121f !important;
}

body.light-theme .currency-option-item,
body.light-theme .agent-option-item,
body.light-theme .theme-option-item,
body.light-theme .language-option-item {
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme .currency-option-item:hover,
body.light-theme .agent-option-item:hover,
body.light-theme .theme-option-item:hover,
body.light-theme .language-option-item:hover {
  background: rgba(138,43,226,0.10) !important;
  color: #17121f !important;
}

body.light-theme .list-symbol {
  background: rgba(138,43,226,0.10) !important;
  color: #17121f !important;
}

body.light-theme .list-label {
  color: #17121f !important;
}

/* USER CENTER */
body.light-theme .user-center-overlay {
  background:
    radial-gradient(60% 60% at 20% 15%, rgba(138,43,226,0.12), transparent 60%),
    rgba(247,243,255,0.72) !important;
}

body.light-theme .user-center-shell {
  background:
    radial-gradient(80% 60% at 10% 0%, rgba(138,43,226,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8f4ff) !important;
  color: #17121f !important;
}

body.light-theme .user-center-topbar,
body.light-theme .user-center-footer,
body.light-theme .user-center-sidebar {
  background: rgba(255,255,255,0.60) !important;
  border-color: rgba(138,43,226,0.12) !important;
}

body.light-theme .user-center-content {
  background: rgba(255,255,255,0.28) !important;
}

body.light-theme .user-profile-card,
body.light-theme .user-panel-card,
body.light-theme .user-tab,
body.light-theme .stat-card,
body.light-theme .stats-shell,
body.light-theme .pref-item   {
  background: rgba(255,255,255,0.84) !important;
  border: 1px solid rgba(138,43,226,0.14) !important;
  color: #17121f !important;
  box-shadow: 0 14px 32px rgba(50,25,90,0.08) !important;
}

body.light-theme .user-tab {
  color: rgba(23,18,31,0.70) !important;
}

body.light-theme .user-tab:hover {
  background: rgba(138,43,226,0.08) !important;
  color: #17121f !important;
}

body.light-theme .user-tab.active {
  background: var(--main-gradient) !important;
  color: #fff !important;
}

body.light-theme .user-center-logout {
  background: rgba(255,80,80,0.08) !important;
  border-color: rgba(255,80,80,0.18) !important;
  color: #b42323 !important;
}

body.light-theme .user-center-logout:hover {
  background: rgba(255,80,80,0.14) !important;
  color: #7f1d1d !important;
}

body.light-theme .user-profile-card h3,
body.light-theme .user-name,
body.light-theme .stat-value {
  color: #17121f !important;
}

/* FAVORITES */

body.light-theme .favorites-empty-icon {
  background: rgba(255,90,191,0.12) !important;
  color: #ff4d88 !important;
  border-color: rgba(255,90,191,0.18) !important;
}

body.light-theme .favorites-empty-state {
  background: rgba(255,255,255,0.66) !important;
  border-color: rgba(138,43,226,0.16) !important;
}

/* FOOTER */
body.light-theme .footer-main,
body.light-theme .footer-main-favorite {
  border-top-color: rgba(138,43,226,0.12) !important;
  background: transparent !important;
}

body.light-theme .footer-card {
  background: transparent !important;
}

body.light-theme .footer-logo-text {
  color: #17121f !important;
}

body.light-theme .footer-logo-text span {
  color: #8A2BE2 !important;
}

body.light-theme .link-item,
body.light-theme .legal-copyright {
  color: rgba(23,18,31,0.66) !important;
}

body.light-theme .link-item:hover,
body.light-theme .legal-item {
  color: #8A2BE2 !important;
}

body.light-theme .footer-legal {
  border-top-color: rgba(138,43,226,0.12) !important;
}

/* AGENT WARNING / TOAST */
body.light-theme .agent-warning,
body.light-theme .favorite-toast {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(138,43,226,0.18) !important;
  color: #17121f !important;
  box-shadow: 0 16px 38px rgba(50,25,90,0.12) !important;
}

body.light-theme .agent-warning-title,
body.light-theme .agent-warning-sub {
  color: #17121f !important;
}

body.light-theme .agent-warning-sub {
  opacity: 0.65 !important;
}

body.light-theme .agent-warning-close {
  background: rgba(138,43,226,0.08) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #17121f !important;
}

body.light-theme .agent-warning-eyebrow {
  color: #7a20bd !important;
}

body.light-theme .agent-warning-benefits,
body.light-theme .agent-warning-keep {
  color: rgba(23,18,31,0.62) !important;
}

body.light-theme .agent-warning-keep:hover {
  color: #17121f !important;
}

/* NEBULA / DASHBOARD */
body.light-theme .nebula-shell,
body.light-theme .nebula-core,
body.light-theme .nebula-item {
  background: rgba(255,255,255,0.84) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #17121f !important;
  box-shadow: 0 14px 36px rgba(50,25,90,0.09) !important;
}

body.light-theme .nebula-link,
body.light-theme .nebula-score {
  background: rgba(138,43,226,0.08) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #8A2BE2 !important;
}

body.light-theme .nebula-flags span {
  background: rgba(138,43,226,0.08) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #8A2BE2 !important;
}

/* ICON FILTERS */
body.light-theme .filters-icon-img,
body.light-theme .filters-badge img {
  filter: none !important;
}

/* SCROLLBARS */
body.light-theme * {
  scrollbar-color: rgba(138,43,226,0.45) transparent;
}

body.light-theme ::-webkit-scrollbar-track {
  background: transparent !important;
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(138,43,226,0.55), rgba(181,108,255,0.75)) !important;
  border-radius: 999px !important;
}

/* KEEP DARK WHERE IT MAKES SENSE */
body.light-theme .qc-lightbox,
body.light-theme .qc-more-overlay {
  color: #fff !important;
}

body.light-theme .qc-lightbox * {
  color: inherit;
}

/* Finds UX controls */
.finds-toolbar {
  position: relative;
  z-index: 60;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 36px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(18, 5, 32, 0.74);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.2);
}

.finds-toolbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.finds-results-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(42, 23, 56, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 8px 18px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.finds-results-meta::before {
  content: none;
}

.finds-results-meta strong {
  min-width: 22px;
  font-size: 0.94rem;
  line-height: 1;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
}

.finds-results-meta span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-filter-pills {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filter-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 0 14px;
  border: 1px solid rgba(181, 108, 255, 0.36);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.38), rgba(87, 24, 140, 0.42)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.active-filter-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(213, 179, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(154, 62, 255, 0.48), rgba(87, 24, 140, 0.5)),
    rgba(255, 255, 255, 0.06);
}

.active-filter-pill span:last-child {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  line-height: 1;
}

.finds-sortbar {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.075);
  white-space: nowrap;
}

.finds-sortbar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finds-sortbar select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.finds-sort-trigger {
  min-width: 168px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.finds-sort-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.86;
  transition: transform 0.18s ease;
}

.finds-sort-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-2px);
}

.finds-sort-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 9999;
  width: 230px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(45, 18, 68, 0.96), rgba(18, 5, 32, 0.96)),
    rgba(18, 5, 32, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.finds-sort-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.finds-sort-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.finds-sort-option:first-child {
  margin-top: 0;
}

.finds-sort-option:last-child {
  margin-bottom: 0;
}

.finds-sort-option:hover,
.finds-sort-option.active {
  color: #ffffff;
  background: rgba(138, 43, 226, 0.28);
}

.finds-sort-option.active::after {
  content: "";
  width: 7px;
  height: 12px;
  border-right: 2px solid #d8b4fe;
  border-bottom: 2px solid #d8b4fe;
  transform: rotate(45deg);
}

.finds-empty-state {
  width: min(620px, 100%);
  margin: 18px auto 42px;
  padding: 34px 22px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 4, 20, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.finds-empty-state[hidden] {
  display: none;
}

.finds-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--main-gradient);
  font-size: 1.5rem;
  font-weight: 900;
}

.finds-empty-state h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.35rem;
}

.finds-empty-state p {
  max-width: 420px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

body.light-theme .finds-toolbar,
body.light-theme .finds-empty-state {
  border-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body.light-theme .finds-results-meta,
body.light-theme .finds-sortbar {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.86);
}

body.light-theme .finds-results-meta {
  border-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.8)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 18px rgba(15, 23, 42, 0.06);
}

body.light-theme .finds-results-meta strong,
body.light-theme .finds-empty-state h2,
body.light-theme .finds-sort-trigger {
  color: #111827;
}

body.light-theme .finds-results-meta strong {
  color: #111827;
}

body.light-theme .finds-results-meta span,
body.light-theme .finds-sortbar span,
body.light-theme .finds-empty-state p {
  color: #64748b;
}

body.light-theme .active-filter-pill {
  color: #4c1d95;
  border-color: rgba(124, 58, 237, 0.22);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.09)),
    rgba(255, 255, 255, 0.7);
}

body.light-theme .active-filter-pill:hover {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.12)),
    rgba(255, 255, 255, 0.84);
}

body.light-theme .active-filter-pill span:last-child {
  color: #4c1d95;
  background: rgba(124, 58, 237, 0.12);
}

body.light-theme .finds-sort-menu {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(138,43,226,0.16);
  box-shadow: 0 20px 50px rgba(50,25,90,0.14);
}

body.light-theme .finds-sort-option {
  color: rgba(23,18,31,0.72);
}

body.light-theme .finds-sort-option:hover,
body.light-theme .finds-sort-option.active {
  color: #17121f;
  background: rgba(124, 58, 237, 0.1);
}

@media (max-width: 780px) {
  .products-container {
    padding-bottom: 40px;
  }

  .finds-toolbar {
    flex-direction: column;
    padding: 12px;
    border-radius: 14px;
  }

  .finds-toolbar-left,
  .finds-sortbar {
    width: 100%;
  }

  .finds-results-meta {
    width: 100%;
    justify-content: center;
  }

  .finds-sortbar {
    justify-content: space-between;
  }

  .finds-sort-trigger {
    width: 100%;
    min-width: 0;
  }

  .finds-sort-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .active-filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .active-filter-pill {
    flex: 0 0 auto;
  }

}

/* =========================
   USER CENTER DASHBOARD REFRESH
========================= */

.user-center-body {
  overflow: hidden;
}

.user-center-content {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
}

.user-tab-panel.active {
  min-height: 100%;
}

.dashboard-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 1.8vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stats-shell,
.nebula-shell {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(11, 4, 24, 0.62);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.stats-shell {
  padding: 22px;
  margin: 0;
}

.stats-title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 104px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-items: center;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.035);
  box-shadow: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.28);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.stat-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(168,85,247,0.14);
  border: 1px solid rgba(168,85,247,0.18);
  color: #d8c6ff;
  font-size: 0.8rem;
  font-weight: 950;
}

.stat-value {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 950;
  color: #fff;
}

.stat-label {
  margin-top: 5px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(255,255,255,0.52);
}

.nebula-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.nebula-left,
.nebula-right {
  gap: 20px;
}

.nebula-shell {
  padding: 22px;
}

.nebula-head {
  margin: 0 0 16px;
  gap: 14px;
}

.nebula-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
}

.nebula-head p {
  margin: 5px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.5);
}

.nebula-link {
  height: 36px;
  padding: 0 13px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
  font-weight: 850;
  font-size: 0.8rem;
  transition: 0.2s ease;
}

.nebula-link:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(168,85,247,0.28);
  background: rgba(168,85,247,0.12);
}

.nebula-core,
.nebula-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.032);
  box-shadow: none;
}

.nebula-core {
  min-height: 212px;
  padding: 52px 18px 18px;
}

.nebula-core.is-empty {
  min-height: 150px;
  padding: 14px;
  grid-template-columns: 1fr;
}

.nebula-badge,
.nebula-score {
  top: 14px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

.nebula-badge {
  left: 14px;
  padding: 0 10px;
  background: rgba(168,85,247,0.14);
  border: 1px solid rgba(168,85,247,0.20);
  color: #d8c6ff;
}

.nebula-score {
  right: 14px;
  padding: 0 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.70);
}

.nebula-art {
  width: 132px;
  height: 132px;
  aspect-ratio: 1;
  margin: 0;
  padding: 12px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
}

.nebula-meta {
  max-width: none;
  min-width: 0;
}

.nebula-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.nebula-flags span {
  margin: 0;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.62);
  font-size: 0.68rem;
  line-height: 1.1;
  font-weight: 850;
}

.nebula-meta h2 {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.nebula-cta {
  min-height: 38px;
  margin-top: 15px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(168,85,247,0.25);
  background: rgba(168,85,247,0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: none;
  transition: 0.2s ease;
}

.nebula-cta:hover {
  transform: translateY(-1px);
  background: rgba(168,85,247,0.24);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.nebula-stack {
  gap: 12px;
}

.nebula-item {
  min-height: 142px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 48px 14px 14px;
  transition: 0.2s ease;
}

.nebula-item:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.25);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.nebula-item .nebula-art {
  width: 86px;
  height: 86px;
  padding: 8px;
}

.nebula-item h2 {
  font-size: 0.95rem;
  line-height: 1.25;
}

.nebula-item .nebula-cta {
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.dashboard-empty-state {
  width: 100%;
  min-height: 122px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(168,85,247,0.22);
  background:
    linear-gradient(180deg, rgba(168,85,247,0.055), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.025);
}

.dashboard-empty-title {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 950;
  margin-bottom: 6px;
}

.dashboard-empty-copy {
  max-width: 320px;
  color: rgba(255,255,255,0.50);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dashboard-empty-btn {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(168,85,247,0.24);
  background: rgba(168,85,247,0.14);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  transition: 0.2s ease;
}

.dashboard-empty-btn:hover {
  transform: translateY(-1px);
  background: rgba(168,85,247,0.22);
}

.prefs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pref-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.032);
}

.pref-item label {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.52);
  font-weight: 850;
}

.pref-item select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

body.light-theme .stats-shell,
body.light-theme .nebula-shell {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(138,43,226,0.13) !important;
  box-shadow: 0 18px 42px rgba(50,25,90,0.08) !important;
}

body.light-theme .stats-title,
body.light-theme .nebula-head h3,
body.light-theme .nebula-meta h2,
body.light-theme .stat-value {
  color: #17121f !important;
}

body.light-theme .stats-title,
body.light-theme .nebula-head p,
body.light-theme .stat-label,
body.light-theme .pref-item label {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .stat-card,
body.light-theme .nebula-core,
body.light-theme .nebula-item,
body.light-theme .pref-item {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(138,43,226,0.12) !important;
  box-shadow: none !important;
}

body.light-theme .stat-icon,
body.light-theme .nebula-badge,
body.light-theme .nebula-flags span {
  background: rgba(138,43,226,0.08) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #6d28d9 !important;
}

body.light-theme .nebula-score,
body.light-theme .nebula-link,
body.light-theme .pref-item select {
  background: rgba(138,43,226,0.055) !important;
  border-color: rgba(138,43,226,0.13) !important;
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme .nebula-art {
  background: rgba(138,43,226,0.045) !important;
  border-color: rgba(138,43,226,0.10) !important;
}

body.light-theme .dashboard-empty-state {
  background: rgba(255,255,255,0.66) !important;
  border-color: rgba(138,43,226,0.18) !important;
}

body.light-theme .dashboard-empty-title {
  color: #17121f !important;
}

body.light-theme .dashboard-empty-copy {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .dashboard-empty-btn {
  background: rgba(138,43,226,0.10) !important;
  border-color: rgba(138,43,226,0.18) !important;
  color: #5b21b6 !important;
}

body.light-theme .nebula-cta {
  background: rgba(138,43,226,0.12) !important;
  border-color: rgba(138,43,226,0.20) !important;
  color: #4c1d95 !important;
  box-shadow: none !important;
}

/* QC Checker Integration Styles */
.qc-search-container {
  width: min(var(--site-width), calc(100% - var(--site-side-gap)));
  margin: 0 auto 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.qc-search-row {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 20px auto 0;
}

.qc-input {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0 18px;
  outline: none;
}

.qc-input:focus { border-color: var(--primary-purple); }

.loader-inline {
  display: none;
  margin: 20px auto;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@media (max-width: 1180px) {
  .nebula-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1500px) {
  .dashboard-wrapper {
    padding: 28px 34px 34px;
  }

  .nebula-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(470px, 0.8fr);
  }
}

@media (max-width: 760px) {
  .dashboard-wrapper {
    padding: 16px 14px 20px;
    gap: 16px;
  }

  .stats-grid,
  .prefs-grid {
    grid-template-columns: 1fr;
  }

  .nebula-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nebula-core,
  .nebula-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .nebula-core {
    min-height: 184px;
    padding: 50px 14px 14px;
  }

  .nebula-art {
    width: 92px;
    height: 92px;
  }

  .nebula-meta h2 {
    font-size: 1rem;
  }
}

.nav-utility-btn-admin {
  text-decoration: none;
  border-color: rgba(181, 108, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.34), rgba(181, 108, 255, 0.18)),
    rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

a.nav-utility-btn {
  text-decoration: none;
}

#admin-stats-nav[hidden],
#admin-stats-user-link[hidden] {
  display: none !important;
}

.nav-utility-btn-admin:hover {
  border-color: rgba(213, 179, 255, 0.76);
  box-shadow: 0 12px 34px rgba(138, 43, 226, 0.22);
}

.user-tab-link {
  text-decoration: none;
  justify-content: center;
  border-color: rgba(181, 108, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(181, 108, 255, 0.09)),
    rgba(255, 255, 255, 0.04);
}

body.light-theme .nav-utility-btn-admin {
  color: #4c1d95;
  border-color: rgba(124, 58, 237, 0.24);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.84);
}

body.light-theme .user-tab-link {
  color: #4c1d95;
  border-color: rgba(124, 58, 237, 0.2);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.06)),
    rgba(255, 255, 255, 0.72);
}

@media (max-width: 460px) {
  .nebula-core,
  .nebula-item {
    grid-template-columns: 1fr;
  }

  .nebula-art,
  .nebula-item .nebula-art {
    width: 100%;
    max-width: 150px;
    height: auto;
    justify-self: center;
  }

  .nebula-meta {
    text-align: center;
  }

  .nebula-flags {
    justify-content: center;
  }
}

/* =========================
   USER CENTER FAVORITES REFRESH
========================= */

#tab-favorites.active {
  min-height: 100%;
}

#tab-favorites .user-panel-card {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: clamp(18px, 1.8vw, 28px);
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#tab-favorites .user-panel-card:hover {
  border-color: transparent;
  box-shadow: none;
}

#tab-favorites .user-panel-head {
  margin: 0 0 18px;
  padding: 22px;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(11, 4, 24, 0.62);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

#tab-favorites .user-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 950;
}

.user-panel-subtitle {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
  line-height: 1.45;
}

#tab-favorites .favorites-clear-btn {
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
  font-size: 0.8rem;
  font-weight: 900;
}

#tab-favorites .favorites-clear-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,90,191,0.12);
  border-color: rgba(255,90,191,0.24);
  color: #ff9bd4;
}

#account-favorites-grid.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.account-favorite-card {
  min-width: 0;
  min-height: 150px;
  padding: 14px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(11, 4, 24, 0.62);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: 0.2s ease;
}

.account-favorite-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.25);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

.account-favorite-thumb {
  width: 112px;
  height: 112px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.account-favorite-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-favorite-main {
  min-width: 0;
}

.account-favorite-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.account-favorite-tags span {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.62);
  font-size: 0.68rem;
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
}

.account-favorite-main h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-favorite-meta {
  margin-top: 7px;
  color: #18ff65;
  font-size: 0.95rem;
  font-weight: 950;
}

.account-favorite-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.account-favorite-open,
.account-favorite-remove {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition: 0.2s ease;
}

.account-favorite-open {
  border: 1px solid rgba(168,85,247,0.25);
  background: rgba(168,85,247,0.16);
  color: #fff;
}

.account-favorite-remove {
  border: 1px solid rgba(255,90,191,0.18);
  background: rgba(255,90,191,0.08);
  color: #ff9bd4;
}

.account-favorite-open:hover,
.account-favorite-remove:hover {
  transform: translateY(-1px);
}

#account-favorites-grid .product-card {
  height: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(11, 4, 24, 0.62);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

#account-favorites-grid .product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.25);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

#account-favorites-grid .product-image {
  aspect-ratio: 1 / 0.88;
  min-height: 190px;
  padding: 12px;
  background: rgba(255,255,255,0.035);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

#account-favorites-grid .product-image img {
  padding: 22px;
}

#account-favorites-grid .product-info {
  flex: 1;
  padding: 16px;
  gap: 10px;
  background: transparent;
}

#account-favorites-grid .product-title {
  font-size: 0.98rem;
  line-height: 1.25;
}

#account-favorites-grid .meta-tag,
#account-favorites-grid .product-rating {
  font-size: 0.68rem;
}

#account-favorites-grid .product-actions-row {
  gap: 10px;
  margin-top: auto;
}

#account-favorites-grid .btn-view-full,
#account-favorites-grid .btn-like {
  min-height: 42px;
  height: 42px;
  border-radius: 10px;
}

#account-favorites-grid .btn-like {
  width: 42px;
  min-width: 42px;
}

#tab-favorites .favorites-empty-state {
  min-height: 260px;
  margin: 0;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(168,85,247,0.22);
  background:
    linear-gradient(180deg, rgba(168,85,247,0.055), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.025);
}

#tab-favorites .favorites-empty-title {
  font-size: 0;
}

#tab-favorites .favorites-empty-title::before {
  content: "No favorites yet";
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 950;
}

#tab-favorites .favorites-empty-sub {
  max-width: 340px;
  font-size: 0;
  line-height: 1.5;
}

#tab-favorites .favorites-empty-sub::before {
  content: "Explore finds and save your best picks by clicking the heart icon.";
  color: rgba(255,255,255,0.50);
  font-size: 0.82rem;
}

body.light-theme #tab-favorites .user-panel-head,
body.light-theme #account-favorites-grid .product-card {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(138,43,226,0.13) !important;
  box-shadow: 0 18px 42px rgba(50,25,90,0.08) !important;
}

body.light-theme #tab-favorites .user-panel-head h2,
body.light-theme #tab-favorites .favorites-empty-title::before {
  color: #17121f !important;
}

body.light-theme .user-panel-subtitle,
body.light-theme #tab-favorites .favorites-empty-sub::before {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme #tab-favorites .favorites-clear-btn {
  background: rgba(138,43,226,0.055) !important;
  border-color: rgba(138,43,226,0.13) !important;
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme #tab-favorites .favorites-empty-state {
  background: rgba(255,255,255,0.66) !important;
  border-color: rgba(138,43,226,0.18) !important;
}

body.light-theme #account-favorites-grid .product-image {
  background: rgba(138,43,226,0.045) !important;
  border-color: rgba(138,43,226,0.10) !important;
}

body.light-theme .account-favorite-card {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(138,43,226,0.13) !important;
  box-shadow: 0 18px 42px rgba(50,25,90,0.08) !important;
}

body.light-theme .account-favorite-thumb {
  background: rgba(138,43,226,0.045) !important;
  border-color: rgba(138,43,226,0.10) !important;
}

body.light-theme .account-favorite-tags span {
  background: rgba(138,43,226,0.08) !important;
  border-color: rgba(138,43,226,0.14) !important;
  color: #6d28d9 !important;
}

body.light-theme .account-favorite-main h3 {
  color: #17121f !important;
}

body.light-theme .account-favorite-open {
  background: rgba(138,43,226,0.12) !important;
  border-color: rgba(138,43,226,0.20) !important;
  color: #4c1d95 !important;
}

body.light-theme .account-favorite-remove {
  background: rgba(255,90,191,0.10) !important;
  border-color: rgba(255,90,191,0.18) !important;
  color: #be185d !important;
}

@media (max-width: 760px) {
  #tab-favorites .user-panel-card {
    padding: 16px 14px 20px;
  }

  #tab-favorites .user-panel-head {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  #tab-favorites .favorites-clear-btn {
    width: 100%;
  }

  #account-favorites-grid.products-grid {
    grid-template-columns: 1fr;
  }

  .account-favorite-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .account-favorite-thumb {
    width: 92px;
    height: 92px;
  }
}

/* User Center dashboard refresh */
.legacy-account-dashboard { display: none !important; }
.user-tab { justify-content: space-between; }
.user-tab > b {
  min-width: 24px; height: 24px; display: inline-grid; place-items: center;
  padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.62); font-size: .7rem;
}
.account-dashboard { gap: 18px; }
.account-welcome-card, .account-dashboard-card, .account-stat-card {
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 100% 0%, rgba(138,43,226,.13), transparent 42%), linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.024)), rgba(11,4,24,.68);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}
.account-welcome-card {
  min-height: 150px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px; border-radius: 20px;
}
.account-kicker { color: #bd73ff; font-size: .7rem; font-weight: 950; letter-spacing: .1em; }
.account-welcome-card h2 { margin: 8px 0 7px; color: #fff; font-size: clamp(1.45rem,2.4vw,2rem); line-height: 1.1; }
.account-welcome-card h2 span { color: #c98aff; }
.account-welcome-card p, .account-card-head p { margin: 0; color: rgba(255,255,255,.5); font-size: .83rem; }
.account-sync-status {
  min-height: 38px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px;
  flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); border-radius: 999px;
  color: rgba(255,255,255,.68); background: rgba(255,255,255,.04); font-size: .76rem; font-weight: 850;
}
.account-sync-status i { width: 8px; height: 8px; border-radius: 50%; background: #ffd34e; box-shadow: 0 0 12px rgba(255,211,78,.5); }
.account-sync-status[data-state="synced"] i { background: #56f39a; box-shadow: 0 0 12px rgba(86,243,154,.5); }
.account-sync-status[data-state="local"] i { background: #9ca3af; box-shadow: none; }
.account-stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.account-stat-card {
  min-width: 0; min-height: 102px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center; gap: 13px; padding: 17px; border-radius: 16px; color: #fff; text-align: left;
}
button.account-stat-card { cursor: pointer; }
button.account-stat-card:hover { transform: translateY(-2px); border-color: rgba(181,108,255,.3); }
.account-stat-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(181,108,255,.2);
  border-radius: 13px; color: #d7b1ff; background: rgba(138,43,226,.14); font-weight: 950;
}
.account-stat-card strong, .account-stat-card small { display: block; }
.account-stat-card strong { overflow: hidden; color: #fff; font-size: 1.15rem; text-overflow: ellipsis; white-space: nowrap; }
.account-stat-card small { margin-top: 4px; color: rgba(255,255,255,.48); }
.account-stat-card > b { color: rgba(255,255,255,.4); }
.account-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: 18px; }
.account-dashboard-card { min-width: 0; padding: 22px; border-radius: 18px; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.account-card-head h3 { margin: 0 0 5px; color: #fff; font-size: 1rem; }
.account-card-head button {
  min-height: 36px; padding: 0 12px; flex: 0 0 auto; border: 1px solid rgba(181,108,255,.2);
  border-radius: 10px; color: #d8b4fe; background: rgba(138,43,226,.11); cursor: pointer; font-size: .76rem; font-weight: 900;
}
.account-product-preview {
  min-height: 154px; display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 16px;
  align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px; background: rgba(255,255,255,.028);
}
.account-product-image, .account-recent-thumb {
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04); cursor: pointer;
}
.account-product-image { width: 128px; height: 128px; padding: 10px; border-radius: 13px; }
.account-product-image img, .account-recent-thumb img { width: 100%; height: 100%; object-fit: contain; }
.account-product-tags, .account-recent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.account-product-tags span, .account-recent-tags span {
  padding: 4px 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px;
  color: rgba(255,255,255,.58); background: rgba(255,255,255,.045); font-size: .64rem; font-weight: 850;
}
.account-product-copy h4 { margin: 0; color: #fff; font-size: 1.05rem; }
.account-product-copy p { margin: 7px 0 12px; color: rgba(255,255,255,.45); font-size: .78rem; line-height: 1.45; }
.account-product-open, .account-recent-open {
  min-height: 35px; padding: 0 12px; border: 1px solid rgba(181,108,255,.22);
  border-radius: 9px; color: #fff; background: rgba(138,43,226,.16); cursor: pointer; font-size: .76rem; font-weight: 900;
}
.account-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-quick-grid a {
  min-height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 14px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 13px; color: #fff;
  background: rgba(255,255,255,.03); text-decoration: none;
}
.account-quick-grid a:hover { transform: translateY(-2px); border-color: rgba(181,108,255,.25); background: rgba(138,43,226,.09); }
.account-quick-grid b { font-size: .86rem; }
.account-quick-grid span { margin-top: 6px; color: rgba(255,255,255,.43); font-size: .7rem; }
.account-preference-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.account-preference-grid > div { min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.03); }
.account-preference-grid small, .account-preference-grid strong { display: block; }
.account-preference-grid small { color: rgba(255,255,255,.44); font-size: .68rem; }
.account-preference-grid strong { margin-top: 6px; overflow: hidden; color: #fff; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
#tab-recent.active { min-height: 100%; }
.account-recent-panel { width: 100%; min-height: 100%; margin: 0; padding: clamp(18px,1.8vw,28px); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#tab-recent .user-panel-head { margin-bottom: 18px; padding: 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(11,4,24,.68); }
.account-recent-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 14px; }
.account-recent-card {
  min-width: 0; display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 14px;
  align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(11,4,24,.68);
}
.account-recent-thumb { width: 108px; height: 108px; padding: 9px; border-radius: 13px; }
.account-recent-main { min-width: 0; }
.account-recent-main h3 { margin: 0; overflow: hidden; color: #fff; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.account-recent-main p { margin: 7px 0 11px; color: #56f39a; font-size: .82rem; font-weight: 900; }
body.light-theme .account-welcome-card, body.light-theme .account-dashboard-card, body.light-theme .account-stat-card,
body.light-theme #tab-recent .user-panel-head, body.light-theme .account-recent-card {
  border-color: rgba(138,43,226,.13) !important; background: rgba(255,255,255,.82) !important;
  box-shadow: 0 18px 42px rgba(50,25,90,.08) !important;
}
body.light-theme .account-welcome-card h2, body.light-theme .account-card-head h3,
body.light-theme .account-stat-card strong, body.light-theme .account-product-copy h4,
body.light-theme .account-preference-grid strong, body.light-theme .account-recent-main h3 { color: #17121f !important; }
body.light-theme .account-welcome-card p, body.light-theme .account-card-head p,
body.light-theme .account-stat-card small, body.light-theme .account-product-copy p,
body.light-theme .account-quick-grid span, body.light-theme .account-preference-grid small { color: rgba(23,18,31,.55) !important; }
body.light-theme .account-product-preview, body.light-theme .account-product-image,
body.light-theme .account-recent-thumb, body.light-theme .account-quick-grid a,
body.light-theme .account-preference-grid > div { border-color: rgba(138,43,226,.11) !important; background: rgba(138,43,226,.04) !important; }
body.light-theme .account-quick-grid a { color: #17121f !important; }
body.light-theme .user-tab > b { color: #6d28d9; background: rgba(138,43,226,.08); }
@media (max-width: 980px) {
  .account-dashboard-grid { grid-template-columns: 1fr; }
  .account-preference-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .account-welcome-card { align-items: flex-start; flex-direction: column; padding: 20px; }
  .account-stats-grid, .account-quick-grid, .account-preference-grid { grid-template-columns: 1fr; }
  .account-card-head { align-items: flex-start; flex-direction: column; }
  .account-product-preview { grid-template-columns: 88px minmax(0,1fr); }
  .account-product-image { width: 88px; height: 88px; }
  .account-recent-grid { grid-template-columns: 1fr; }
  .account-recent-card { grid-template-columns: 88px minmax(0,1fr); }
  .account-recent-thumb { width: 88px; height: 88px; }
}

/* User Center premium visual pass */
.account-dashboard {
  --account-purple: #a855f7;
  --account-violet: #7c3aed;
  --account-green: #56f39a;
  gap: 20px;
  padding: clamp(24px, 2.2vw, 38px);
  background:
    radial-gradient(circle at 12% 8%, rgba(138,43,226,.08), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(92,35,137,.09), transparent 30%);
}

.account-welcome-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: clamp(28px, 3vw, 44px);
  border-color: rgba(185,116,255,.2);
  border-radius: 26px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 35%, rgba(168,85,247,.24), transparent 28%),
    linear-gradient(120deg, rgba(35,12,57,.98), rgba(13,5,25,.98));
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: 0 28px 70px rgba(3,0,10,.34), inset 0 1px rgba(255,255,255,.08);
}

.account-welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #d8a2ff, #8a2be2 60%, #5b21b6);
  box-shadow: 0 0 28px rgba(168,85,247,.65);
}

.account-welcome-copy {
  position: relative;
  z-index: 2;
}

.account-kicker,
.account-card-kicker {
  display: block;
  color: #cf8cff;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .14em;
  line-height: 1;
}

.account-welcome-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  letter-spacing: -.045em;
}

.account-welcome-card h2 span {
  color: transparent;
  background: linear-gradient(90deg, #e0b5ff, #a855f7 68%, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
}

.account-welcome-card p {
  max-width: 590px;
  font-size: .92rem;
  line-height: 1.6;
}

.account-welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: rgba(255,255,255,.48);
  font-size: .72rem;
  font-weight: 750;
}

.account-welcome-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-welcome-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--account-green);
  box-shadow: 0 0 12px rgba(86,243,154,.55);
}

.account-welcome-side {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
}

.account-orbit {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.account-orbit::before,
.account-orbit-ring {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211,164,255,.2);
}

.account-orbit::before {
  inset: 0;
  box-shadow: inset 0 0 35px rgba(138,43,226,.12), 0 0 35px rgba(138,43,226,.13);
}

.account-orbit-ring {
  inset: 13px;
  border-style: dashed;
  animation: account-orbit-spin 18s linear infinite;
}

.account-orbit-ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8a2ff;
  box-shadow: 0 0 16px #a855f7;
}

.account-orbit-core {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221,181,255,.32);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #5b21b6);
  box-shadow: 0 12px 35px rgba(112,32,190,.45);
  font-size: 1.4rem;
  font-weight: 950;
}

@keyframes account-orbit-spin { to { transform: rotate(360deg); } }

.account-sync-status {
  align-self: flex-end;
  min-height: 42px;
  padding-inline: 15px;
  border-color: rgba(255,255,255,.11);
  background: rgba(9,3,18,.55);
  backdrop-filter: blur(12px);
}

.account-stats-grid {
  gap: 16px;
}

.account-stat-card {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.account-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -25px -45px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(168,85,247,.09);
  filter: blur(4px);
}

button.account-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,138,255,.36);
  box-shadow: 0 24px 48px rgba(0,0,0,.25), 0 0 28px rgba(138,43,226,.09);
}

.account-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(168,85,247,.22), rgba(91,33,182,.11));
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.account-stat-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-stat-card strong {
  font-size: 1.5rem;
  letter-spacing: -.025em;
}

.account-stat-card small {
  margin-top: 7px;
  font-size: .73rem;
}

.account-stat-arrow {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  transition: transform .25s ease, background .25s ease;
}

.account-stat-card:hover .account-stat-arrow {
  transform: translateX(3px);
  background: rgba(168,85,247,.14);
}

.account-stat-live {
  position: relative;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid rgba(86,243,154,.14);
  border-radius: 999px;
  color: #78f7ad;
  background: rgba(86,243,154,.07);
  font-size: .57rem;
  font-weight: 950;
  letter-spacing: .07em;
}

.account-dashboard-grid {
  grid-template-columns: minmax(0,1.25fr) minmax(390px,.75fr);
  gap: 20px;
}

.account-dashboard-card {
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.055);
}

.account-card-head {
  margin-bottom: 20px;
}

.account-card-head h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-shadow: none;
}

.account-card-head button {
  min-height: 40px;
  padding-inline: 15px;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease;
}

.account-card-head button:hover {
  transform: translateY(-2px);
  background: rgba(138,43,226,.2);
}

.account-product-preview {
  position: relative;
  min-height: 190px;
  grid-template-columns: 156px minmax(0,1fr);
  gap: 22px;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 100%, rgba(138,43,226,.12), transparent 40%),
    rgba(255,255,255,.027);
}

.account-product-image {
  width: 156px;
  height: 156px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.account-product-image:hover img {
  transform: scale(1.06);
}

.account-product-image img {
  transition: transform .3s ease;
}

.account-product-tags span {
  border-color: rgba(190,124,255,.14);
  color: #c99af2;
  background: rgba(138,43,226,.08);
}

.account-product-copy h4 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.account-product-open {
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #8a2be2, #6815b2);
  box-shadow: 0 10px 24px rgba(103,21,178,.22);
}

.account-quick-grid {
  gap: 12px;
}

.account-quick-grid a {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  padding: 16px;
  overflow: hidden;
  border-radius: 16px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.account-quick-grid a::after {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  right: -30px;
  bottom: -36px;
  border-radius: 50%;
  background: var(--quick-glow, rgba(168,85,247,.16));
  filter: blur(2px);
}

.account-quick-grid a:hover {
  transform: translateY(-4px);
}

.account-quick-grid i {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  color: var(--quick-color, #d8b4fe);
  background: rgba(255,255,255,.045);
  font-style: normal;
  font-size: 1rem;
  font-weight: 950;
}

.account-quick-grid b {
  align-self: end;
  font-size: .85rem;
}

.account-quick-grid span {
  align-self: start;
  margin-top: 5px;
}

.account-quick-grid em {
  position: relative;
  z-index: 2;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(255,255,255,.35);
  font-style: normal;
}

.account-quick-find { --quick-color: #d8b4fe; --quick-glow: rgba(168,85,247,.18); }
.account-quick-convert { --quick-color: #67e8f9; --quick-glow: rgba(34,211,238,.13); }
.account-quick-track { --quick-color: #86efac; --quick-glow: rgba(74,222,128,.13); }
.account-quick-weight { --quick-color: #fcd34d; --quick-glow: rgba(250,204,21,.12); }

.account-preferences-card {
  position: relative;
  overflow: hidden;
}

.account-preferences-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(138,43,226,.11);
  filter: blur(12px);
}

.account-preference-grid {
  position: relative;
  z-index: 2;
  gap: 12px;
}

.account-preference-grid > div {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 15px;
  transition: transform .2s ease, border-color .2s ease;
}

.account-preference-grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(181,108,255,.22);
}

.account-preference-grid i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid rgba(181,108,255,.16);
  border-radius: 12px;
  color: #cda4f7;
  background: rgba(138,43,226,.1);
  font-style: normal;
  font-size: .72rem;
  font-weight: 950;
}

.account-preference-grid span {
  min-width: 0;
}

.account-preference-grid strong {
  font-size: .92rem;
}

body.light-theme .account-welcome-card {
  background:
    linear-gradient(rgba(138,43,226,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,43,226,.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 35%, rgba(168,85,247,.13), transparent 28%),
    linear-gradient(120deg, #fff, #f7f0fc) !important;
  background-size: 38px 38px, 38px 38px, auto, auto !important;
}

body.light-theme .account-welcome-meta,
body.light-theme .account-sync-status {
  color: rgba(23,18,31,.6) !important;
}

body.light-theme .account-sync-status {
  background: rgba(255,255,255,.66) !important;
}

body.light-theme .account-orbit::before,
body.light-theme .account-orbit-ring {
  border-color: rgba(138,43,226,.2);
}

body.light-theme .account-stat-arrow,
body.light-theme .account-quick-grid i {
  border-color: rgba(138,43,226,.12);
  background: rgba(138,43,226,.06);
}

body.light-theme .account-quick-grid em {
  color: rgba(23,18,31,.35);
}

@media (max-width: 1100px) {
  .account-welcome-side { gap: 14px; }
  .account-orbit { width: 88px; height: 88px; }
  .account-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .account-dashboard { padding: 16px 14px 22px; }
  .account-welcome-card { min-height: auto; }
  .account-welcome-side { width: 100%; justify-content: space-between; }
  .account-orbit { display: none; }
  .account-sync-status { align-self: auto; }
  .account-welcome-meta { flex-direction: column; gap: 7px; }
  .account-stat-card { min-height: 106px; }
  .account-product-preview { grid-template-columns: 96px minmax(0,1fr); min-height: 150px; gap: 14px; }
  .account-product-image { width: 96px; height: 96px; }
  .account-quick-grid a { min-height: 92px; }
}

/* User Center workspace shell */
.user-center-overlay {
  background:
    radial-gradient(circle at 16% 12%, rgba(124,58,237,.22), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(168,85,247,.15), transparent 32%),
    rgba(2,0,8,.86);
  backdrop-filter: blur(18px) saturate(1.15);
}

.user-center-modal {
  padding: 18px;
}

.user-center-shell {
  position: relative;
  width: min(1760px, 100%);
  height: calc(100dvh - 36px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(208,164,255,.17);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(124,58,237,.12), transparent 24%),
    linear-gradient(145deg, #0e0619, #07030d 62%, #0c0415);
  box-shadow:
    0 45px 120px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 1px 0 rgba(255,255,255,.08) inset;
}

.user-center-shell::before {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 0 0, rgba(168,85,247,.12), transparent 30%);
  background-size: 48px 48px, 48px 48px, auto;
  opacity: .75;
}

.user-center-topbar {
  position: relative;
  z-index: 5;
  min-height: 82px;
  padding: 0 20px 0 24px;
  border-bottom-color: rgba(255,255,255,.075);
  background: rgba(10,4,18,.72);
  backdrop-filter: blur(20px);
}

.user-center-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
}

.user-center-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(219,178,255,.28);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #a855f7, #5b21b6);
  box-shadow: 0 10px 25px rgba(91,33,182,.35), inset 0 1px rgba(255,255,255,.2);
  font-size: 1.08rem;
  font-weight: 950;
}

.user-center-brand-copy {
  display: grid;
  gap: 3px;
}

.user-center-brand-copy b {
  color: #fff;
  font-size: .88rem;
  letter-spacing: .08em;
}

.user-center-brand-copy small {
  color: rgba(255,255,255,.4);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.user-center-topbar-center {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.35);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.user-center-topbar-center i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a855f7;
}

.user-center-topbar-center strong {
  color: rgba(255,255,255,.72);
  font-size: .68rem;
}

.user-center-close {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1rem;
}

.user-center-body {
  position: relative;
  z-index: 2;
  grid-template-columns: 274px minmax(0,1fr);
  background: transparent;
}

.user-center-sidebar {
  position: relative;
  top: auto;
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
  border-right-color: rgba(255,255,255,.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 36%),
    rgba(8,3,15,.56);
}

.user-profile-card {
  padding: 18px;
  overflow: visible;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(168,85,247,.15), transparent 38%),
    rgba(255,255,255,.03);
  box-shadow: inset 0 1px rgba(255,255,255,.055);
}

.user-profile-card::before {
  display: none;
}

.user-profile-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-width: 1px;
  box-shadow: 0 0 0 5px rgba(138,43,226,.09), 0 14px 30px rgba(0,0,0,.22);
}

.user-profile-status {
  position: absolute;
  top: 62px;
  left: 64px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(86,243,154,.16);
  border-radius: 999px;
  color: #7bf7af;
  background: rgba(7,18,12,.86);
  font-size: .51rem;
  font-weight: 950;
  letter-spacing: .06em;
}

.user-profile-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #56f39a;
  box-shadow: 0 0 8px rgba(86,243,154,.65);
}

.user-profile-card .user-name {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-shadow: none;
}

.user-profile-card .user-tag {
  margin: 4px 0 0;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  line-height: 1.3;
}

.user-profile-tier {
  display: grid;
  gap: 3px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.065);
}

.user-profile-tier span {
  color: #c994f5;
  font-size: .59rem;
  font-weight: 950;
  letter-spacing: .09em;
}

.user-profile-tier small {
  color: rgba(255,255,255,.36);
  font-size: .65rem;
}

.profile-edit-toggle {
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.user-center-nav {
  gap: 7px;
}

.user-center-nav-label {
  margin: 3px 0 4px 10px;
  color: rgba(255,255,255,.28);
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .13em;
}

.user-tab {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: .8rem;
  text-shadow: none;
}

.user-tab::before {
  top: 8px;
  bottom: 8px;
  width: 3px;
}

.user-tab > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;
  color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.025);
  font-style: normal;
}

.user-tab > i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-tab:first-of-type > i svg {
  fill: currentColor;
  stroke: none;
}

.user-tab:hover,
.user-tab.active {
  transform: none;
}

.user-tab.active > i {
  border-color: rgba(191,128,255,.2);
  color: #d9afff;
  background: rgba(138,43,226,.14);
}

.user-tab > b {
  min-width: 22px;
  height: 22px;
  font-size: .62rem;
}

.user-tab-link {
  grid-template-columns: 1fr;
  min-height: 44px;
  text-align: center;
}

.user-center-logout {
  min-height: 44px;
  margin-top: auto;
  border-radius: 13px;
  font-size: .78rem;
}

.user-center-content {
  position: relative;
  height: 100%;
  background:
    radial-gradient(circle at 95% 5%, rgba(138,43,226,.055), transparent 22%),
    rgba(5,2,10,.18);
}

.user-center-content::before {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: 101px 18px 18px 292px;
  border-radius: 0 0 26px 0;
  box-shadow: inset 24px 0 50px rgba(0,0,0,.08);
}

.account-dashboard {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.account-dashboard,
.account-dashboard * {
  text-shadow: none !important;
}

.account-card-head h3,
.account-product-copy h4,
.account-stat-card strong,
.account-preference-grid strong {
  font-family: var(--main-font);
}

.user-center-footer {
  display: none;
}

body.light-theme .user-center-shell {
  border-color: rgba(92,35,137,.13);
  background: linear-gradient(145deg, #f9f6fc, #f1eaf8);
  box-shadow: 0 45px 120px rgba(50,25,90,.2);
}

body.light-theme .user-center-topbar,
body.light-theme .user-center-sidebar {
  border-color: rgba(92,35,137,.1);
  background: rgba(255,255,255,.64);
}

body.light-theme .user-center-brand-copy b,
body.light-theme .user-profile-card .user-name {
  color: #17121f;
}

body.light-theme .user-center-brand-copy small,
body.light-theme .user-center-topbar-center,
body.light-theme .user-profile-card .user-tag,
body.light-theme .user-profile-tier small,
body.light-theme .user-center-nav-label {
  color: rgba(23,18,31,.42);
}

body.light-theme .user-center-topbar-center strong {
  color: rgba(23,18,31,.7);
}

body.light-theme .user-profile-card,
body.light-theme .user-tab {
  border-color: rgba(138,43,226,.09);
  background: rgba(255,255,255,.58);
}

body.light-theme .user-tab > i {
  border-color: rgba(138,43,226,.09);
  color: rgba(23,18,31,.5);
  background: rgba(138,43,226,.04);
}

@media (max-width: 900px) {
  .user-center-modal { padding: 8px; }
  .user-center-shell { height: calc(100dvh - 16px); border-radius: 22px; }
  .user-center-body { display: grid; grid-template-columns: 1fr; overflow: hidden; }
  .user-center-sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr);
    gap: 14px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .user-profile-card { margin: 0; }
  .user-center-nav { grid-template-columns: repeat(3,minmax(0,1fr)); align-content: center; }
  .user-center-nav-label { display: none; }
  .user-center-logout { display: none; }
  .user-center-content::before { display: none; }
}

@media (max-width: 640px) {
  .user-center-modal { padding: 0; }
  .user-center-shell { height: 100dvh; border: 0; border-radius: 0; }
  .user-center-topbar { min-height: 68px; }
  .user-center-topbar-center { display: none; }
  .user-center-brand-mark { width: 38px; height: 38px; }
  .user-center-sidebar { display: block; padding: 10px; }
  .user-profile-card { display: none; }
  .user-center-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .user-tab { min-height: 44px; grid-template-columns: 1fr; justify-items: center; padding: 6px; font-size: .68rem; }
  .user-tab > i { display: none; }
  .user-tab > b { position: absolute; top: 3px; right: 5px; }
}

/* --- PREFERENCE POPUP STYLES --- */
.pref-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 15, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
}
.pref-popup-card {
    position: relative;
    width: min(420px, 94vw);
    background: linear-gradient(180deg, #1c0c2d, #0c0516);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    color: #fff;
}
.pref-popup-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pref-popup-logo {
    width: 54px; height: 54px;
    background: var(--main-gradient);
    border-radius: 14px;
    display: grid; place-items: center;
    font-weight: 950; font-size: 1.5rem;
}
.pref-popup-kicker { font-size: 0.7rem; text-transform: uppercase; opacity: 0.5; font-weight: 900; }
.pref-popup-text { color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }
.pref-popup-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pref-popup-option {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 14px 18px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: 0.2s;
}
.pref-popup-option:hover { background: rgba(138, 43, 226, 0.15); border-color: rgba(138, 43, 226, 0.3); }
.pref-popup-confirm-btn {
    width: 100%; height: 54px; border: none;
    background: var(--main-gradient);
    color: #fff; border-radius: 16px;
    font-weight: 950; cursor: pointer;
    transition: 0.24s;
}
.pref-popup-glow {
    position: absolute; top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: rgba(138, 43, 226, 0.3); filter: blur(40px);
}
/* Light theme adjustments */
body.light-theme .pref-popup-card { background: #fff; color: #111; }
body.light-theme .pref-popup-text { color: #555; }
body.light-theme .pref-popup-option { background: #f5f5f5; color: #111; }

/* --- PREFERENCE POPUP --- */
.pref-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 15, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
}

.pref-popup-card {
    position: relative;
    width: min(420px, 94vw);
    background: linear-gradient(180deg, #1c0c2d, #0c0516);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    color: #fff;
}

.pref-popup-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pref-popup-logo {
    width: 54px; height: 54px;
    background: var(--main-gradient);
    border-radius: 14px;
    display: grid; place-items: center;
    font-weight: 900; font-size: 1.4rem;
}
.pref-popup-kicker { font-size: 0.7rem; text-transform: uppercase; opacity: 0.5; font-weight: 800; letter-spacing: 1px; }
.pref-popup-text { color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }
.pref-popup-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.pref-popup-option {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.04);
    padding: 14px 18px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer; transition: 0.2s;
}

.pref-popup-option:hover { background: rgba(138, 43, 226, 0.15); border-color: rgba(138, 43, 226, 0.3); }
.pref-popup-option input { accent-color: var(--primary-purple); width: 18px; height: 18px; }
.pref-popup-option span { font-weight: 700; font-size: 0.95rem; }

.pref-popup-confirm-btn {
    width: 100%; height: 54px; border: none;
    background: var(--main-gradient);
    color: #fff; border-radius: 16px;
    font-weight: 900; cursor: pointer;
    transition: 0.24s; box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}
.pref-popup-confirm-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.pref-popup-glow {
    position: absolute; top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: rgba(138, 43, 226, 0.3); filter: blur(40px);
    pointer-events: none;
}

.auth-modal {
    z-index: 2147483647;
}

.pref-popup-overlay {
    z-index: 2147483000;
}

body.auth-lock #first-visit-overlay {
    display: none !important;
    pointer-events: none !important;
}

/* Pin account logout to the bottom of the sidebar. */
#user-center-modal .user-center-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#user-center-modal .user-center-nav {
    flex: 0 0 auto;
}

#user-center-modal .user-center-logout {
    margin-top: auto;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    #user-center-modal .user-center-logout {
        margin-top: 12px;
    }
}

/* --- CUSTOM PREFERENCE POPUP STYLES --- */
.pref-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 15, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
}

.pref-popup-card {
    position: relative;
    width: min(420px, 94vw);
    background: linear-gradient(180deg, #1c0c2d, #0c0516);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    color: #fff;
}

.pref-popup-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pref-popup-logo {
    width: 54px; height: 54px;
    background: var(--main-gradient);
    border-radius: 14px;
    display: grid; place-items: center;
    font-weight: 950; font-size: 1.5rem;
}
.pref-popup-kicker { font-size: 0.7rem; text-transform: uppercase; opacity: 0.5; font-weight: 900; }
.pref-popup-text { color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }
.pref-popup-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.pref-popup-option {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 14px 18px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: 0.2s;
}

.pref-popup-option:hover { background: rgba(138, 43, 226, 0.15); border-color: rgba(138, 43, 226, 0.3); }
.pref-popup-option span { font-weight: 700; }

.pref-popup-confirm-btn {
    width: 100%; height: 54px; border: none;
    background: var(--main-gradient);
    color: #fff; border-radius: 16px;
    font-weight: 950; cursor: pointer;
    transition: 0.24s;
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.pref-popup-confirm-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.pref-popup-glow-inner {
    position: absolute; top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: rgba(138, 43, 226, 0.3); filter: blur(40px);
    pointer-events: none;
}

body.light-theme .pref-popup-card { background: #fff; color: #111; border-color: #eee; }
body.light-theme .pref-popup-text { color: #555; }
body.light-theme .pref-popup-option { background: #f5f5f5; color: #111; }

/* --- ENHANCED POPUP STYLES --- */
.pref-popup-section {
    margin-bottom: 20px;
}
.pref-popup-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.pref-popup-select {
    width: 100%;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
body.light-theme .pref-popup-label { color: #888; }
body.light-theme .pref-popup-select { background-color: #f9f9f9; border-color: #ddd; color: #111; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); }

/* Keep auth controls above the first-visit preference overlay. */
.auth-modal {
    z-index: 2147483647;
}

.pref-popup-overlay {
    z-index: 2147483000;
}

body.auth-lock #first-visit-overlay {
    display: none !important;
    pointer-events: none !important;
}

/* First-visit onboarding */
html.pref-popup-lock,
html.pref-popup-lock body {
    overflow: hidden;
}

#first-visit-overlay.pref-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 18% 12%, rgba(138,43,226,.22), transparent 34%),
      radial-gradient(circle at 84% 88%, rgba(181,108,255,.14), transparent 30%),
      rgba(4, 1, 11, .9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity .22s ease;
}

#first-visit-overlay.is-visible {
    opacity: 1;
}

#first-visit-overlay .pref-popup-card {
    width: min(840px, 100%);
    max-height: calc(100dvh - 48px);
    position: relative;
    overflow: auto;
    padding: clamp(24px, 3.5vw, 36px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    color: #fff;
    background:
      linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
      radial-gradient(circle at 95% 0%, rgba(138,43,226,.22), transparent 38%),
      linear-gradient(145deg, rgba(27,10,43,.98), rgba(8,3,16,.99));
    background-size: 42px 42px, 42px 42px, auto, auto;
    box-shadow: 0 35px 100px rgba(0,0,0,.62);
    transform: translateY(16px) scale(.985);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

#first-visit-overlay.is-visible .pref-popup-card {
    transform: translateY(0) scale(1);
}

#first-visit-overlay .pref-popup-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

#first-visit-overlay .pref-popup-glow-one {
    top: -130px;
    right: 8%;
    background: rgba(168,85,247,.28);
}

#first-visit-overlay .pref-popup-glow-two {
    bottom: -160px;
    left: -70px;
    background: rgba(92,35,137,.2);
}

#first-visit-overlay .pref-popup-top,
#first-visit-overlay .pref-popup-brand,
#first-visit-overlay .pref-popup-footer,
#first-visit-overlay .pref-popup-note,
#first-visit-overlay .pref-popup-select-wrap {
    display: flex;
    align-items: center;
}

#first-visit-overlay .pref-popup-top {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    gap: 20px;
}

#first-visit-overlay .pref-popup-brand {
    gap: 16px;
}

#first-visit-overlay .pref-popup-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #a943ff, #6410bd);
    box-shadow: 0 14px 34px rgba(105,25,180,.34);
    font-size: 1.55rem;
    font-weight: 950;
}

#first-visit-overlay .pref-popup-kicker {
    margin-bottom: 5px;
    color: #bd7cff;
    opacity: 1;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .16em;
}

#first-visit-overlay .pref-popup-brand h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1;
    letter-spacing: -.045em;
}

#first-visit-overlay .pref-popup-step {
    padding: 9px 12px;
    border: 1px solid rgba(181,108,255,.2);
    border-radius: 999px;
    color: rgba(255,255,255,.58);
    background: rgba(138,43,226,.08);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .12em;
    white-space: nowrap;
}

#first-visit-overlay .pref-popup-text {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 18px 0 24px;
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    line-height: 1.65;
}

#first-visit-overlay .pref-popup-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#first-visit-overlay .pref-popup-field {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}

#first-visit-overlay .pref-popup-field > span,
#first-visit-overlay .pref-popup-field > legend {
    width: 100%;
    display: grid;
    gap: 4px;
    margin: 0 0 13px;
    padding: 0;
}

#first-visit-overlay .pref-popup-field b {
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
}

#first-visit-overlay .pref-popup-field small {
    color: rgba(255,255,255,.36);
    font-size: .7rem;
    line-height: 1.35;
}

#first-visit-overlay .pref-popup-select-wrap {
    height: 54px;
    gap: 12px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    background: rgba(4,1,11,.54);
    transition: .2s ease;
}

#first-visit-overlay .pref-popup-select-wrap:focus-within {
    border-color: rgba(181,108,255,.68);
    box-shadow: 0 0 0 3px rgba(138,43,226,.13);
}

#first-visit-overlay .pref-popup-select-wrap img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255,255,255,.07);
}

#first-visit-overlay .pref-popup-symbol-wrap > strong {
    min-width: 32px;
    color: #c786ff;
    font-size: 1rem;
    text-align: center;
}

#first-visit-overlay .pref-popup-select {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 28px 0 0;
    border: 0;
    color: #fff;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23bd7cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
    font: inherit;
    font-size: .85rem;
    font-weight: 800;
    outline: 0;
}

#first-visit-overlay .pref-popup-select option {
    color: #fff;
    background: #170922;
}

#first-visit-overlay .pref-popup-dropdown {
    position: relative;
}

#first-visit-overlay .pref-popup-field:has(.pref-popup-dropdown.open) {
    position: relative;
    z-index: 200;
    border-color: rgba(181,108,255,.25);
}

#first-visit-overlay .pref-popup-dropdown-trigger {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    color: #fff;
    background: #10051d;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#first-visit-overlay .pref-popup-dropdown-trigger:hover,
#first-visit-overlay .pref-popup-dropdown.open .pref-popup-dropdown-trigger {
    border-color: rgba(181,108,255,.5);
    background: #170925;
}

#first-visit-overlay .pref-popup-dropdown.open .pref-popup-dropdown-trigger {
    box-shadow: 0 0 0 3px rgba(138,43,226,.12);
}

#first-visit-overlay .pref-popup-dropdown-icon,
#first-visit-overlay .pref-popup-dropdown-option img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 9px;
    object-fit: contain;
    background: rgba(255,255,255,.07);
}

#first-visit-overlay .pref-popup-dropdown-symbol,
#first-visit-overlay .pref-popup-dropdown-option > span {
    width: 32px;
    flex: 0 0 32px;
    color: #c786ff;
    font-size: .75rem;
    font-weight: 900;
    text-align: center;
}

#first-visit-overlay .pref-popup-dropdown-value {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #fff;
    font-size: .84rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#first-visit-overlay .pref-popup-dropdown-caret {
    color: #bd7cff;
    font-size: 1rem;
    transition: transform .2s ease;
}

#first-visit-overlay .pref-popup-dropdown.open .pref-popup-dropdown-caret {
    transform: rotate(180deg);
}

#first-visit-overlay .pref-popup-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 300;
    max-height: 230px;
    display: grid;
    gap: 4px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(181,108,255,.25);
    border-radius: 14px;
    background: #10051d;
    box-shadow: 0 22px 55px rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

#first-visit-overlay .pref-popup-dropdown.open .pref-popup-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#first-visit-overlay .pref-popup-dropdown-menu::-webkit-scrollbar {
    display: block;
    width: 5px;
}

#first-visit-overlay .pref-popup-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

#first-visit-overlay .pref-popup-dropdown-menu::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(181,108,255,.35);
}

#first-visit-overlay .pref-popup-dropdown-option {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255,255,255,.68);
    background: #10051d;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
}

#first-visit-overlay .pref-popup-dropdown-option:hover {
    color: #fff;
    background: rgba(181,108,255,.1);
}

#first-visit-overlay .pref-popup-dropdown-option.selected {
    border-color: rgba(181,108,255,.25);
    color: #fff;
    background: linear-gradient(135deg, rgba(138,43,226,.26), rgba(181,108,255,.08));
}

#first-visit-overlay .pref-popup-dropdown-option strong {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: inherit;
    font-size: .79rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#first-visit-overlay .pref-popup-dropdown-option i {
    color: #63f7a4;
    font-size: .72rem;
    font-style: normal;
    opacity: 0;
}

#first-visit-overlay .pref-popup-dropdown-option.selected i {
    opacity: 1;
}

#first-visit-overlay .pref-popup-theme-field {
    min-inline-size: 0;
}

#first-visit-overlay .pref-popup-themes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#first-visit-overlay .pref-popup-theme-option {
    min-width: 0;
    cursor: pointer;
}

#first-visit-overlay .pref-popup-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#first-visit-overlay .pref-popup-theme-option > span {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    color: rgba(255,255,255,.58);
    background: rgba(4,1,11,.48);
    transition: .2s ease;
}

#first-visit-overlay .pref-popup-theme-option i {
    color: #bd7cff;
    font-size: 1rem;
    font-style: normal;
}

#first-visit-overlay .pref-popup-theme-option b {
    color: inherit;
    font-size: .74rem;
}

#first-visit-overlay .pref-popup-theme-option input:checked + span {
    border-color: rgba(181,108,255,.5);
    color: #fff;
    background: linear-gradient(135deg, rgba(138,43,226,.3), rgba(181,108,255,.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#first-visit-overlay .pref-popup-theme-option input:focus-visible + span {
    outline: 2px solid #bd7cff;
    outline-offset: 2px;
}

#first-visit-overlay .pref-popup-footer {
    position: relative;
    z-index: 0;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 19px;
    border-top: 1px solid rgba(255,255,255,.08);
}

#first-visit-overlay .pref-popup-note {
    gap: 10px;
}

#first-visit-overlay .pref-popup-note > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #63f7a4;
    background: rgba(86,243,154,.09);
    font-weight: 950;
}

#first-visit-overlay .pref-popup-note p {
    display: grid;
    gap: 2px;
    margin: 0;
}

#first-visit-overlay .pref-popup-note strong {
    color: rgba(255,255,255,.8);
    font-size: .75rem;
}

#first-visit-overlay .pref-popup-note small {
    color: rgba(255,255,255,.34);
    font-size: .68rem;
}

#first-visit-overlay .pref-popup-confirm-btn {
    width: auto;
    min-width: 220px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #9b35f5, #6811c9);
    box-shadow: 0 16px 34px rgba(93,18,165,.3);
    font-size: .84rem;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

#first-visit-overlay .pref-popup-confirm-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Keep the onboarding dark and readable even when the saved site theme is light. */
body.light-theme #first-visit-overlay {
    color-scheme: dark;
}

body.light-theme #first-visit-overlay .pref-popup-card {
    color: #fff !important;
    border-color: rgba(255,255,255,.12) !important;
    background:
      linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
      radial-gradient(circle at 95% 0%, rgba(138,43,226,.22), transparent 38%),
      linear-gradient(145deg, rgba(27,10,43,.98), rgba(8,3,16,.99)) !important;
    background-size: 42px 42px, 42px 42px, auto, auto !important;
}

body.light-theme #first-visit-overlay .pref-popup-brand h2,
body.light-theme #first-visit-overlay .pref-popup-field b {
    color: #fff !important;
}

body.light-theme #first-visit-overlay .pref-popup-text {
    color: rgba(255,255,255,.55) !important;
}

body.light-theme #first-visit-overlay .pref-popup-field small,
body.light-theme #first-visit-overlay .pref-popup-note small {
    color: rgba(255,255,255,.36) !important;
}

body.light-theme #first-visit-overlay .pref-popup-note strong {
    color: rgba(255,255,255,.8) !important;
}

body.light-theme #first-visit-overlay .pref-popup-field {
    border-color: rgba(255,255,255,.08) !important;
    background: rgba(255,255,255,.035) !important;
}

body.light-theme #first-visit-overlay .pref-popup-select-wrap {
    border-color: rgba(255,255,255,.1) !important;
    background: rgba(4,1,11,.54) !important;
}

body.light-theme #first-visit-overlay .pref-popup-select {
    border: 0 !important;
    color: #fff !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23bd7cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 16px !important;
}

body.light-theme #first-visit-overlay .pref-popup-dropdown-trigger {
    border-color: rgba(255,255,255,.1) !important;
    color: #fff !important;
    background: #10051d !important;
}

body.light-theme #first-visit-overlay .pref-popup-dropdown-value,
body.light-theme #first-visit-overlay .pref-popup-dropdown-option strong {
    color: inherit !important;
}

body.light-theme #first-visit-overlay .pref-popup-dropdown-menu {
    color-scheme: dark;
    border-color: rgba(181,108,255,.25) !important;
    background: #10051d !important;
}

body.light-theme #first-visit-overlay .pref-popup-dropdown-option {
    color: rgba(255,255,255,.68) !important;
    background: #10051d !important;
}

body.light-theme #first-visit-overlay .pref-popup-dropdown-option:hover,
body.light-theme #first-visit-overlay .pref-popup-dropdown-option.selected {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(138,43,226,.26), rgba(181,108,255,.08)) !important;
}

body.light-theme #first-visit-overlay .pref-popup-theme-option > span {
    color: rgba(255,255,255,.58) !important;
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(4,1,11,.48) !important;
}

body.light-theme #first-visit-overlay .pref-popup-theme-option input:checked + span {
    color: #fff !important;
    border-color: rgba(181,108,255,.5) !important;
    background: linear-gradient(135deg, rgba(138,43,226,.3), rgba(181,108,255,.12)) !important;
}

@media (max-width: 720px) {
    #first-visit-overlay.pref-popup-overlay {
        align-items: flex-start;
        padding: 12px;
    }

    #first-visit-overlay .pref-popup-card {
        max-height: none;
        margin: auto 0;
        padding: 22px 17px;
        border-radius: 23px;
    }

    #first-visit-overlay .pref-popup-step {
        display: none;
    }

    #first-visit-overlay .pref-popup-grid {
        grid-template-columns: 1fr;
    }

    #first-visit-overlay .pref-popup-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #first-visit-overlay .pref-popup-confirm-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    #first-visit-overlay .pref-popup-brand {
        align-items: flex-start;
    }

    #first-visit-overlay .pref-popup-logo {
        width: 48px;
        height: 48px;
    }

    #first-visit-overlay .pref-popup-brand h2 {
        font-size: 1.55rem;
    }

    #first-visit-overlay .pref-popup-themes {
        grid-template-columns: 1fr;
    }
}

/* Skrytí reportování a favoritů na QC Checker stránce */
body.qc-page .btn-like,
body.qc-page .btn-report,
body.qc-page .report-link,
body.qc-page .product-report-btn,
body.qc-page .agent-warning {
    display: none !important;
}

/* Homepage content. All selectors are isolated from shared site components. */
.hp-hero,
.hp-stats,
.hp-section,
.hp-process,
.hp-community {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
}

.hp-hero {
  min-height: 650px;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(35px, 5vw, 80px);
  overflow: hidden;
  padding: clamp(45px, 6vw, 90px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
    radial-gradient(circle at 82% 22%, rgba(138,43,226,.24), transparent 34%),
    linear-gradient(145deg, rgba(29,10,49,.94), rgba(11,4,20,.98));
  box-shadow: 0 28px 80px rgba(3,0,10,.32);
}

.hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hp-hero-copy,
.hp-hero-visual {
  position: relative;
  z-index: 1;
}

.hp-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #b56cff;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hp-eyebrow > span,
.hp-core-head i,
.hp-trust i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #56f39a;
  box-shadow: 0 0 15px rgba(86,243,154,.85);
}

.hp-hero-copy h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(3.25rem, 5.7vw, 6rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.hp-hero-copy h1 > span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #b56cff, #ef9cff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hp-hero-copy > p {
  max-width: 650px;
  margin-top: 25px;
  color: rgba(255,255,255,.62);
  font-size: 1.12rem;
  line-height: 1.72;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.hp-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease;
}

.hp-btn:hover { transform: translateY(-3px); }
.hp-btn-primary {
  background: var(--main-gradient);
  box-shadow: 0 13px 32px rgba(138,43,226,.3);
}
.hp-btn-secondary {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
}

.hp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 27px;
  color: rgba(255,255,255,.48);
  font-size: .84rem;
  font-weight: 700;
}
.hp-trust span { display: flex; align-items: center; gap: 7px; }
.hp-trust i { width: 6px; height: 6px; box-shadow: none; }

.hp-hero-visual {
  min-height: 485px;
  display: grid;
  place-items: center;
}

.hp-orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(181,108,255,.13);
  border-radius: 50%;
}
.hp-orbit-small {
  width: 350px;
  height: 350px;
  border-style: dashed;
  transform: rotate(28deg);
}

.hp-core-card {
  width: min(420px, 88%);
  min-height: 455px;
  position: relative;
  z-index: 2;
  padding: 29px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(155deg, rgba(44,16,72,.9), rgba(12,4,23,.96));
  box-shadow: 0 35px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.hp-core-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.4);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.hp-core-head strong {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 99px;
  color: #56f39a;
  background: rgba(86,243,154,.08);
  font-size: .63rem;
}

.hp-core-logo {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 67px auto 32px;
  border-radius: 31px;
  background: var(--main-gradient);
  box-shadow: 0 0 58px rgba(138,43,226,.5);
  font-size: 4.2rem;
  font-weight: 950;
}
.hp-core-card h2 {
  text-align: center;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.hp-core-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}
.hp-core-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.04);
  font-size: .58rem;
  font-weight: 850;
}

.hp-float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  color: #fff;
  background: rgba(18,6,32,.9);
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
  backdrop-filter: blur(15px);
}
.hp-float-card b {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #b56cff;
  background: rgba(138,43,226,.18);
}
.hp-float-card div { display: grid; gap: 2px; }
.hp-float-card strong { font-size: .85rem; }
.hp-float-card span { color: rgba(255,255,255,.48); font-size: .71rem; }
.hp-float-left { top: 18%; left: -4%; }
.hp-float-right { right: -3%; bottom: 13%; }

.hp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}
.hp-stats article { padding: 27px 34px; border-right: 1px solid rgba(255,255,255,.09); }
.hp-stats article:last-child { border-right: 0; }
.hp-stats strong { display: block; color: #fff; font-size: 1.7rem; }
.hp-stats span { display: block; margin-top: 5px; color: rgba(255,255,255,.48); font-size: .84rem; }

.hp-section { padding-top: 105px; }
.hp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 34px;
}
.hp-section-head > div > span,
.hp-community > div > span {
  color: #b56cff;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.hp-section-head h2,
.hp-community h2 {
  margin-top: 9px;
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  letter-spacing: -.045em;
}
.hp-section-head > p {
  max-width: 480px;
  color: rgba(255,255,255,.52);
  line-height: 1.65;
}

.hp-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 18px;
}
.hp-feature-card {
  min-height: 385px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(138,43,226,.17), transparent 37%),
    rgba(255,255,255,.035);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease;
}
.hp-feature-card:hover { transform: translateY(-6px); border-color: rgba(181,108,255,.4); }
.hp-feature-wide {
  background:
    radial-gradient(circle at 84% 22%, rgba(138,43,226,.28), transparent 37%),
    linear-gradient(145deg, rgba(37,12,62,.9), rgba(16,5,29,.95));
}
.hp-number {
  position: absolute;
  top: 27px;
  right: 30px;
  color: rgba(255,255,255,.08);
  font-size: 3rem;
  font-weight: 950;
}
.hp-feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181,108,255,.22);
  border-radius: 17px;
  color: #b56cff;
  background: rgba(138,43,226,.12);
  font-size: 1.65rem;
  font-weight: 850;
}
.hp-feature-card > div:last-child { margin-top: auto; }
.hp-feature-card small { color: #b56cff; font-weight: 900; letter-spacing: .13em; }
.hp-feature-card h3 { margin-top: 9px; font-size: 1.75rem; }
.hp-feature-card p { margin-top: 12px; color: rgba(255,255,255,.53); line-height: 1.65; }
.hp-feature-card strong { display: inline-block; margin-top: 20px; font-size: .92rem; }

.hp-process {
  margin-top: 105px;
  padding: clamp(35px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background: rgba(255,255,255,.035);
}
.hp-process-head { align-items: center; }
.hp-process-head > a { flex: none; color: #b56cff; text-decoration: none; font-weight: 800; }
.hp-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hp-process-grid article {
  padding: 29px;
  border-left: 1px solid rgba(181,108,255,.27);
  background: linear-gradient(90deg, rgba(138,43,226,.08), transparent);
}
.hp-process-grid article > span { color: #b56cff; font-size: .72rem; font-weight: 900; }
.hp-process-grid h3 { margin-top: 19px; color: #fff; font-size: 1.34rem; }
.hp-process-grid p { margin-top: 10px; color: rgba(255,255,255,.5); line-height: 1.62; }

.hp-community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 105px;
  margin-bottom: 80px;
  padding: clamp(40px, 5vw, 68px);
  border: 1px solid rgba(181,108,255,.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(88,101,242,.24), transparent 31%),
    linear-gradient(135deg, rgba(138,43,226,.19), rgba(255,255,255,.035));
}
.hp-community p {
  max-width: 680px;
  margin-top: 13px;
  color: rgba(255,255,255,.52);
  line-height: 1.65;
}
.hp-community > a {
  min-height: 53px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 14px;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 14px 34px rgba(88,101,242,.25);
  text-decoration: none;
  font-weight: 850;
}
.hp-community > a img { width: 23px; height: 23px; object-fit: contain; }

body.light-theme .hp-hero {
  border-color: rgba(92,35,137,.13);
  background:
    radial-gradient(circle at 82% 22%, rgba(138,43,226,.13), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(244,237,251,.96));
  box-shadow: 0 28px 80px rgba(63,25,94,.12);
}
body.light-theme .hp-hero-copy h1,
body.light-theme .hp-section-head h2,
body.light-theme .hp-community h2,
body.light-theme .hp-stats strong,
body.light-theme .hp-feature-card,
body.light-theme .hp-process-grid h3 { color: #21152d !important; }
body.light-theme .hp-hero-copy > p,
body.light-theme .hp-trust,
body.light-theme .hp-section-head > p,
body.light-theme .hp-feature-card p,
body.light-theme .hp-process-grid p,
body.light-theme .hp-community p,
body.light-theme .hp-stats span { color: rgba(33,21,45,.58) !important; }
body.light-theme .hp-stats,
body.light-theme .hp-feature-card,
body.light-theme .hp-process {
  border-color: rgba(92,35,137,.13);
  background-color: rgba(255,255,255,.64);
}
body.light-theme .hp-feature-wide {
  background:
    radial-gradient(circle at 84% 22%, rgba(138,43,226,.15), transparent 37%),
    rgba(255,255,255,.72);
}
body.light-theme .hp-community {
  border-color: rgba(92,35,137,.14);
  background:
    radial-gradient(circle at 82% 18%, rgba(88,101,242,.13), transparent 31%),
    linear-gradient(135deg, rgba(138,43,226,.1), rgba(255,255,255,.64));
}
body.light-theme .hp-core-card,
body.light-theme .hp-float-card { color: #fff !important; }

@media (max-width: 1080px) {
  .hp-hero { grid-template-columns: 1fr; }
  .hp-hero-copy { text-align: center; }
  .hp-eyebrow, .hp-actions, .hp-trust { justify-content: center; }
  .hp-hero-copy > p { margin-inline: auto; }
  .hp-feature-grid { grid-template-columns: 1fr 1fr; }
  .hp-feature-wide { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .hp-hero, .hp-stats, .hp-section, .hp-process, .hp-community { width: calc(100% - 24px); }
  .hp-hero { min-height: auto; padding: 37px 20px; border-radius: 24px; }
  .hp-hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4.1rem); }
  .hp-hero-copy > p { font-size: 1rem; }
  .hp-actions { flex-direction: column; }
  .hp-btn { width: 100%; }
  .hp-hero-visual { min-height: 430px; }
  .hp-core-card { min-height: 395px; padding: 22px; }
  .hp-core-logo { width: 92px; height: 92px; margin-top: 54px; font-size: 3.4rem; }
  .hp-orbit { width: 360px; height: 360px; }
  .hp-orbit-small { width: 290px; height: 290px; }
  .hp-float-left { left: -6px; }
  .hp-float-right { right: -6px; }
  .hp-stats { grid-template-columns: 1fr 1fr; }
  .hp-stats article:nth-child(2) { border-right: 0; }
  .hp-stats article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
  .hp-section { padding-top: 75px; }
  .hp-section-head, .hp-community { align-items: flex-start; flex-direction: column; }
  .hp-feature-grid, .hp-process-grid { grid-template-columns: 1fr; }
  .hp-feature-wide { grid-column: auto; }
  .hp-feature-card { min-height: 340px; }
  .hp-process { margin-top: 75px; padding: 34px 22px; }
  .hp-community { margin-top: 75px; margin-bottom: 55px; }
  .hp-community > a { width: 100%; }
}

@media (max-width: 460px) {
  .hp-stats article { padding: 22px 18px; }
  .hp-stats strong { font-size: 1.4rem; }
  .hp-float-card { padding: 10px; }
  .hp-float-card span { display: none; }
}

/* Homepage dashboard v2 */
.hp-command-bar { display: none !important; }

.hp-dashboard-hero,
.hp-content-section,
.hp-split-section,
.hp-tools-section,
.hp-insights-section,
.hp-compare-section,
.hp-market-section,
.hp-bottom-grid {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
}

.hp-dashboard-hero {
  min-height: 540px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  gap: clamp(24px, 4vw, 68px);
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 48px);
  border: 1px solid rgba(190,119,255,.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.024)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.26), transparent 34%),
    linear-gradient(180deg, rgba(28,9,47,0.94), rgba(12,4,22,0.98));
  box-shadow: 0 22px 58px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.hp-dashboard-hero::before {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg,#000,transparent 68%);
}

.hp-dashboard-hero > *,
.hp-heading > *,
.hp-latest-grid > *,
.hp-split-section > *,
.hp-tools-grid > *,
.hp-insights-section > *,
.hp-compare-section > *,
.hp-market-section > *,
.hp-bottom-grid > * {
  min-width: 0;
}

.hp-hero-main,
.hp-featured-find {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hp-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px,2.4vw,38px) 0 clamp(18px,2.4vw,38px) clamp(8px,1.2vw,18px);
}

.hp-hero-main::before {
  display: none;
}

.hp-hero-main > * { position: relative; z-index: 1; }
.hp-status-row {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hp-status-cluster {
  display: flex;
  align-items: center;
}
.hp-status-label {
  padding: 0 13px 0 7px;
  color: rgba(255,255,255,.35);
  font-size: .43rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hp-status-cluster {
  gap: 0;
  padding-left: 0;
}
.hp-db-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 13px;
}
.hp-status-label + .hp-db-status {
  padding-left: 13px;
  border-left: 1px solid rgba(255,255,255,.09);
}
.hp-sellers-status {
  padding-left: 13px;
  border-left: 1px solid rgba(255,255,255,.09);
}
.hp-db-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #56f39a;
  box-shadow: 0 0 10px rgba(86,243,154,.8);
  animation: hp-status-pulse 2.1s ease-in-out infinite;
}
.hp-db-status strong {
  color: #74f5ad;
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hp-last-update {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 7px 0 13px;
  border-left: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.38);
  font-size: .45rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes hp-status-pulse {
  0%, 100% { transform: scale(.92); opacity: .78; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hp-hero-main h1 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(3.35rem,4.8vw,5.25rem); line-height: .91; letter-spacing: -.068em; }
.hp-hero-main h1 { overflow-wrap: anywhere; }
.hp-hero-main h1 span { color: #c887ff; }
.hp-hero-main > p { max-width: 590px; margin-top: 20px; color: rgba(255,255,255,.58); font-size: .98rem; line-height: 1.65; }

.hp-search {
  height: 62px;
  max-width: 690px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 16px 36px rgba(0,0,0,.16);
}
.hp-smart-entry > label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 2px;
  color: rgba(255,255,255,.4);
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .13em;
  pointer-events: none;
}
.hp-entry-route {
  max-width: 760px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(86,243,154,.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(86,243,154,.055);
}
.hp-entry-route[hidden] { display: none; }
.hp-entry-route > i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #56f39a;
  background: rgba(86,243,154,.1);
  font-style: normal;
  font-weight: 950;
}
.hp-entry-route > span { display: grid; gap: 2px; }
.hp-entry-route small { color: #56f39a; font-size: .48rem; font-weight: 900; letter-spacing: .1em; }
.hp-entry-route strong { font-size: .72rem; }
.hp-entry-route > b { color: #56f39a; }
.hp-search[data-entry-type="link"],
.hp-search[data-entry-type="tracking"] { border-color: rgba(86,243,154,.32); box-shadow: inset 0 1px rgba(255,255,255,.05),0 0 0 4px rgba(86,243,154,.035),0 18px 40px rgba(0,0,0,.18); }
.hp-search > span { width: 24px; flex: 0 0 24px; color: #b56cff; font-size: 1.35rem; text-align: center; }
.hp-search input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; color: #fff; background: transparent; font-size: .94rem; }
.hp-search input::placeholder { color: rgba(255,255,255,.35); }
.hp-search > button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.hp-search > button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hp-search > button:hover { color: #fff; border-color: rgba(181,108,255,.36); background: rgba(138,43,226,.14); transform: translateY(-1px); }
.hp-search > button:focus-visible { outline: 2px solid rgba(181,108,255,.7); outline-offset: 2px; }
.hp-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(13,4,24,.98);
  box-shadow: 0 25px 65px rgba(0,0,0,.4);
}
.hp-search-result { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px; border-radius: 11px; color: #fff; text-decoration: none; }
.hp-search-result:hover { background: rgba(138,43,226,.15); }
.hp-search-result img { width: 54px; height: 54px; object-fit: contain; border-radius: 9px; background: rgba(255,255,255,.06); }
.hp-search-result div { min-width: 0; }
.hp-search-result strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.hp-search-result small { display: block; margin-top: 4px; color: rgba(255,255,255,.42); }
.hp-search-result > span { color: #74f5ad; font-weight: 850; }
.hp-search-empty { padding: 18px; color: rgba(255,255,255,.5); text-align: center; }

.hp-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; color: rgba(255,255,255,.35); font-size: .72rem; }
.hp-quick-links button { padding: 6px 9px; border: 0; border-radius: 7px; color: rgba(255,255,255,.58); background: rgba(255,255,255,.055); cursor: pointer; }
.hp-quick-links button:hover { color: #fff; border-color: rgba(181,108,255,.3); background: rgba(138,43,226,.12); }
.hp-live-metrics {
  width: min(760px,100%);
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 15px;
  background: rgba(255,255,255,.027);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.hp-live-metrics article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-right: 1px solid rgba(255,255,255,.075);
}
.hp-live-metrics article:last-child {
  border-right: 0;
}
.hp-metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #bd78fa;
  background: rgba(138,43,226,.085);
}
.hp-metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-metric-copy { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 2px; }
.hp-metric-copy small { margin-bottom: 1px; color: rgba(255,255,255,.28); font-size: .43rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hp-metric-copy strong { color: #fff; font-size: 1.12rem; line-height: 1; }
.hp-metric-copy b { color: rgba(255,255,255,.48); font-size: .55rem; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }

.hp-featured-find { display: flex; flex-direction: column; justify-content: center; padding: 6px 6px 6px 0; }
.hp-featured-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; }
.hp-featured-head div { display: grid; gap: 4px; }
.hp-featured-head span { color: #b56cff; font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.hp-featured-head strong { color: #fff; font-size: 1.05rem; }
.hp-featured-head a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .78rem; font-weight: 800; }
.hp-featured-image { min-height: 365px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: radial-gradient(circle at 50% 42%,rgba(138,43,226,.25),transparent 48%),rgba(255,255,255,.04); box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.hp-featured-image::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg,transparent 60%,rgba(7,2,12,.52)); }
.hp-featured-image img { width: 100%; height: 100%; max-height: 400px; object-fit: contain; padding: 24px 24px 58px; transition: transform .35s ease; }
.hp-featured-image:hover img { transform: scale(1.035); }
.hp-featured-body {
  width: calc(100% - 26px);
  position: relative;
  z-index: 3;
  align-self: center;
  margin-top: -76px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.024)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,.26), transparent 45%),
    linear-gradient(180deg, rgba(28,9,47,.96), rgba(12,4,22,.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}
.hp-featured-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hp-featured-meta-row .hp-product-tags { min-width: 0; }
.hp-featured-date {
  flex: 0 0 auto;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(181,108,255,.14);
  border-radius: 9px;
  color: rgba(255,255,255,.58);
  background: rgba(138,43,226,.075);
  font-size: .53rem;
  font-weight: 900;
  letter-spacing: .065em;
  white-space: nowrap;
}
.hp-featured-date::before { content: "◷"; color: #bd78fa; font-size: .7rem; }
.hp-product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-product-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.055); font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.hp-featured-body h2 { min-height: auto; margin-top: 10px; color: #fff; font-size: 1.18rem; line-height: 1.18; }
.hp-featured-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px;
  margin-top: 12px;
}
.hp-featured-stats > div {
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(181,108,255,.2);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0,rgba(181,108,255,.16),transparent 58%),
    rgba(138,43,226,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .2s ease,border-color .2s ease,background .2s ease;
}
.hp-featured-stats > div::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(163,78,241,.12);
  filter: blur(10px);
  pointer-events: none;
}
.hp-featured-stats > div:hover {
  transform: translateY(-2px);
  border-color: rgba(190,125,255,.38);
  background:
    radial-gradient(circle at 0 0,rgba(181,108,255,.22),transparent 60%),
    rgba(138,43,226,.1);
}
.hp-featured-stat-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190,125,255,.2);
  border-radius: 8px;
  color: #c77dff;
  background: rgba(169,73,245,.12);
}
.hp-featured-stat-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-featured-stat-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.hp-featured-stats small {
  overflow: hidden;
  color: rgba(255,255,255,.42);
  font-size: .44rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-featured-stats strong {
  overflow: visible;
  color: #d9a9ff;
  font-family: var(--main-font);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-featured-bottom { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 25px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.hp-featured-bottom div { display: grid; gap: 3px; }
.hp-featured-bottom small { color: rgba(255,255,255,.35); font-size: .58rem; font-weight: 900; }
.hp-featured-bottom strong { color: #fff; }
#hp-featured-price { color: #56f39a; }
.hp-featured-bottom a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 18px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #9c2cf3 0%, #6812c7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 12px 24px rgba(112,24,202,.24);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  transition: transform .2s ease,filter .2s ease;
}
.hp-featured-bottom a:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hp-featured-bottom a span { font-size: .9rem; }

#hp-featured-open {
  min-height: 40px;
  height: 40px;
  gap: 12px;
  padding: 0 14px;
  border-radius: 10px;
}

.hp-content-section, .hp-tools-section { padding-top: 110px; }
.hp-finds-showcase {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hp-newest-section { margin-top: 110px; }
.hp-popular-section {
  margin-top: 28px;
  padding-top: 0;
  background: transparent;
}
.hp-heading { display: grid; grid-template-columns: 1fr minmax(260px,440px) auto; align-items: end; gap: 35px; margin-bottom: 33px; }
.hp-latest-heading { grid-template-columns: 1fr auto; }
.hp-heading > div > span, .hp-panel-head span, .hp-panel-kicker, .hp-tools-grid > a > span, .hp-news-copy > span, .hp-community-card > span { color: #b56cff; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.hp-heading h2, .hp-panel-head h2 { margin-top: 8px; color: #fff; font-size: clamp(2rem,3.4vw,3.25rem); letter-spacing: -.045em; }
.hp-heading > p { color: rgba(255,255,255,.48); line-height: 1.6; }
.hp-heading > a, .hp-panel-head > a { color: #b56cff; text-decoration: none; font-weight: 850; white-space: nowrap; }

.hp-finds-showcase .hp-heading { margin-bottom: 25px; }
.hp-finds-showcase .hp-heading h2 { font-size: clamp(2rem,3vw,2.8rem); }
.hp-finds-showcase .hp-heading > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(181,108,255,.22);
  border-radius: 12px;
  background: rgba(138,43,226,.08);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.hp-finds-showcase .hp-heading > a:hover {
  color: #fff;
  border-color: rgba(181,108,255,.5);
  background: rgba(138,43,226,.18);
  transform: translateX(3px);
}
.hp-latest-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.hp-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(181,108,255,.18);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(138,43,226,.16), transparent 36%),
    linear-gradient(180deg, rgba(35,12,58,.9), rgba(11,3,20,.96));
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.hp-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181,108,255,.58);
  box-shadow: 0 28px 55px rgba(0,0,0,.32), 0 0 0 1px rgba(181,108,255,.11);
}
.hp-product-image {
  aspect-ratio: 1.16/1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 35%, rgba(181,108,255,.13), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}
.hp-product-image::after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(8,2,15,.62));
}
.hp-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .38s ease, filter .38s ease; }
.hp-product-card:hover img { transform: scale(1.045); filter: saturate(1.08) contrast(1.03); }
.hp-product-rank {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  color: rgba(255,255,255,.82);
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -.06em;
  text-shadow: 0 3px 14px rgba(0,0,0,.5);
}
.hp-product-info {
  min-height: 205px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 8px 2px;
}
.hp-product-info h3 {
  height: 2.55em;
  overflow: hidden;
  margin-top: 12px;
  color: #fff;
  font-size: .98rem;
  line-height: 1.27;
  letter-spacing: -.025em;
}
.hp-product-added {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hp-product-added small,
.hp-product-stats small {
  color: rgba(255,255,255,.36);
  font-size: .55rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hp-product-added strong {
  overflow: hidden;
  color: rgba(255,255,255,.68);
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-product-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 2px;
}
.hp-product-stats span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px 7px 7px;
  border-right: 1px solid rgba(255,255,255,.065);
}
.hp-product-stats span:last-child {
  border-right: 0;
}
.hp-product-stats strong {
  overflow: hidden;
  color: rgba(255,255,255,.82);
  font-family: var(--main-font);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-product-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.hp-product-meta strong { color: #56f39a; font-size: 1.15rem; letter-spacing: -.03em; }
.hp-product-meta > div { display: flex; align-items: center; gap: 8px; }
.hp-product-meta small { color: rgba(255,255,255,.38); font-size: .62rem; font-weight: 850; }
.hp-product-meta span { color: #ffd34e; font-size: .74rem; font-weight: 900; }
.hp-loading-card { min-height: 410px; border-radius: 21px; background: linear-gradient(100deg, rgba(255,255,255,.025) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.025) 70%); background-size: 220% 100%; animation: hp-shimmer 1.4s infinite; }
@keyframes hp-shimmer { to { background-position-x: -220%; } }

.hp-split-section { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); align-items: stretch; gap: 18px; padding-top: 110px; }
.hp-category-panel, .hp-agent-panel { border: 1px solid rgba(255,255,255,.09); border-radius: 25px; background: rgba(255,255,255,.032); }
.hp-category-panel { padding: clamp(28px,4vw,48px); }
.hp-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.hp-category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
.hp-category-card { min-height: 150px; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(138,43,226,.18), transparent 48%), rgba(255,255,255,.025); text-decoration: none; transition: transform .25s ease, border-color .25s ease, background-color .25s ease; }
.hp-category-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(17,5,29,.92) 0%, rgba(17,5,29,.7) 48%, rgba(17,5,29,.06) 100%); }
.hp-category-card:hover { transform: translateY(-4px); border-color: rgba(181,108,255,.4); background-color: rgba(138,43,226,.1); }
.hp-category-image { width: 56%; height: 100%; position: absolute; top: 0; right: -2%; z-index: 0; padding: 10px 8px 8px; object-fit: contain; opacity: .82; filter: saturate(.88) contrast(1.03); transform: scale(1.02); transition: transform .35s ease, opacity .35s ease, filter .35s ease; }
.hp-category-card:hover .hp-category-image { opacity: 1; filter: saturate(1.05) contrast(1.05); transform: scale(1.09); }
.hp-category-card b { position: absolute; top: 13px; right: 13px; z-index: 3; padding: 5px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: rgba(255,255,255,.58); background: rgba(11,3,20,.54); font-size: .58rem; letter-spacing: .04em; backdrop-filter: blur(8px); }
.hp-category-card strong, .hp-category-card > span { max-width: 58%; position: relative; z-index: 2; }
.hp-category-card strong { font-size: 1.05rem; line-height: 1.2; }
.hp-category-card > span { color: rgba(255,255,255,.45); font-size: .75rem; }
.hp-agent-panel {
  min-height: 100%;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px,3.5vw,44px);
  border-color: rgba(181,108,255,.18);
  background:
    radial-gradient(circle at 85% 10%, rgba(181,108,255,.3), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(86,243,154,.1), transparent 28%),
    linear-gradient(145deg, rgba(31,10,52,.94), rgba(13,4,23,.97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 46px rgba(0,0,0,.18);
}
.hp-agent-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 36%, rgba(181,108,255,.12));
}
.hp-agent-panel > * {
  position: relative;
  z-index: 1;
}
.hp-agent-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 19px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hp-agent-brand img {
  width: 58px;
  height: 58px;
  padding: 8px;
  object-fit: contain;
  border-radius: 17px;
  background: var(--agent-cta-bg, #fff);
  box-shadow: 0 14px 32px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.14);
}
.hp-agent-brand h2 { color: #fff; font-size: 1.58rem; letter-spacing: -.04em; }
.hp-agent-brand p { margin-top: 4px; color: rgba(255,255,255,.5); font-size: .82rem; }
.hp-agent-benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
}
.hp-agent-benefits span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.hp-agent-benefits span::first-letter { color: #56f39a; }
.hp-agent-panel > a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #b832ff, #6500b8);
  box-shadow: 0 16px 34px rgba(138,43,226,.28), inset 0 1px 0 rgba(255,255,255,.16);
  text-decoration: none;
  font-weight: 900;
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.hp-agent-panel > a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 42px rgba(138,43,226,.36), inset 0 1px 0 rgba(255,255,255,.18);
}
.hp-agent-panel > small {
  margin-top: 14px;
  color: rgba(255,255,255,.36);
  font-size: .74rem;
  text-align: center;
}

.hp-tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.hp-tools-grid > a { min-height: 330px; display: flex; flex-direction: column; padding: 31px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(138,43,226,.17), transparent 38%), rgba(255,255,255,.032); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.hp-tools-grid > a:hover { transform: translateY(-5px); border-color: rgba(181,108,255,.38); }
.hp-tool-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid rgba(181,108,255,.25); border-radius: 16px; color: #b56cff; background: rgba(138,43,226,.12); font-size: 1.45rem; font-weight: 900; }
.hp-tools-grid h3 { margin-top: 9px; font-size: 1.5rem; }
.hp-tools-grid p { margin-top: 12px; color: rgba(255,255,255,.48); line-height: 1.62; }
.hp-tools-grid strong { margin-top: 22px; font-size: .87rem; }

.hp-insights-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 110px;
}
.hp-pulse-card,
.hp-health-card {
  min-width: 0;
  min-height: 390px;
  padding: clamp(27px,3.4vw,42px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%, rgba(138,43,226,.16), transparent 36%),
    rgba(255,255,255,.032);
}
.hp-insight-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hp-insight-head > div > span { color: #b56cff; font-size: .66rem; font-weight: 900; letter-spacing: .14em; }
.hp-insight-head h2 { margin-top: 8px; color: #fff; font-size: clamp(1.7rem,2.5vw,2.5rem); letter-spacing: -.045em; }
.hp-live-badge,
.hp-health-label { flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(86,243,154,.2); border-radius: 99px; color: #74f5ad; background: rgba(86,243,154,.07); font-size: .59rem; font-weight: 950; letter-spacing: .1em; }
.hp-live-badge { display: inline-flex; align-items: center; gap: 7px; }
.hp-live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #56f39a; box-shadow: 0 0 11px #56f39a; animation: hp-live-pulse 1.8s ease-in-out infinite; }
@keyframes hp-live-pulse { 50% { opacity: .35; } }
.hp-pulse-list { display: grid; gap: 9px; margin-top: 27px; }
.hp-pulse-list > div { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid rgba(255,255,255,.06); border-radius: 13px; background: rgba(255,255,255,.025); }
.hp-pulse-list > div > span { color: rgba(255,255,255,.54); font-size: .82rem; }
.hp-pulse-list strong { color: #fff; font-size: .93rem; }
.hp-pulse-list small { margin-left: auto; color: rgba(255,255,255,.27); font-size: .57rem; font-weight: 900; letter-spacing: .08em; }
.hp-pulse-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.hp-pulse-dot-green { color: #56f39a; }
.hp-pulse-dot-purple { color: #b56cff; }
.hp-pulse-dot-blue { color: #6c9cff; }
.hp-pulse-chart { height: 70px; display: flex; align-items: flex-end; gap: 7px; margin-top: 20px; padding: 10px 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.hp-pulse-chart span { flex: 1; min-height: 12%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#a750f4,rgba(138,43,226,.07)); }
.hp-pulse-chart span:nth-child(1) { height: 31%; } .hp-pulse-chart span:nth-child(2) { height: 46%; }
.hp-pulse-chart span:nth-child(3) { height: 38%; } .hp-pulse-chart span:nth-child(4) { height: 62%; }
.hp-pulse-chart span:nth-child(5) { height: 52%; } .hp-pulse-chart span:nth-child(6) { height: 77%; }
.hp-pulse-chart span:nth-child(7) { height: 67%; } .hp-pulse-chart span:nth-child(8) { height: 91%; }
.hp-pulse-chart span:nth-child(9) { height: 73%; } .hp-pulse-chart span:nth-child(10) { height: 98%; }
.hp-pulse-chart span:nth-child(11) { height: 82%; } .hp-pulse-chart span:nth-child(12) { height: 92%; }
.hp-insight-note { margin-top: 12px; color: rgba(255,255,255,.28); font-size: .65rem; }
.hp-health-main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 25px; margin-top: 30px; padding: 22px; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; background: rgba(255,255,255,.025); }
.hp-health-ring { --health-score: 0; width: 126px; height: 126px; display: grid; place-content: center; border-radius: 50%; background: radial-gradient(circle,#160825 57%,transparent 59%),conic-gradient(#56f39a calc(var(--health-score) * 1%),rgba(255,255,255,.07) 0); text-align: center; box-shadow: 0 0 35px rgba(86,243,154,.08); }
.hp-health-ring strong { color: #fff; font-size: 2.15rem; line-height: 1; }
.hp-health-ring span { margin-top: 3px; color: rgba(255,255,255,.35); font-size: .66rem; }
.hp-health-copy small { color: #74f5ad; font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.hp-health-copy h3 { margin: 8px 0; color: #fff; font-size: 1.17rem; }
.hp-health-copy p { color: rgba(255,255,255,.45); font-size: .78rem; line-height: 1.55; }
.hp-health-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 16px; }
.hp-health-points > div { min-width: 0; display: grid; gap: 7px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.028); }
.hp-health-points span { color: rgba(255,255,255,.38); font-size: .65rem; }
.hp-health-points strong { overflow: hidden; color: #fff; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }

.hp-compare-section,
.hp-market-section { padding-top: 110px; }
.hp-compare-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.68fr) minmax(0,1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 25px;
  background: rgba(255,255,255,.025);
}
.hp-compare-product { min-width: 0; padding: 23px; }
.hp-compare-product > label { display: block; margin-bottom: 9px; color: #b56cff; font-size: .59rem; font-weight: 900; letter-spacing: .12em; }
.hp-compare-product > select {
  width: 100%;
  height: 45px;
  padding: 0 38px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  outline: 0;
  color: rgba(255,255,255,.75);
  background: #170923;
  text-overflow: ellipsis;
  cursor: pointer;
}
.hp-compare-preview { display: block; margin-top: 14px; color: #fff; text-decoration: none; }
.hp-compare-image { min-height: 275px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 55% 45%,rgba(138,43,226,.23),transparent 44%),rgba(255,255,255,.03); }
.hp-compare-image img { width: 100%; height: 275px; padding: 19px; object-fit: contain; transition: transform .25s ease; }
.hp-compare-preview:hover img { transform: scale(1.035); }
.hp-compare-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 16px; padding: 17px 4px 2px; }
.hp-compare-copy > span { grid-column: 1/-1; color: #b56cff; font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.hp-compare-copy h3 { min-width: 0; min-height: 2.35em; overflow: hidden; font-size: 1.05rem; line-height: 1.18; }
.hp-compare-copy > strong { color: #56f39a; font-size: 1.08rem; white-space: nowrap; }
.hp-compare-table { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-inline: 1px solid rgba(255,255,255,.08); background: rgba(4,1,9,.2); }
.hp-compare-table-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 13px; color: rgba(255,255,255,.29); font-size: .55rem; font-weight: 900; text-align: center; letter-spacing: .1em; }
.hp-compare-table-head b { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: #c17bff; background: rgba(138,43,226,.14); font-size: .57rem; }
.hp-compare-table > div[data-compare-metric] { display: grid; grid-template-columns: 1fr minmax(86px,1.15fr) 1fr; align-items: center; min-height: 62px; border-top: 1px solid rgba(255,255,255,.065); text-align: center; }
.hp-compare-table > div > span { color: rgba(255,255,255,.34); font-size: .64rem; }
.hp-compare-table > div > strong { color: rgba(255,255,255,.72); font-size: .76rem; overflow-wrap: anywhere; }
.hp-compare-table > div > strong.is-winner { color: #56f39a; text-shadow: 0 0 14px rgba(86,243,154,.2); }

.hp-market-period { align-self: end; justify-self: end; padding: 8px 10px; border: 1px solid rgba(181,108,255,.22); border-radius: 99px; color: #b56cff; background: rgba(138,43,226,.08); font-size: .58rem; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.hp-market-layout { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); gap: 18px; }
.hp-market-trends,
.hp-market-chart-card { min-height: 390px; padding: 27px; border: 1px solid rgba(255,255,255,.09); border-radius: 23px; background: radial-gradient(circle at 100% 0,rgba(138,43,226,.12),transparent 38%),rgba(255,255,255,.027); }
.hp-market-card-head,
.hp-market-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 35px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.hp-market-card-head > span,
.hp-market-chart-head span { color: #b56cff; font-size: .59rem; font-weight: 900; letter-spacing: .11em; }
.hp-market-card-head small { color: rgba(255,255,255,.25); font-size: .52rem; font-weight: 850; }
.hp-market-categories > div:not(.hp-market-empty) { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 66px; border-bottom: 1px solid rgba(255,255,255,.055); }
.hp-market-categories > div > b { color: rgba(255,255,255,.18); font-size: .66rem; }
.hp-market-categories > div > span { min-width: 0; display: grid; gap: 3px; }
.hp-market-categories strong { overflow: hidden; color: #fff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.hp-market-categories small { color: rgba(255,255,255,.36); font-size: .61rem; }
.hp-market-categories em { color: #56f39a; font-size: .7rem; font-style: normal; font-weight: 900; }
.hp-market-empty { display: grid; min-height: 290px; place-items: center; color: rgba(255,255,255,.32); font-size: .78rem; text-align: center; }
.hp-market-chart-head > div { display: flex; align-items: baseline; gap: 7px; }
.hp-market-chart-head strong { color: #fff; font-size: 1.65rem; }
.hp-market-chart-head small { color: rgba(255,255,255,.35); font-size: .62rem; }
.hp-market-chart-head em { color: #56f39a; font-size: .56rem; font-style: normal; font-weight: 900; letter-spacing: .08em; }
.hp-market-chart { height: 300px; position: relative; margin-top: 20px; }
.hp-market-grid { position: absolute; inset: 0 0 42px; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size: 100% 25%; }
.hp-market-chart svg { position: absolute; inset: 0 0 42px; width: 100%; height: calc(100% - 42px); overflow: visible; }
.hp-market-area { fill: url(#hp-market-area-gradient); }
.hp-market-line { fill: none; stroke: #a74fff; stroke-width: 4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(167,79,255,.5)); }
.hp-market-days { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; text-align: center; }
.hp-market-days span { min-width: 0; display: grid; gap: 3px; }
.hp-market-days b { color: rgba(255,255,255,.28); font-size: .5rem; }
.hp-market-days small { color: rgba(255,255,255,.55); font-size: .58rem; }

.hp-bottom-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; padding: 110px 0 85px; }
.hp-news-card, .hp-community-card { min-height: 350px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; }
.hp-news-card { display: grid; grid-template-columns: .8fr 1.2fr; color: #fff; background: rgba(255,255,255,.032); text-decoration: none; }
.hp-news-art { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, rgba(138,43,226,.32), transparent 55%), #120520; }
.hp-news-art > span { position: relative; z-index: 2; font-size: 8rem; font-weight: 950; text-shadow: 0 0 55px rgba(181,108,255,.5); }
.hp-news-art i { position: absolute; width: 120%; height: 1px; background: rgba(181,108,255,.2); transform: rotate(-25deg); }
.hp-news-art i:nth-child(2) { transform: translateY(-65px) rotate(-25deg); }
.hp-news-art i:nth-child(3) { transform: translateY(65px) rotate(-25deg); }
.hp-news-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px,4vw,55px); }
.hp-news-copy h2, .hp-community-card h2 { margin-top: 13px; color: #fff; font-size: clamp(1.8rem,2.7vw,2.7rem); line-height: 1.05; letter-spacing: -.04em; }
.hp-news-copy p, .hp-community-card p { margin-top: 16px; color: rgba(255,255,255,.5); line-height: 1.65; }
.hp-news-copy strong { margin-top: 25px; }
.hp-community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px,4vw,50px);
  border-color: rgba(88,101,242,.38);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.13), transparent 10%),
    radial-gradient(circle at 86% 16%, rgba(88,101,242,.62), transparent 36%),
    radial-gradient(circle at 78% 88%, rgba(114,137,218,.28), transparent 34%),
    linear-gradient(145deg, #161b3d 0%, #23245f 46%, #101326 100%);
  box-shadow: 0 26px 70px rgba(88,101,242,.18), inset 0 1px 0 rgba(255,255,255,.1);
}
.hp-community-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 34%, rgba(88,101,242,.18));
}
.hp-community-card > * { position: relative; z-index: 1; }
.hp-community-card > img {
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(88,101,242,.42));
}
.hp-community-card > span { color: #cfd6ff !important; }
.hp-community-card p { color: rgba(236,239,255,.68); }
.hp-community-card > a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  box-shadow: 0 14px 30px rgba(88,101,242,.32);
  text-decoration: none;
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

/* Homepage hero — RepDatabase E7D8FF / B8C0FF palette */
body.home-page.light-theme .hp-dashboard-hero {
  border-color: rgba(113, 104, 165, .18) !important;
  background:
    radial-gradient(circle at 10% 8%, rgba(231, 216, 255, .96), transparent 37%),
    radial-gradient(circle at 92% 88%, rgba(231, 216, 255, .9), transparent 34%),
    linear-gradient(112deg, #e7d8ff 0%, #b8c0ff 52%, #e7d8ff 100%) !important;
  box-shadow: 0 24px 58px rgba(89, 85, 151, .16) !important;
}

body.home-page.light-theme .hp-hero-main h1 span,
body.home-page.light-theme .hp-featured-head span,
body.home-page.light-theme .hp-featured-stat-icon,
body.home-page.light-theme .hp-featured-stats strong,
body.home-page.light-theme .hp-search > span {
  color: #665e9f !important;
}

body.home-page.light-theme .hp-status-row,
body.home-page.light-theme .hp-search,
body.home-page.light-theme .hp-live-metrics {
  border-color: rgba(104, 99, 163, .15) !important;
  background: linear-gradient(135deg, rgba(231,216,255,.82), rgba(184,192,255,.66)) !important;
  box-shadow: 0 12px 28px rgba(89,91,151,.08) !important;
}

body.home-page.light-theme .hp-db-status,
body.home-page.light-theme .hp-quick-links button,
body.home-page.light-theme .hp-live-metrics article {
  border-color: rgba(104, 99, 163, .13) !important;
  background: rgba(231, 216, 255, .68) !important;
  box-shadow: none !important;
}

body.home-page.light-theme .hp-search > button {
  border-color: rgba(104, 99, 163, .16) !important;
  color: #5f5a98 !important;
  background: linear-gradient(145deg, #e7d8ff, #b8c0ff) !important;
  box-shadow: 0 7px 16px rgba(83, 86, 148, .1) !important;
}

body.home-page.light-theme .hp-search > button:hover {
  border-color: rgba(91, 86, 150, .25) !important;
  color: #49477c !important;
  background: linear-gradient(145deg, #dfcfff, #aeb8fa) !important;
}

body.home-page.light-theme .hp-quick-links button {
  color: #666292 !important;
}

body.home-page.light-theme .hp-featured-image {
  border-color: rgba(104, 99, 163, .14) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(231,216,255,.94), transparent 54%),
    linear-gradient(145deg, rgba(231,216,255,.78), rgba(184,192,255,.62)) !important;
}

body.home-page.light-theme .hp-featured-body {
  border-color: rgba(104, 99, 163, .14) !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(184,192,255,.48), transparent 38%),
    linear-gradient(145deg, rgba(231,216,255,.96), rgba(231,216,255,.8)) !important;
  box-shadow: 0 18px 42px rgba(89,91,151,.13) !important;
}

body.home-page.light-theme .hp-featured-head a,
body.home-page.light-theme .hp-featured-body .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-body .hp-featured-stats > div {
  border-color: rgba(104, 99, 163, .13) !important;
  background: linear-gradient(145deg, rgba(231,216,255,.92), rgba(184,192,255,.45)) !important;
  box-shadow: none !important;
}

body.home-page.light-theme .hp-featured-bottom a {
  border: 0 !important;
  color: #282742 !important;
  background: linear-gradient(135deg, #b8c0ff, #e7d8ff) !important;
  box-shadow: 0 10px 22px rgba(85, 88, 151, .14) !important;
}

body.home-page.light-theme .hp-featured-bottom a:hover {
  background: linear-gradient(135deg, #aeb8fa, #dfcfff) !important;
  box-shadow: 0 14px 28px rgba(85, 88, 151, .2) !important;
}

/* Must remain last: open hero and separated content surfaces */
body.home-page.light-theme .hp-dashboard-hero {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body.home-page.light-theme .hp-status-row {
  background: rgba(250, 248, 255, .86) !important;
  border-color: rgba(87, 82, 142, .12) !important;
}

body.home-page.light-theme .hp-db-status {
  background: #f7f4ff !important;
  border-color: rgba(87, 82, 142, .1) !important;
}

body.home-page.light-theme .hp-search {
  background: #faf9ff !important;
  border-color: rgba(82, 78, 136, .14) !important;
  box-shadow: 0 14px 32px rgba(67, 68, 127, .11) !important;
}

body.home-page.light-theme .hp-quick-links button {
  background: #f8f5ff !important;
  border-color: rgba(91, 86, 147, .1) !important;
}

body.home-page.light-theme .hp-live-metrics {
  background: #f8f6ff !important;
  border-color: rgba(82, 78, 136, .12) !important;
}

body.home-page.light-theme .hp-live-metrics article {
  background: transparent !important;
  border-color: rgba(82, 78, 136, .1) !important;
}

body.home-page.light-theme .hp-featured-image {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .8), transparent 58%),
    #f5f2ff !important;
  border-color: rgba(82, 78, 136, .11) !important;
}

body.home-page.light-theme .hp-featured-body {
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 216, 255, .5), transparent 42%),
    #fbfaff !important;
  border-color: rgba(82, 78, 136, .12) !important;
  box-shadow: 0 20px 44px rgba(65, 64, 122, .14) !important;
}

body.home-page.light-theme .hp-featured-head a,
body.home-page.light-theme .hp-featured-body .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-body .hp-featured-stats > div {
  background: #f2efff !important;
  border-color: rgba(82, 78, 136, .1) !important;
}
/* Hero surface hierarchy: keep the palette in the canvas, not on every control */
body.home-page.light-theme .hp-status-row {
  border-color: rgba(87, 82, 142, .12) !important;
  background: rgba(250, 248, 255, .86) !important;
  box-shadow: 0 8px 22px rgba(66, 66, 122, .08) !important;
  backdrop-filter: blur(14px);
}

body.home-page.light-theme .hp-db-status {
  border-color: rgba(87, 82, 142, .1) !important;
  background: #f7f4ff !important;
}

body.home-page.light-theme .hp-search {
  border-color: rgba(82, 78, 136, .14) !important;
  background: #faf9ff !important;
  box-shadow:
    0 14px 32px rgba(67, 68, 127, .11),
    inset 0 1px 0 rgba(255, 255, 255, .7) !important;
  backdrop-filter: blur(16px);
}

body.home-page.light-theme .hp-search > button {
  border-color: transparent !important;
  background: linear-gradient(135deg, rgba(231, 216, 255, .98), rgba(184, 192, 255, .98)) !important;
}

body.home-page.light-theme .hp-quick-links button {
  border-color: rgba(91, 86, 147, .1) !important;
  background: #f8f5ff !important;
  box-shadow: 0 5px 14px rgba(69, 68, 126, .06) !important;
}

body.home-page.light-theme .hp-quick-links button:hover {
  color: #4d487f !important;
  background: rgba(255, 255, 255, .9) !important;
  transform: translateY(-1px);
}

body.home-page.light-theme .hp-live-metrics {
  border-color: rgba(82, 78, 136, .12) !important;
  background: #f8f6ff !important;
  box-shadow: 0 12px 26px rgba(67, 68, 127, .09) !important;
  backdrop-filter: blur(14px);
}

body.home-page.light-theme .hp-live-metrics article {
  border-color: rgba(82, 78, 136, .1) !important;
  background: transparent !important;
}

body.home-page.light-theme .hp-live-metrics article > i,
body.home-page.light-theme .hp-featured-stat-icon {
  background: rgba(255, 255, 255, .62) !important;
  box-shadow: 0 5px 13px rgba(68, 67, 124, .07) !important;
}

body.home-page.light-theme .hp-featured-image {
  border-color: rgba(82, 78, 136, .11) !important;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .8), transparent 58%),
    #f5f2ff !important;
  box-shadow: 0 16px 34px rgba(66, 66, 122, .1) !important;
}

body.home-page.light-theme .hp-featured-body {
  border-color: rgba(82, 78, 136, .12) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 216, 255, .5), transparent 42%),
    #fbfaff !important;
  box-shadow:
    0 20px 44px rgba(65, 64, 122, .14),
    inset 0 1px 0 rgba(255, 255, 255, .72) !important;
  backdrop-filter: blur(18px);
}

body.home-page.light-theme .hp-featured-head a,
body.home-page.light-theme .hp-featured-body .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-body .hp-featured-stats > div {
  border-color: rgba(82, 78, 136, .1) !important;
  background: #f2efff !important;
}

body.home-page.light-theme .hp-featured-body .hp-featured-stats > div {
  box-shadow: 0 6px 14px rgba(67, 66, 125, .05) !important;
}

/* Open hero layout — no enclosing background panel */
body.home-page.light-theme .hp-dashboard-hero {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.hp-community-card > a .hp-discord-button-icon {
  width: 18px;
  height: 18px;
  margin: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hp-community-card > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(88,101,242,.42), 0 0 24px rgba(88,101,242,.34);
  filter: brightness(1.06);
}

body.light-theme .hp-hero-main,
body.light-theme .hp-featured-find,
body.light-theme .hp-category-panel,
body.light-theme .hp-agent-panel,
body.light-theme .hp-tools-grid > a,
body.light-theme .hp-pulse-card,
body.light-theme .hp-health-card,
body.light-theme .hp-compare-shell,
body.light-theme .hp-market-trends,
body.light-theme .hp-market-chart-card,
body.light-theme .hp-news-card,
body.light-theme .hp-community-card {
  border-color: rgba(88,101,242,.34);
}
body.light-theme .hp-hero-main,
body.light-theme .hp-featured-find {
  background: transparent;
}
body.light-theme .hp-hero-main h1,
body.light-theme .hp-featured-head strong,
body.light-theme .hp-featured-body h2,
body.light-theme .hp-featured-bottom strong,
body.light-theme .hp-live-metrics strong,
body.light-theme .hp-heading h2,
body.light-theme .hp-panel-head h2,
body.light-theme .hp-product-card,
body.light-theme .hp-category-card,
body.light-theme .hp-tools-grid > a { color: #21152d; }
body.light-theme .hp-insight-head h2,
body.light-theme .hp-pulse-list strong,
body.light-theme .hp-health-ring strong,
body.light-theme .hp-health-copy h3,
body.light-theme .hp-health-points strong { color: #21152d; }
body.light-theme .hp-compare-preview,
body.light-theme .hp-compare-table > div > strong,
body.light-theme .hp-market-categories strong,
body.light-theme .hp-market-chart-head strong { color: #21152d; }
body.light-theme .hp-hero-main > p,
body.light-theme .hp-live-metrics span,
body.light-theme .hp-heading > p,
body.light-theme .hp-tools-grid p { color: rgba(33,21,45,.56); }
body.light-theme .hp-pulse-list > div > span,
body.light-theme .hp-health-copy p,
body.light-theme .hp-health-points span { color: rgba(33,21,45,.55); }
body.light-theme .hp-compare-table > div > span,
body.light-theme .hp-market-categories small { color: rgba(33,21,45,.5); }
body.light-theme .hp-pulse-card,
body.light-theme .hp-health-card { border-color: rgba(92,35,137,.12); background-color: rgba(255,255,255,.62); }
body.light-theme .hp-pulse-list > div,
body.light-theme .hp-health-main,
body.light-theme .hp-health-points > div { border-color: rgba(92,35,137,.09); background: rgba(255,255,255,.48); }
body.light-theme .hp-health-ring { background: radial-gradient(circle,#f7f1fc 57%,transparent 59%),conic-gradient(#24bd75 calc(var(--health-score) * 1%),rgba(72,32,93,.09) 0); }
body.light-theme .hp-compare-shell,
body.light-theme .hp-market-trends,
body.light-theme .hp-market-chart-card { border-color: rgba(92,35,137,.12); background-color: rgba(255,255,255,.62); }
body.light-theme .hp-compare-product > select { color: #21152d; border-color: rgba(92,35,137,.14); background: rgba(255,255,255,.78); }
body.light-theme .hp-compare-image,
body.light-theme .hp-compare-table { background-color: rgba(255,255,255,.38); }
body.light-theme .hp-compare-table,
body.light-theme .hp-compare-table > div[data-compare-metric],
body.light-theme .hp-market-card-head,
body.light-theme .hp-market-chart-head,
body.light-theme .hp-market-categories > div:not(.hp-market-empty) { border-color: rgba(92,35,137,.1); }
body.light-theme .hp-search { background: rgba(255,255,255,.78); }
body.light-theme .hp-search input { color: #21152d; }
body.light-theme .hp-search input::placeholder { color: rgba(33,21,45,.4); }
body.light-theme .hp-search > button { color: rgba(33,21,45,.68); border-color: rgba(92,35,137,.13); background: rgba(92,35,137,.055); box-shadow: none; }
body.light-theme .hp-search > button:hover { color: #7620bf; border-color: rgba(138,43,226,.3); background: rgba(138,43,226,.1); }
body.light-theme .hp-smart-entry > label { color: rgba(33,21,45,.42); }
body.light-theme .hp-entry-route { color: #21152d; border-color: rgba(36,189,117,.22); background: rgba(36,189,117,.08); }
body.light-theme .hp-category-panel,
body.light-theme .hp-tools-grid > a { border-color: rgba(92,35,137,.12); background-color: rgba(255,255,255,.62); }
body.light-theme .hp-finds-showcase {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
body.light-theme .hp-popular-section {
  background: transparent;
}
body.light-theme .hp-product-card {
  border-color: rgba(92,35,137,.12);
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(50,25,90,.08);
}
body.light-theme .hp-product-card:hover {
  border-color: rgba(138,43,226,.34);
  box-shadow: 0 22px 42px rgba(50,25,90,.14);
}
body.light-theme .hp-product-image { border-color: rgba(92,35,137,.1); }
body.light-theme .hp-product-image::after { background: linear-gradient(transparent, rgba(36,16,52,.12)); }
body.light-theme .hp-product-info h3 { color: #21152d; }
body.light-theme .hp-product-added,
body.light-theme .hp-product-stats span { border-color: rgba(92,35,137,.1); }
body.light-theme .hp-product-added small,
body.light-theme .hp-product-stats small { color: rgba(33,21,45,.42); }
body.light-theme .hp-product-added strong,
body.light-theme .hp-product-stats strong { color: rgba(33,21,45,.72); }
body.light-theme .hp-product-meta { border-color: rgba(92,35,137,.1); }
body.light-theme .hp-product-meta small { color: rgba(33,21,45,.42); }
body.light-theme .hp-product-rank { color: rgba(33,21,45,.72); text-shadow: 0 2px 12px rgba(255,255,255,.8); }
body.light-theme .hp-category-card { border-color: rgba(92,35,137,.11); background-color: rgba(255,255,255,.62); }
body.light-theme .hp-category-card::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.08) 100%); }
body.light-theme .hp-category-card > span { color: rgba(33,21,45,.5); }
body.light-theme .hp-category-card b { border-color: rgba(92,35,137,.12); color: rgba(33,21,45,.58); background: rgba(255,255,255,.68); }
body.light-theme .hp-dashboard-hero {
  border-color: rgba(138,43,226,0.16);
  background:
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,255,0.98));
  box-shadow: 0 22px 55px rgba(50,25,90,0.12), inset 0 1px 0 rgba(255,255,255,0.88);
}
body.light-theme .hp-featured-body {
  border-color: rgba(138,43,226,.16);
  background:
    radial-gradient(circle at 82% 18%, rgba(138,43,226,.14), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,244,255,.98));
  box-shadow: 0 18px 42px rgba(50,25,90,.12), inset 0 1px 0 rgba(255,255,255,.88);
}
body.light-theme .hp-product-tags span { border-color: rgba(92,35,137,.1); color: rgba(33,21,45,.56); background: rgba(92,35,137,.07); }
body.light-theme .hp-featured-bottom { border-color: rgba(92,35,137,.1); }
body.light-theme .hp-featured-bottom small { color: rgba(33,21,45,.42); }
body.light-theme .hp-featured-stats > div { border-color: rgba(92,35,137,.1); background: rgba(92,35,137,.055); }
body.light-theme .hp-featured-stats small { color: rgba(33,21,45,.42); }
body.light-theme .hp-featured-stats strong { color: #7f24c9; }
body.light-theme .hp-featured-date { border-color: rgba(92,35,137,.12); color: rgba(33,21,45,.55); background: rgba(92,35,137,.06); }
body.light-theme .hp-status-row { color: rgba(33,21,45,.38); }
body.light-theme .hp-status-row > span + span,
body.light-theme .hp-live-metrics article { border-color: rgba(92,35,137,.13); }
body.light-theme .hp-status-row,
body.light-theme .hp-live-metrics {
  border-color: rgba(92,35,137,.12);
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
body.light-theme .hp-status-cluster,
body.light-theme .hp-live-metrics article {
  border-color: rgba(92,35,137,.11);
}
body.light-theme .hp-status-label + .hp-db-status,
body.light-theme .hp-sellers-status { border-color: rgba(92,35,137,.11); }
body.light-theme .hp-metric-copy strong { color: #21152d; }
body.light-theme .hp-status-label,
body.light-theme .hp-metric-copy small { color: rgba(33,21,45,.4); }
body.light-theme .hp-metric-copy b { color: rgba(33,21,45,.52); }
body.light-theme .hp-metric-icon {
  border-color: rgba(138,43,226,.14);
  color: #8128c9;
  background: rgba(138,43,226,.075);
}
body.light-theme .hp-last-update {
  border-color: rgba(92,35,137,.11);
  color: rgba(33,21,45,.42);
  background: transparent;
}
body.light-theme .hp-quick-links { color: rgba(33,21,45,.4); }
body.light-theme .hp-quick-links button { color: rgba(33,21,45,.62); background: rgba(92,35,137,.07); }
body.light-theme .hp-featured-image { border-color: rgba(92,35,137,.11); background: radial-gradient(circle at 50% 42%,rgba(138,43,226,.13),transparent 48%),rgba(255,255,255,.62); }
@media (max-width: 1120px) {
  .hp-dashboard-hero { min-height: auto; grid-template-columns: 1fr; }
  .hp-featured-find { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; column-gap: 0; padding: 4px 8px 8px; }
  .hp-featured-head { grid-column: 1 / -1; }
  .hp-featured-image { min-height: 390px; }
  .hp-featured-body { width: auto; align-self: center; margin: 0 0 0 -38px; }
  .hp-latest-grid { grid-template-columns: 1fr 1fr; }
  .hp-tools-grid { grid-template-columns: 1fr 1fr; }
  .hp-split-section { grid-template-columns: 1fr; }
  .hp-insights-section { grid-template-columns: 1fr; }
  .hp-compare-shell { grid-template-columns: 1fr 1fr; }
  .hp-compare-table { grid-column: 1/-1; grid-row: 2; border: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .hp-market-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hp-dashboard-hero, .hp-content-section, .hp-split-section, .hp-tools-section, .hp-insights-section, .hp-compare-section, .hp-market-section, .hp-bottom-grid { width: calc(100% - 24px); }
  .hp-dashboard-hero { gap: 20px; padding: 18px; border-radius: 25px; }
  .hp-hero-main { padding: 26px 3px 18px; border-radius: 0; }
  .hp-hero-main h1 { max-width: 100%; font-size: clamp(2.65rem,11.5vw,3.7rem); letter-spacing: -.065em; }
  .hp-hero-main h1 span { display: inline; }
  .hp-hero-main > p { max-width: 100%; overflow-wrap: anywhere; }
  .hp-status-row { flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
  .hp-status-cluster { margin-left: 0; }
  .hp-search { height: auto; display: grid; grid-template-columns: 24px minmax(0,1fr) 48px; margin-top: 44px; padding: 10px; }
  .hp-smart-entry > label { bottom: calc(100% + 9px); left: 2px; }
  .hp-search { width: 100%; }
  .hp-search input { width: 100%; height: 42px; }
  .hp-search > button { width: 48px; grid-column: auto; }
  .hp-search-results { grid-column: 1/-1; }
  .hp-quick-links > span { width: 100%; }
  .hp-live-metrics { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hp-live-metrics article { min-width: 0; padding: 12px 10px; }
  .hp-live-metrics article:nth-child(2n) { border-right: 0; }
  .hp-live-metrics article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.075); }
  body.light-theme .hp-live-metrics article:nth-child(-n+2) { border-bottom-color: rgba(92,35,137,.11); }
  .hp-featured-find { display: flex; padding: 8px 0 12px; border-radius: 0; }
  .hp-featured-image { min-height: 330px; }
  .hp-featured-body {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    flex: 0 0 auto;
    align-self: center;
    margin-top: -55px;
    padding: 17px;
  }
  .hp-featured-bottom { gap: 12px; }
  .hp-content-section, .hp-tools-section, .hp-split-section, .hp-insights-section, .hp-compare-section, .hp-market-section { padding-top: 75px; }
  .hp-finds-showcase { padding: 0; border-radius: 0; }
  .hp-newest-section { margin-top: 75px; }
  .hp-popular-section { margin-top: 20px; }
  .hp-heading { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .hp-heading > a { margin-top: 4px; }
  .hp-finds-showcase .hp-heading > a { min-height: 40px; justify-self: start; }
  .hp-latest-grid, .hp-category-grid, .hp-tools-grid, .hp-bottom-grid { grid-template-columns: 1fr; }
  .hp-category-panel, .hp-agent-panel { padding: 25px 20px; }
  .hp-panel-head { align-items: flex-start; flex-direction: column; }
  .hp-bottom-grid { padding-top: 75px; }
  .hp-news-card { grid-template-columns: 1fr; }
  .hp-news-art { min-height: 230px; }
  .hp-health-main { grid-template-columns: 1fr; justify-items: start; }
  .hp-health-points { grid-template-columns: 1fr; }
  .hp-compare-shell { grid-template-columns: 1fr; }
  .hp-compare-table { grid-column: auto; grid-row: auto; }
  .hp-compare-image, .hp-compare-image img { min-height: 230px; height: 230px; }
  .hp-market-period { justify-self: start; }
  .hp-market-trends, .hp-market-chart-card { padding: 21px; }
  .hp-market-chart { height: 260px; }
}

@media (max-width: 440px) {
  .hp-status-row { display: grid; grid-template-columns: 1fr; }
  .hp-status-cluster { width: 100%; }
  .hp-status-cluster {
    justify-content: space-between;
    padding: 1px;
  }
  .hp-db-status { padding-right: 9px; }
  .hp-status-label { padding-right: 9px; }
  .hp-status-label + .hp-db-status { padding-left: 9px; }
  .hp-sellers-status { padding-left: 9px; }
  .hp-live-metrics { grid-template-columns: 1fr; }
  .hp-live-metrics article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
  }
  .hp-live-metrics article:last-child { border-bottom: 0; }
  body.light-theme .hp-live-metrics article { border-bottom-color: rgba(92,35,137,.11); }
  .hp-metric-copy strong { font-size: 1.15rem; }
  .hp-featured-bottom { grid-template-columns: 1fr 1fr; }
  .hp-featured-bottom a { grid-column: 1 / -1; justify-self: stretch; padding: 0 14px; }
}

/* =========================
   AUTH POPUP POLISH 2026
========================= */
.auth-modal {
  padding: clamp(16px, 3vw, 28px) !important;
}

.auth-backdrop {
  background:
    radial-gradient(circle at 22% 18%, rgba(138, 43, 226, 0.30), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(236, 72, 153, 0.14), transparent 34%),
    rgba(4, 0, 10, 0.76) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

.auth-card {
  width: min(440px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow: auto !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    radial-gradient(circle at 94% 0%, rgba(138, 43, 226, 0.30), transparent 42%),
    linear-gradient(180deg, rgba(23, 9, 38, 0.98), rgba(9, 3, 18, 0.99)) !important;
  background-size: 38px 38px, 38px 38px, auto, auto !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(138, 43, 226, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.auth-close {
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  z-index: 8 !important;
}

.auth-close:hover {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(181, 108, 255, 0.34) !important;
}

.auth-glow {
  opacity: 0.28 !important;
}

.auth-brand-row {
  align-items: center !important;
  gap: 13px !important;
  margin: 4px 44px 16px 0 !important;
}

.auth-logo-clean,
.auth-logo-dot {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  background: rgba(138, 43, 226, 0.18) !important;
  box-shadow: 0 14px 30px rgba(138, 43, 226, 0.26) !important;
}

.auth-kicker {
  margin-bottom: 5px !important;
  color: rgba(255, 255, 255, 0.50) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.10em !important;
}

.auth-card h2 {
  font-size: clamp(1.55rem, 4vw, 2rem) !important;
  letter-spacing: -0.02em !important;
}

.auth-subtitle {
  margin-bottom: 18px !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.auth-tabs {
  padding: 5px !important;
  margin-bottom: 18px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.auth-tab {
  height: 42px !important;
  border-radius: 11px !important;
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.58) !important;
}

.auth-tab.active {
  background: linear-gradient(135deg, #a855f7, #6d0fb2) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(138, 43, 226, 0.34) !important;
}

.auth-form {
  gap: 13px !important;
}

.auth-field {
  gap: 7px !important;
}

.auth-field > span {
  color: rgba(255, 255, 255, 0.54) !important;
  font-size: 0.70rem !important;
  letter-spacing: 0.075em !important;
}

.auth-input-wrap {
  height: 52px !important;
  border-radius: 14px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.auth-input-wrap:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.068) !important;
}

.auth-input-wrap:focus-within {
  border-color: rgba(168, 85, 247, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14) !important;
  background: rgba(255, 255, 255, 0.078) !important;
}

.auth-input-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  background: rgba(168, 85, 247, 0.15) !important;
  color: rgba(236, 224, 255, 0.92) !important;
}

.auth-input-wrap input {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
}

.auth-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

.auth-password-toggle {
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.085) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.auth-hint {
  margin-top: -2px !important;
  color: rgba(255, 255, 255, 0.50) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

.auth-primary-btn,
.auth-secondary-btn,
.auth-danger-btn {
  height: 52px !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  font-weight: 950 !important;
}

.auth-primary-btn {
  margin-top: 6px !important;
  background: linear-gradient(135deg, #a855f7, #6d0fb2) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 14px 30px rgba(138, 43, 226, 0.28) !important;
}

.auth-primary-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.08) !important;
}

.auth-secondary-btn {
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.auth-secondary-btn:hover {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.auth-message {
  margin: 13px 0 0 !important;
  min-height: 0 !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
}

.auth-message.show {
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.auth-signed-in {
  gap: 12px !important;
}

.auth-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  background: rgba(0, 255, 136, 0.14) !important;
  color: #00ff88 !important;
  border: 1px solid rgba(0, 255, 136, 0.18) !important;
}

body.light-theme .auth-backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(138, 43, 226, 0.20), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(236, 72, 153, 0.11), transparent 34%),
    rgba(246, 241, 252, 0.78) !important;
}

body.light-theme .auth-card {
  color: #17121f !important;
  background:
    linear-gradient(rgba(138,43,226,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,43,226,0.024) 1px, transparent 1px),
    radial-gradient(circle at 94% 0%, rgba(138,43,226,0.12), transparent 42%),
    rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(138, 43, 226, 0.16) !important;
  box-shadow: 0 28px 90px rgba(61, 27, 102, 0.18) !important;
}

body.light-theme .auth-kicker,
body.light-theme .auth-subtitle,
body.light-theme .auth-field > span,
body.light-theme .auth-hint {
  color: rgba(23, 18, 31, 0.58) !important;
}

body.light-theme .auth-card h2,
body.light-theme .auth-input-wrap input {
  color: #17121f !important;
}

body.light-theme .auth-tabs,
body.light-theme .auth-input-wrap,
body.light-theme .auth-secondary-btn,
body.light-theme .auth-close {
  background: rgba(138, 43, 226, 0.055) !important;
  border-color: rgba(138, 43, 226, 0.14) !important;
}

body.light-theme .auth-tab:not(.active),
body.light-theme .auth-secondary-btn,
body.light-theme .auth-close {
  color: rgba(23, 18, 31, 0.68) !important;
}

body.light-theme .auth-input-icon {
  background: rgba(138, 43, 226, 0.10) !important;
  color: #6d28d9 !important;
}

body.light-theme .auth-input-wrap input::placeholder {
  color: rgba(23, 18, 31, 0.36) !important;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .auth-brand-row {
    align-items: flex-start !important;
    flex-direction: column !important;
    margin-right: 44px !important;
    gap: 10px !important;
  }

  .auth-logo-clean,
  .auth-logo-dot {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
  }

  .auth-primary-btn,
  .auth-secondary-btn,
  .auth-danger-btn,
  .auth-input-wrap {
    height: 50px !important;
  }
}

/* Homepage surfaces share the Finds/Sellers hero background */
:root {
  --hp-unified-surface:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.024)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.26), transparent 34%),
    linear-gradient(180deg, rgba(28,9,47,0.94), rgba(12,4,22,0.98));
}

body.light-theme {
  --hp-unified-surface:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.44)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,255,0.98));
}

.hp-dashboard-hero,
.hp-featured-body,
.hp-featured-image,
.hp-live-metrics,
.hp-product-card,
.hp-category-panel,
.hp-agent-panel,
.hp-category-card,
.hp-tools-grid > a,
.hp-pulse-card,
.hp-health-card,
.hp-health-main,
.hp-health-points > div,
.hp-compare-shell,
.hp-compare-product,
.hp-compare-table,
.hp-market-trends,
.hp-market-chart-card,
.hp-news-card {
  background: var(--hp-unified-surface) !important;
}

.hp-agent-panel {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 44%, rgba(255,255,255,.16));
  background-clip: padding-box;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--agent-panel-primary) 48%, transparent), transparent 32%),
    radial-gradient(circle at 18% 88%, color-mix(in srgb, var(--agent-panel-secondary) 46%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(8,2,14,.08), rgba(8,2,14,.72)),
    var(--agent-panel-gradient) !important;
  box-shadow:
    0 20px 52px color-mix(in srgb, var(--agent-panel-secondary) 28%, transparent),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.hp-agent-panel::before {
  display: none;
}
.hp-agent-panel .hp-panel-kicker {
  color: color-mix(in srgb, var(--agent-panel-primary) 74%, var(--agent-panel-secondary));
}
.hp-agent-brand {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 26%, rgba(255,255,255,.1));
}
.hp-agent-benefits span {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 28%, rgba(255,255,255,.12));
  background:
    linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.026)),
    color-mix(in srgb, var(--agent-panel-secondary) 10%, transparent);
}
.hp-agent-benefits span::first-letter {
  color: var(--agent-panel-primary);
}
.hp-agent-panel > a {
  color: var(--agent-cta-text, #fff);
  background: var(--agent-panel-gradient);
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--agent-panel-secondary) 34%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.hp-agent-panel > a:hover {
  box-shadow:
    0 20px 44px color-mix(in srgb, var(--agent-panel-secondary) 44%, transparent),
    inset 0 1px 0 rgba(255,255,255,.2);
}

body.light-theme .hp-agent-brand {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 26%, rgba(255,255,255,.1));
}
body.light-theme .hp-agent-brand h2 {
  color: #fff;
}
body.light-theme .hp-agent-brand p,
body.light-theme .hp-agent-panel > small {
  color: rgba(255,255,255,.58);
}
body.light-theme .hp-agent-benefits {
  color: rgba(255,255,255,.82);
}
body.light-theme .hp-agent-benefits span {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 28%, rgba(255,255,255,.12));
  background:
    linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.026)),
    color-mix(in srgb, var(--agent-panel-secondary) 10%, transparent);
}
/* AUTH POPUP SCROLLBAR HOTFIX */
.auth-card {
  overflow: visible !important;
  max-height: none !important;
}

.auth-modal {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.auth-card::-webkit-scrollbar,
.auth-modal::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

@media (max-height: 720px), (max-width: 560px) {
  .auth-card {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100dvh - 28px) !important;
    scrollbar-width: none !important;
  }
}
/* AUTH POPUP STABLE CLEANUP */
.auth-card {
  width: min(430px, calc(100vw - 32px)) !important;
  min-height: 0 !important;
  display: block !important;
  padding: 28px !important;
  border-radius: 24px !important;
  overflow: visible !important;
  max-height: none !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(138, 43, 226, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(24, 10, 39, 0.98), rgba(10, 4, 18, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.auth-card::before,
.auth-card::after {
  content: none !important;
  display: none !important;
}

.auth-close {
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  z-index: 10 !important;
}

.auth-glow {
  display: none !important;
}

.auth-brand-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 46px 16px 0 !important;
}

.auth-logo-clean,
.auth-logo-dot {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  border-radius: 14px !important;
}

.auth-card h2 {
  max-width: none !important;
  font-size: 1.9rem !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}

.auth-subtitle {
  max-width: none !important;
  margin: 0 0 18px !important;
  color: rgba(255,255,255,0.68) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.auth-tabs,
.auth-form,
.auth-signed-in,
.auth-message {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.auth-tabs {
  margin: 0 0 18px !important;
  padding: 5px !important;
  border-radius: 15px !important;
}

.auth-tab {
  height: 42px !important;
  border-radius: 11px !important;
}

.auth-form {
  gap: 13px !important;
}

.auth-input-wrap {
  height: 52px !important;
  border-radius: 14px !important;
}

.auth-primary-btn,
.auth-secondary-btn,
.auth-danger-btn {
  height: 52px !important;
  border-radius: 14px !important;
}

.auth-primary-btn {
  margin-top: 6px !important;
}

.auth-message {
  margin-top: 12px !important;
}

body.light-theme .auth-card {
  color: #17121f !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(138, 43, 226, 0.16) !important;
  box-shadow: 0 28px 90px rgba(61, 27, 102, 0.18) !important;
}

@media (max-width: 560px), (max-height: 720px) {
  .auth-card {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100dvh - 28px) !important;
    padding: 22px !important;
    border-radius: 20px !important;
  }
}
/* AUTH POPUP SIDE LAYOUT - STABLE */
.auth-card {
  width: min(760px, calc(100vw - 34px)) !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: 290px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
  padding: 18px !important;
  border-radius: 24px !important;
}

.auth-card::before,
.auth-card::after {
  content: none !important;
  display: none !important;
}

.auth-side-panel {
  grid-column: 1 !important;
  grid-row: 1 / span 8 !important;
  min-height: 430px !important;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 28px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(168, 85, 247, 0.28), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(236, 72, 153, 0.12), transparent 34%),
    linear-gradient(158deg, rgba(81, 28, 132, 0.74), rgba(21, 7, 36, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  color: #fff !important;
  z-index: 2 !important;
}

.auth-side-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.auth-side-logo {
  width: 50px !important;
  height: 50px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 15px !important;
  background: rgba(18, 7, 35, 0.58) !important;
  color: #c589ff !important;
  font-size: 1.55rem !important;
  font-weight: 950 !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.auth-side-brand {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.7rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.14em !important;
}

.auth-side-copy {
  display: block !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.auth-side-panel span {
  display: block !important;
  margin-bottom: 8px !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
}

.auth-side-panel strong {
  display: block !important;
  max-width: 230px !important;
  color: #fff !important;
  font-size: 2rem !important;
  line-height: 0.98 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.auth-side-panel p {
  max-width: 232px !important;
  margin: 13px 0 0 !important;
  color: rgba(255,255,255,0.70) !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

.auth-side-list {
  display: grid !important;
  gap: 8px !important;
}

.auth-side-list i {
  min-height: 36px !important;
  padding: 0 11px 0 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.84) !important;
  font-style: normal !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
}

.auth-side-list i > span {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  background: rgba(168, 85, 247, 0.24) !important;
  color: #f4eaff !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.auth-close {
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 12 !important;
}

.auth-brand-row,
.auth-subtitle,
.auth-tabs,
.auth-form,
.auth-signed-in,
.auth-message {
  grid-column: 2 !important;
  margin-left: 0 !important;
  margin-right: 34px !important;
}

.auth-brand-row {
  margin-top: 24px !important;
  margin-bottom: 14px !important;
}

.auth-logo-clean,
.auth-logo-dot {
  display: none !important;
}

.auth-card h2 {
  font-size: 2rem !important;
  line-height: 1 !important;
  max-width: none !important;
}

.auth-subtitle {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.auth-tabs {
  margin-bottom: 18px !important;
}

.auth-form {
  gap: 13px !important;
}

.auth-message {
  margin-top: 12px !important;
}

.auth-signed-in {
  margin-top: 72px !important;
  justify-content: center !important;
}

body.light-theme .auth-side-panel {
  background:
    radial-gradient(circle at 24% 12%, rgba(138, 43, 226, 0.20), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(236, 72, 153, 0.10), transparent 32%),
    linear-gradient(160deg, rgba(250, 247, 255, 0.98), rgba(232, 219, 252, 0.94)) !important;
  border-color: rgba(138, 43, 226, 0.16) !important;
  color: #17121f !important;
}

body.light-theme .auth-side-panel strong {
  color: #17121f !important;
}

body.light-theme .auth-side-panel span,
body.light-theme .auth-side-panel p {
  color: rgba(23,18,31,0.62) !important;
}

body.light-theme .auth-side-brand {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .auth-side-list i {
  background: rgba(138, 43, 226, 0.075) !important;
  border-color: rgba(138, 43, 226, 0.12) !important;
  color: rgba(23,18,31,0.72) !important;
}

body.light-theme .auth-side-list i > span {
  background: rgba(138, 43, 226, 0.14) !important;
  color: #6815b2 !important;
}

@media (max-width: 760px), (max-height: 700px) {
  .auth-card {
    width: min(430px, calc(100vw - 28px)) !important;
    display: block !important;
    padding: 22px !important;
    max-height: calc(100dvh - 28px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .auth-side-panel {
    display: none !important;
  }

  .auth-brand-row,
  .auth-subtitle,
  .auth-tabs,
  .auth-form,
  .auth-signed-in,
  .auth-message {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .auth-brand-row {
    margin-top: 0 !important;
  }

  .auth-logo-clean,
  .auth-logo-dot {
    display: block !important;
  }
}
/* AUTH MEMBER PROOF */
.auth-side-panel .auth-member-proof[data-auth-member-proof] {
  margin-top: 16px !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-align: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.66) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
}

.auth-side-panel .auth-member-proof[data-auth-member-proof] > span,
.auth-side-panel .auth-member-proof[data-auth-member-proof] > b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.auth-side-panel .auth-member-proof[data-auth-member-proof] > span {
  color: rgba(255, 255, 255, 0.66) !important;
  font-weight: 850 !important;
}

.auth-side-panel .auth-member-proof[data-auth-member-proof] > b {
  color: #ffffff !important;
  font-weight: 950 !important;
}

body.light-theme .auth-side-panel .auth-member-proof[data-auth-member-proof] {
  background: rgba(138, 43, 226, 0.08) !important;
  border-color: rgba(138, 43, 226, 0.14) !important;
  color: rgba(43, 18, 58, 0.62) !important;
}

body.light-theme .auth-side-panel .auth-member-proof[data-auth-member-proof] > span {
  color: rgba(43, 18, 58, 0.62) !important;
}

body.light-theme .auth-side-panel .auth-member-proof[data-auth-member-proof] > b {
  color: #2b123a !important;
}
/* AUTH CLOSE RIGHT FIX */
.auth-card > .auth-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 16px !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 30 !important;
}

@media (max-width: 720px) {
  .auth-card > .auth-close {
    top: 14px !important;
    right: 14px !important;
    inset-inline-end: 14px !important;
  }
}

/* FIRST-VISIT POPUP STATIC LOGO + NO SCROLL */
#first-visit-overlay.pref-popup-overlay {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#first-visit-overlay .pref-popup-card {
  max-height: none !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#first-visit-overlay .pref-popup-card::-webkit-scrollbar,
#first-visit-overlay.pref-popup-overlay::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

#first-visit-overlay .pref-popup-logo {
  padding: 7px !important;
  overflow: hidden;
  line-height: 0;
  background: rgba(255, 255, 255, 0.075) !important;
}

#first-visit-overlay .pref-popup-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* FINDS GRID PERFORMANCE */
#products-grid > .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

/* FINDS INIT FLASH GUARD */
body.finds-loading {
  overflow: hidden;
}

html:has(body.finds-loading) {
  overflow: hidden;
}

html.finds-loading-root {
  overflow: hidden;
}

body.finds-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  background:
    radial-gradient(circle at 50% 42%, rgba(138, 43, 226, 0.18), transparent 28%),
    #05000e;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.finds-loading::after {
  content: "Loading finds";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2147482001;
  width: 150px;
  min-height: 88px;
  display: grid;
  place-items: end center;
  padding: 58px 0 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  box-shadow: none;
  font-size: 0.70rem;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

body.finds-loading .header-main::before {
  content: "";
  position: fixed;
  left: 50%;
  top: calc(50% - 18px);
  z-index: 2147482002;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.13);
  border-top-color: #c084fc;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.24);
  transform: translate(-50%, -50%);
  animation: findsPageSpin 0.82s linear infinite;
}

body.finds-loading .header-main::after {
  content: none;
}

body.finds-loading #zenithdeck-count-big,
body.finds-loading #finds-visible-count {
  visibility: hidden;
}

body.finds-loading .products-container {
  opacity: 0;
}

body.repdatabase-finds-ready .products-container {
  opacity: 1;
  transition: opacity 0.16s ease;
}

@keyframes findsPageSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* Account button icon-only navbar cleanup */
.nav-account-icon-only {
  width: 44px;
  min-width: 44px;
  padding: 0;
  justify-content: center;
}

.nav-account-icon-only .btn-icon {
  width: 19px;
  height: 19px;
}

/* Account Center — graphite hero visual system */
.user-center-overlay {
  background: rgba(3, 1, 7, .88);
  backdrop-filter: blur(16px);
}

.user-center-shell {
  border-color: rgba(255,255,255,.10);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.014)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,.16), transparent 30%),
    linear-gradient(180deg, rgba(28,9,47,.97), rgba(12,4,22,.99));
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.07);
}

.user-center-shell::before {
  display: none;
}

.user-center-topbar {
  border-bottom-color: rgba(255,255,255,.08);
  background: rgba(9,9,11,.66);
}

.user-center-sidebar {
  border-right-color: rgba(255,255,255,.08);
  background: rgba(9,9,11,.48);
}

.user-center-content {
  background: rgba(9,9,11,.2);
}

.user-profile-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(9,9,11,.55);
  box-shadow: inset 0 1px rgba(255,255,255,.05);
}

.account-dashboard {
  background: transparent;
}

.account-welcome-card {
  border-color: rgba(255,255,255,.10);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.024)),
    radial-gradient(circle at 82% 18%, rgba(138,43,226,.22), transparent 34%),
    linear-gradient(180deg, rgba(28,9,47,.95), rgba(12,4,22,.98));
  background-size: auto;
  box-shadow: 0 20px 48px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07);
}

.account-welcome-card::before {
  display: none;
}

.account-welcome-card h2 span {
  color: #c084fc;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.account-dashboard-card,
.account-stat-card {
  border-color: rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(9,9,11,.5);
  box-shadow: 0 16px 38px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.045);
}

.account-stat-card::after,
.account-quick-grid a::after,
.account-preferences-card::after {
  display: none;
}

button.account-stat-card:hover,
.account-quick-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,.28);
  box-shadow: 0 18px 38px rgba(0,0,0,.2);
}

.account-stat-icon,
.account-quick-grid i,
.account-preference-grid i {
  border-color: rgba(168,85,247,.18);
  border-radius: 11px;
  background: rgba(138,43,226,.1);
  box-shadow: none;
}

.account-product-preview,
.account-quick-grid a,
.account-preference-grid > div {
  border-color: rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.026);
}

.account-product-open {
  background: #8a2be2;
  box-shadow: none;
}

body.light-theme .user-center-shell {
  border-color: rgba(138,43,226,.16);
  background:
    radial-gradient(circle at 82% 18%, rgba(138,43,226,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,244,255,.99));
  box-shadow: 0 30px 90px rgba(50,25,90,.18), inset 0 1px rgba(255,255,255,.9);
}

body.light-theme .user-center-topbar,
body.light-theme .user-center-sidebar {
  border-color: rgba(138,43,226,.1);
  background: rgba(255,255,255,.58);
}

body.light-theme .user-center-content {
  background: rgba(248,244,255,.34);
}

body.light-theme .user-profile-card,
body.light-theme .account-welcome-card,
body.light-theme .account-dashboard-card,
body.light-theme .account-stat-card {
  border-color: rgba(138,43,226,.13);
  background:
    radial-gradient(circle at 82% 18%, rgba(138,43,226,.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,244,255,.98));
  background-size: auto;
  box-shadow: 0 16px 38px rgba(50,25,90,.08), inset 0 1px rgba(255,255,255,.9);
}

body.light-theme .account-product-preview,
body.light-theme .account-quick-grid a,
body.light-theme .account-preference-grid > div {
  border-color: rgba(138,43,226,.1);
  background: rgba(138,43,226,.035);
}

@media (max-width: 640px) {
  .user-center-shell {
    border-radius: 0;
  }

  .account-welcome-card,
  .account-dashboard-card,
  .account-stat-card {
    border-radius: 14px;
  }
}

/* LEGAL PAGES */
.legal-page-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 0 95px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid rgba(181,108,255,.18);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(138,43,226,.24), transparent 36%),
    linear-gradient(145deg, rgba(38,13,62,.92), rgba(12,4,23,.97));
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}

.legal-hero > span,
.legal-section > span {
  color: #b56cff;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.legal-hero p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255,255,255,.58);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 10px 13px;
  border: 1px solid rgba(86,243,154,.18);
  border-radius: 999px;
  color: #74f5ad;
  background: rgba(86,243,154,.07);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-content {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.legal-section {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  color: rgba(255,255,255,.66);
  background:
    radial-gradient(circle at 100% 0%, rgba(138,43,226,.12), transparent 34%),
    rgba(255,255,255,.032);
}

.legal-section h2 {
  margin-top: 9px;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  letter-spacing: -.045em;
}

.legal-section p,
.legal-section li {
  margin-top: 13px;
  line-height: 1.75;
}

.legal-section ul { margin: 14px 0 0 18px; }
.legal-section strong { color: rgba(255,255,255,.9); }
.legal-section a { color: #c17bff; font-weight: 850; text-decoration: none; }
.legal-section a:hover { color: #fff; }

.legal-callout {
  border-color: rgba(88,101,242,.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(88,101,242,.2), transparent 36%),
    rgba(88,101,242,.055);
}

body.light-theme .legal-hero {
  color: #21152d;
  border-color: rgba(138,43,226,.16);
  background:
    radial-gradient(circle at 86% 18%, rgba(138,43,226,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,244,255,.98));
  box-shadow: 0 22px 55px rgba(50,25,90,.12);
}

body.light-theme .legal-hero h1,
body.light-theme .legal-section h2 { color: #21152d; }

body.light-theme .legal-section strong { color: #21152d; }

body.light-theme .legal-hero p,
body.light-theme .legal-section { color: rgba(33,21,45,.62); }

body.light-theme .legal-section {
  border-color: rgba(92,35,137,.12);
  background-color: rgba(255,255,255,.62);
}

/* AUTH POPUP REDESIGN 2026 */
.auth-card {
  width: min(780px, calc(100vw - 34px)) !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 24px !important;
  border-radius: 24px !important;
}

.auth-side-panel {
  min-height: 430px !important;
  padding: 22px !important;
  gap: 28px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(168, 85, 247, 0.28), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(236, 72, 153, 0.12), transparent 34%),
    linear-gradient(158deg, rgba(81, 28, 132, 0.74), rgba(21, 7, 36, 0.98)) !important;
}

.auth-side-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.auth-side-logo {
  width: 50px !important;
  height: 50px !important;
  border-radius: 15px !important;
  background: rgba(18, 7, 35, 0.58) !important;
  color: #c589ff !important;
  font-size: 1.55rem !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.auth-side-brand {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.7rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.14em !important;
}

.auth-side-copy {
  display: block !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.auth-side-panel strong {
  max-width: 230px !important;
  font-size: 2rem !important;
  line-height: 0.98 !important;
  letter-spacing: -0.02em !important;
}

.auth-side-panel p {
  max-width: 232px !important;
  margin-top: 13px !important;
  color: rgba(255,255,255,0.70) !important;
  line-height: 1.5 !important;
}

.auth-side-list {
  gap: 8px !important;
}

.auth-side-list i {
  min-height: 36px !important;
  padding: 0 11px 0 10px !important;
  gap: 9px !important;
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.84) !important;
}

.auth-side-list i > span {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  background: rgba(168, 85, 247, 0.24) !important;
  color: #f4eaff !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.auth-input-icon svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.15 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.light-theme .auth-side-brand {
  color: rgba(23,18,31,0.58) !important;
}

body.light-theme .auth-side-list i > span {
  background: rgba(138, 43, 226, 0.14) !important;
  color: #6815b2 !important;
}

@media (max-width: 760px), (max-height: 700px) {
  .auth-card {
    width: min(430px, calc(100vw - 28px)) !important;
    display: block !important;
  }
}

/* Refined first-visit setup: clean glass surface, without the old square grid. */
#first-visit-overlay .pref-popup-card {
  width: min(880px, 100%) !important;
  padding: clamp(26px, 4vw, 42px) !important;
  border-color: rgba(205, 166, 255, 0.16) !important;
  background:
    radial-gradient(ellipse 62% 74% at 100% 0%, rgba(151, 52, 247, 0.28), transparent 68%),
    radial-gradient(ellipse 48% 58% at 0% 100%, rgba(78, 27, 144, 0.22), transparent 72%),
    linear-gradient(145deg, #18072b 0%, #0d0418 52%, #07020d 100%) !important;
  background-size: auto !important;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

body.light-theme #first-visit-overlay .pref-popup-card {
  background:
    radial-gradient(ellipse 62% 74% at 100% 0%, rgba(151, 52, 247, 0.28), transparent 68%),
    radial-gradient(ellipse 48% 58% at 0% 100%, rgba(78, 27, 144, 0.22), transparent 72%),
    linear-gradient(145deg, #18072b 0%, #0d0418 52%, #07020d 100%) !important;
  background-size: auto !important;
}

#first-visit-overlay .pref-popup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(26px, 4vw, 42px);
  right: clamp(26px, 4vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 177, 255, 0.58), transparent);
  pointer-events: none;
}

#first-visit-overlay .pref-popup-brand h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
  line-height: 0.98 !important;
}

#first-visit-overlay .pref-popup-text {
  max-width: 590px !important;
  color: rgba(255,255,255,0.66) !important;
}

#first-visit-overlay .pref-popup-grid {
  gap: 16px !important;
}

#first-visit-overlay .pref-popup-field {
  padding: 18px !important;
  border-color: rgba(255,255,255,0.075) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.064), rgba(255,255,255,0.022)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

#first-visit-overlay .pref-popup-dropdown-trigger,
#first-visit-overlay .pref-popup-theme-option > span {
  border-radius: 13px !important;
  background: rgba(7, 2, 15, 0.66) !important;
}

#first-visit-overlay .pref-popup-footer {
  margin-top: 22px !important;
  padding-top: 22px !important;
}

#first-visit-overlay .pref-popup-confirm-btn {
  min-width: 236px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #b84dff 0%, #7b16db 58%, #6410bb 100%) !important;
  box-shadow: 0 17px 38px rgba(129, 29, 224, 0.34), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}

/* The loader is only visible while submitting; this removes the stray white sliver. */
#login-btn:not(.is-loading) .auth-btn-loader,
#auth-open-user-center:not(.is-loading) .auth-btn-loader {
  display: none !important;
}

#login-btn.is-loading .auth-btn-loader {
  display: block !important;
  flex: 0 0 18px !important;
}

/* =========================================================
   HOMEPAGE LIGHT PALETTE — Dreamy Periwinkle
   Homepage only: white canvas with #E7D8FF -> #B8C0FF surfaces.
========================================================= */
body.home-page.light-theme {
  --hp-lilac: #e7d8ff;
  --hp-periwinkle: #b8c0ff;
  --hp-ink: #19182a;
  --hp-muted: rgba(25, 24, 42, 0.62);
  --hp-border: rgba(91, 91, 158, 0.16);
  --hp-gradient: linear-gradient(145deg, #e7d8ff 0%, #ced0ff 48%, #b8c0ff 100%);
  --hp-gradient-reverse: linear-gradient(145deg, #b8c0ff 0%, #ced0ff 52%, #e7d8ff 100%);
  color: var(--hp-ink) !important;
  background: #e8e6f7 !important;
}

body.home-page.light-theme .content-area {
  background: #e8e6f7 !important;
}

body.home-page.light-theme .nav-container {
  border-color: rgba(77, 79, 132, .15) !important;
  background: linear-gradient(145deg, #e7d8ff 0%, #ced0ff 48%, #b8c0ff 100%) !important;
  box-shadow: 0 16px 38px rgba(101, 105, 173, 0.16), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

body.home-page.light-theme .nav-search,
body.home-page.light-theme #user-center-toggle.nav-account-icon-only {
  border-color: rgba(86, 88, 145, 0.16) !important;
  background: rgba(255,255,255,.68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 20px rgba(89,91,151,.08) !important;
}

body.home-page.light-theme .nav-search-enhanced .nav-search-icon {
  color: rgba(63, 71, 117, .76) !important;
}

body.home-page.light-theme .nav-search-enhanced:focus-within .nav-search-icon {
  color: #626b9c !important;
}

body.home-page.light-theme #user-center-toggle.nav-account-icon-only.nav-auth-login:hover {
  transform: none !important;
  border-color: rgba(86, 88, 145, 0.16) !important;
  background: rgba(255,255,255,.68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 20px rgba(89,91,151,.08) !important;
  filter: none !important;
}

body.home-page.light-theme #user-center-toggle.nav-account-icon-only.nav-auth-login:hover::before {
  opacity: 0 !important;
}

body.home-page.light-theme .nav-logo .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--hp-ink) !important;
  font-size: 1.38rem;
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
}

body.home-page.light-theme .nav-brand-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background: rgba(255,255,255,.46);
  box-shadow: 0 9px 22px rgba(81,76,145,.18), inset 0 1px 0 rgba(255,255,255,.82);
  object-fit: cover;
}

body.home-page.light-theme .nav-brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3f4775 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  white-space: nowrap;
}

body.home-page.light-theme .nav-brand-wordmark b {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 9px;
  color: #4b548a;
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 6px 15px rgba(93,80,150,.1);
  font: 900 .72em/1 var(--main-font);
  letter-spacing: -.035em;
}

@media (min-width: 993px) {
  body.home-page.light-theme .nav-menu {
    margin-left: 82px !important;
  }
}

body.home-page.light-theme .nav-link:not(.active):hover {
  color: var(--hp-ink) !important;
  background: linear-gradient(135deg, rgba(184,192,255,.72), rgba(223,227,255,.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 7px 17px rgba(85,88,146,.1) !important;
  transform: translateY(-1px);
}

body.home-page.light-theme #user-center-toggle.nav-account-icon-only.is-logged-in,
body.home-page.light-theme #user-center-toggle.nav-account-icon-only.is-logged-in:hover {
  transform: none !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page.light-theme #user-center-toggle.nav-account-icon-only.is-logged-in::before,
body.home-page.light-theme #user-center-toggle.nav-account-icon-only.is-logged-in:hover::before {
  opacity: 0 !important;
}

body.home-page.light-theme .nav-link.active,
body.home-page.light-theme .nav-auth-signup {
  border-color: rgba(255,255,255,.5) !important;
  color: var(--hp-ink) !important;
  background: rgba(255,255,255,.58) !important;
  box-shadow: 0 8px 20px rgba(86,88,145,.12), inset 0 1px 0 rgba(255,255,255,.76) !important;
}

body.home-page.light-theme .hp-dashboard-hero {
  border-color: rgba(77, 79, 132, .15) !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(255,255,255,.58), transparent 28%),
    linear-gradient(145deg, #e7d8ff 0%, #ced0ff 48%, #b8c0ff 100%) !important;
  box-shadow: 0 24px 58px rgba(95,98,163,.16), inset 0 1px 0 rgba(255,255,255,.7) !important;
}

body.home-page.light-theme .hp-dashboard-hero::before {
  display: none !important;
  opacity: 0 !important;
}

body.home-page.light-theme .hp-hero-main h1 {
  line-height: 1.04;
  letter-spacing: -.052em;
}

body.home-page.light-theme .hp-hero-main h1 span,
body.home-page.light-theme .hp-heading > div > span,
body.home-page.light-theme .hp-panel-head span,
body.home-page.light-theme .hp-panel-kicker,
body.home-page.light-theme .hp-featured-head span,
body.home-page.light-theme .hp-insight-head > div > span,
body.home-page.light-theme .hp-market-card-head > span,
body.home-page.light-theme .hp-market-chart-head span,
body.home-page.light-theme .hp-product-card .hp-product-rank {
  color: #565aa6 !important;
}

body.home-page.light-theme .hp-search,
body.home-page.light-theme .hp-status-row,
body.home-page.light-theme .hp-live-metrics,
body.home-page.light-theme .hp-featured-body {
  border-color: rgba(77,79,132,.15) !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(89,91,151,.08) !important;
}

body.home-page.light-theme .hp-status-row {
  min-height: 42px;
  padding: 6px;
  border-color: rgba(86,88,145,.12) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(184,192,255,.16)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 20px rgba(89,91,151,.07) !important;
  transform: none;
}

@media (min-width: 721px) {
  body.home-page.light-theme .hp-status-row {
    position: absolute;
    z-index: 5;
    top: calc(23px - clamp(28px, 3.2vw, 48px));
    left: calc(23px - clamp(28px, 3.2vw, 48px));
    margin: 0;
    transform: none;
  }
}

body.home-page.light-theme .hp-status-cluster {
  gap: 7px;
}

body.home-page.light-theme .hp-status-label {
  padding: 0 7px;
  color: rgba(63,71,117,.58) !important;
}

body.home-page.light-theme .hp-status-label + .hp-db-status,
body.home-page.light-theme .hp-sellers-status {
  border-left: 0;
}

body.home-page.light-theme .hp-db-status {
  min-height: 28px;
  gap: 7px;
  padding: 0 10px !important;
  border: 1px solid rgba(86,88,145,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

body.home-page.light-theme .hp-db-status i {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  background: #58b98f;
  box-shadow: 0 0 0 3px rgba(88,185,143,.11);
  animation: none;
}

body.home-page.light-theme .hp-db-status strong {
  color: #3f4775;
  letter-spacing: .045em;
}

body.home-page.light-theme .hp-last-update {
  min-height: 28px;
  padding: 0 8px;
  border-left: 0;
  color: rgba(63,71,117,.52) !important;
}

@media (max-width: 440px) {
  body.home-page.light-theme .hp-status-row,
  body.home-page.light-theme .hp-status-cluster {
    width: 100%;
  }

  body.home-page.light-theme .hp-status-cluster {
    gap: 6px;
  }

  body.home-page.light-theme .hp-status-label,
  body.home-page.light-theme .hp-last-update {
    display: none;
  }

  body.home-page.light-theme .hp-db-status {
    min-width: 0;
    flex: 1 1 50%;
    justify-content: center;
  }
}

body.home-page.light-theme .hp-featured-body {
  border-color: rgba(91,91,158,.14) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow:
    0 18px 42px rgba(89,91,151,.14),
    0 0 34px rgba(184,192,255,.2),
    inset 0 1px 0 #fff !important;
}

body.home-page.light-theme .hp-featured-head a {
  padding: 7px 10px;
  border: 1px solid rgba(86,88,145,.13);
  border-radius: 9px;
  color: #3f4775 !important;
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body.home-page.light-theme .hp-featured-head a:hover {
  border-color: rgba(86,88,145,.26);
  color: #30375f !important;
  background: rgba(184,192,255,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 7px 16px rgba(89,91,151,.11);
}

body.home-page.light-theme .hp-featured-body h2 {
  color: var(--hp-ink) !important;
}

body.home-page.light-theme .hp-featured-body .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-body .hp-featured-stats > div {
  border-color: rgba(86,88,145,.12) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(184,192,255,.12)) !important;
  box-shadow: inset 0 1px 0 #fff !important;
}

body.home-page.light-theme .hp-featured-stats > div::after {
  display: none;
}

body.home-page.light-theme .hp-featured-body .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-stats small,
body.home-page.light-theme .hp-featured-bottom small {
  color: rgba(63,71,117,.62) !important;
}

body.home-page.light-theme .hp-featured-date::before,
body.home-page.light-theme .hp-featured-stats strong {
  color: #565aa6 !important;
}

body.home-page.light-theme .hp-finds-showcase .hp-heading > div > span {
  font-size: .78rem;
  letter-spacing: .16em;
}

body.home-page.light-theme .hp-finds-showcase .hp-heading h2 {
  margin-top: 10px;
  font-size: clamp(2.35rem, 3.4vw, 3.25rem);
  line-height: 1;
}

body.home-page.light-theme .hp-finds-showcase .hp-heading > a {
  min-height: 44px;
  padding-inline: 18px;
  border-color: rgba(255,255,255,.58) !important;
  color: #3f4775 !important;
  background: linear-gradient(135deg, rgba(184,192,255,.9), rgba(223,227,255,.9)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(86,89,151,.13);
}

body.home-page.light-theme .hp-finds-showcase .hp-heading > a:hover {
  border-color: rgba(86,88,145,.23) !important;
  color: #30375f !important;
  background: linear-gradient(135deg, rgba(223,227,255,.98), rgba(184,192,255,.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 13px 28px rgba(86,89,151,.18);
  transform: translateX(3px) translateY(-1px);
}

body.home-page.light-theme .hp-featured-stats > div:hover {
  border-color: rgba(86,88,145,.24) !important;
  background: rgba(184,192,255,.3) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 7px 16px rgba(89,91,151,.09) !important;
}

body.home-page.light-theme .hp-featured-bottom {
  border-top-color: rgba(86,88,145,.12) !important;
}

body.home-page.light-theme .hp-search:focus-within {
  border-color: rgba(98,107,156,.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 0 0 3px rgba(98,107,156,.08),
    0 12px 28px rgba(89,91,151,.1) !important;
}

body.home-page.light-theme .hp-search > .hp-search-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: rgba(98,107,156,.66) !important;
  font-size: 0;
}

body.home-page.light-theme .hp-search > .hp-search-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body.home-page.light-theme .hp-search:focus-within > .hp-search-icon {
  color: #626b9c !important;
}

body.home-page.light-theme .hp-search > input[type="search"] {
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: var(--hp-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

body.home-page.light-theme .hp-search > input[type="search"]::-webkit-search-decoration,
body.home-page.light-theme .hp-search > input[type="search"]::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

body.home-page.light-theme .hp-search > button {
  border-color: rgba(86,88,145,.16) !important;
  color: #626b9c !important;
  background: rgba(255,255,255,.5) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 6px 16px rgba(89,91,151,.07) !important;
  transform: none !important;
}

body.home-page.light-theme .hp-search > button:hover {
  border-color: rgba(86,88,145,.28) !important;
  color: #3f4775 !important;
  background: rgba(184,192,255,.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 8px 18px rgba(89,91,151,.1) !important;
  transform: none !important;
}

body.home-page.light-theme .hp-search > button:focus-visible {
  outline: 3px solid rgba(98,107,156,.2) !important;
  outline-offset: 2px;
}

body.home-page.light-theme .hp-search-results {
  border-color: var(--hp-border) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 20px 42px rgba(76,78,132,.18) !important;
}

body.home-page.light-theme .hp-search-result,
body.home-page.light-theme .hp-search-result strong,
body.home-page.light-theme .hp-search-empty {
  color: var(--hp-ink) !important;
}

body.home-page.light-theme .hp-search-result:hover,
body.home-page.light-theme .hp-quick-links button,
body.home-page.light-theme .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-stats > div,
body.home-page.light-theme .hp-pulse-list > div,
body.home-page.light-theme .hp-health-main,
body.home-page.light-theme .hp-health-points > div {
  border-color: rgba(77,79,132,.12) !important;
  background: rgba(255,255,255,.48) !important;
}

body.home-page.light-theme .hp-quick-links button {
  color: rgba(63,71,117,.72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.home-page.light-theme .hp-quick-links button:hover {
  color: #3f4775 !important;
  background: rgba(184,192,255,.52) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 7px 16px rgba(89,91,151,.12) !important;
  transform: translateY(-1px);
}

body.home-page.light-theme .hp-metric-icon,
body.home-page.light-theme .hp-featured-stat-icon,
body.home-page.light-theme .hp-compare-table-head b {
  border-color: rgba(77,79,132,.14) !important;
  color: #565aa6 !important;
  background: rgba(255,255,255,.58) !important;
}

body.home-page.light-theme .hp-featured-image,
body.home-page.light-theme .hp-product-image,
body.home-page.light-theme .hp-compare-image {
  border-color: rgba(77,79,132,.12) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(223,227,255,.45)) !important;
}

body.home-page.light-theme .hp-featured-image::after,
body.home-page.light-theme .hp-product-image::after {
  background: linear-gradient(180deg, transparent 62%, rgba(100,103,166,.12)) !important;
}

body.home-page.light-theme .hp-product-card,
body.home-page.light-theme .hp-category-panel,
body.home-page.light-theme .hp-agent-panel,
body.home-page.light-theme .hp-pulse-card,
body.home-page.light-theme .hp-health-card,
body.home-page.light-theme .hp-compare-shell,
body.home-page.light-theme .hp-market-trends,
body.home-page.light-theme .hp-market-chart-card,
body.home-page.light-theme .hp-news-card,
body.home-page.light-theme .hp-community-card {
  border-color: var(--hp-border) !important;
  color: var(--hp-ink) !important;
  background: var(--hp-gradient) !important;
  box-shadow: 0 16px 36px rgba(96,99,164,.12), inset 0 1px 0 rgba(255,255,255,.68) !important;
}

body.home-page.light-theme .hp-product-card:nth-child(even),
body.home-page.light-theme .hp-health-card,
body.home-page.light-theme .hp-market-chart-card,
body.home-page.light-theme .hp-community-card {
  background: var(--hp-gradient-reverse) !important;
}

body.home-page.light-theme .hp-product-card:hover,
body.home-page.light-theme .hp-category-card:hover {
  border-color: rgba(83,86,153,.32) !important;
  box-shadow: 0 23px 44px rgba(91,94,158,.18) !important;
}

body.home-page.light-theme .hp-category-card {
  border-color: rgba(77,79,132,.13) !important;
  color: var(--hp-ink) !important;
  background: rgba(255,255,255,.42) !important;
}

body.home-page.light-theme .hp-category-card::after {
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.72) 48%, rgba(255,255,255,.04) 100%) !important;
}

body.home-page.light-theme .hp-agent-panel::before,
body.home-page.light-theme .hp-community-card::before {
  background: linear-gradient(135deg, rgba(255,255,255,.38), transparent 42%, rgba(101,105,177,.09)) !important;
}

body.home-page.light-theme .hp-agent-brand {
  border-color: rgba(77,79,132,.13) !important;
}

body.home-page.light-theme .hp-agent-benefits,
body.home-page.light-theme .hp-agent-brand h2,
body.home-page.light-theme .hp-agent-brand p,
body.home-page.light-theme .hp-agent-panel > small,
body.home-page.light-theme .hp-news-copy h2,
body.home-page.light-theme .hp-news-copy p,
body.home-page.light-theme .hp-community-card h2,
body.home-page.light-theme .hp-community-card p,
body.home-page.light-theme .hp-community-card > span {
  color: var(--hp-ink) !important;
}

body.home-page.light-theme .hp-agent-benefits span {
  border-color: rgba(77,79,132,.12) !important;
  background: rgba(255,255,255,.4) !important;
}

body.home-page.light-theme .hp-agent-panel > a,
body.home-page.light-theme .hp-featured-bottom a,
body.home-page.light-theme .hp-community-card > a {
  border: 1px solid rgba(255,255,255,.52) !important;
  color: var(--hp-ink) !important;
  background: linear-gradient(135deg, #b8c0ff, #dfe3ff) !important;
  box-shadow: 0 13px 28px rgba(86,89,151,.16), inset 0 1px 0 rgba(255,255,255,.68) !important;
}

/* Keep the selected agent's identity, softened into the homepage palette. */
body.home-page.light-theme .hp-agent-panel {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 24%, rgba(40,40,40,.12)) !important;
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--agent-panel-primary) 16%, transparent), transparent 38%),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--agent-panel-secondary) 13%, transparent), transparent 36%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--agent-panel-primary) 15%, #fff) 0%,
      color-mix(in srgb, var(--agent-panel-secondary) 17%, #fff) 100%) !important;
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--agent-panel-secondary) 11%, transparent),
    inset 0 1px 0 rgba(255,255,255,.7) !important;
}

body.home-page.light-theme .hp-agent-panel .hp-panel-kicker {
  color: color-mix(in srgb, var(--agent-panel-secondary) 42%, #3f3f46) !important;
}

body.home-page.light-theme .hp-agent-brand {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 16%, rgba(40,40,40,.12)) !important;
}

body.home-page.light-theme .hp-agent-brand img {
  box-shadow:
    0 13px 28px rgba(40,40,40,.11),
    0 0 0 1px rgba(255,255,255,.68),
    0 0 24px color-mix(in srgb, var(--agent-panel-secondary) 12%, transparent) !important;
}

body.home-page.light-theme .hp-agent-benefits span {
  border-color: color-mix(in srgb, var(--agent-panel-secondary) 15%, rgba(40,40,40,.1)) !important;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--agent-panel-primary) 6%, #fff),
      color-mix(in srgb, var(--agent-panel-secondary) 7%, #fff)) !important;
}

body.home-page.light-theme .hp-agent-benefits span::first-letter {
  color: color-mix(in srgb, var(--agent-panel-secondary) 48%, #333) !important;
}

body.home-page.light-theme .hp-agent-panel > a {
  border-color: rgba(255,255,255,.58) !important;
  color: var(--hp-ink) !important;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--agent-panel-primary) 24%, #fff),
    color-mix(in srgb, var(--agent-panel-secondary) 22%, #fff)) !important;
  box-shadow:
    0 13px 28px color-mix(in srgb, var(--agent-panel-secondary) 12%, transparent),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
}

body.home-page.light-theme .hp-agent-panel > a:hover {
  filter: none;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--agent-panel-primary) 29%, #fff),
    color-mix(in srgb, var(--agent-panel-secondary) 27%, #fff)) !important;
  box-shadow:
    0 17px 34px color-mix(in srgb, var(--agent-panel-secondary) 15%, transparent),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

/* Discord community card: Discord blue only, softly lifted with white. */
body.home-page.light-theme .hp-community-card {
  border-color: color-mix(in srgb, #5865f2 28%, rgba(40,40,40,.1)) !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(88,101,242,.18), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(71,82,196,.1), transparent 34%),
    linear-gradient(145deg,
      color-mix(in srgb, #5865f2 14%, #fff),
      color-mix(in srgb, #4752c4 19%, #fff)) !important;
  box-shadow: 0 18px 42px rgba(88,101,242,.16), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

body.home-page.light-theme .hp-community-card::before {
  display: block;
  background: linear-gradient(135deg, rgba(255,255,255,.38), transparent 42%, rgba(88,101,242,.1)) !important;
}

body.home-page.light-theme .hp-community-card > img {
  width: 52px;
  height: 52px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 15px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow: 0 12px 26px rgba(88,101,242,.24), inset 0 1px 0 rgba(255,255,255,.2);
  filter: none;
}

body.home-page.light-theme .hp-community-card > span {
  color: #4752c4 !important;
}

body.home-page.light-theme .hp-community-card h2 {
  color: #171927 !important;
}

body.home-page.light-theme .hp-community-card p {
  color: rgba(23,25,39,.68) !important;
}

body.home-page.light-theme .hp-community-card > a {
  border-color: rgba(255,255,255,.34) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #5865f2, #4752c4) !important;
  box-shadow: 0 13px 28px rgba(88,101,242,.25), inset 0 1px 0 rgba(255,255,255,.2) !important;
}

body.home-page.light-theme .hp-community-card > a:hover {
  filter: none;
  background: linear-gradient(135deg, #6571f4, #515dcc) !important;
  box-shadow: 0 17px 34px rgba(88,101,242,.32), inset 0 1px 0 rgba(255,255,255,.24) !important;
}

body.home-page.light-theme .hp-compare-product > select {
  border-color: rgba(77,79,132,.14) !important;
  color: var(--hp-ink) !important;
  background: rgba(255,255,255,.72) !important;
}

body.home-page.light-theme .hp-compare-table {
  border-color: rgba(77,79,132,.12) !important;
  background: rgba(255,255,255,.34) !important;
}

body.home-page.light-theme .hp-compare-table > div[data-compare-metric],
body.home-page.light-theme .hp-market-card-head,
body.home-page.light-theme .hp-market-chart-head,
body.home-page.light-theme .hp-market-categories > div:not(.hp-market-empty) {
  border-color: rgba(77,79,132,.12) !important;
}

body.home-page.light-theme .hp-market-grid {
  background-image: linear-gradient(rgba(77,79,132,.1) 1px, transparent 1px) !important;
}

body.home-page.light-theme .hp-market-line {
  stroke: #6469bd !important;
  filter: drop-shadow(0 0 7px rgba(100,105,189,.32)) !important;
}

body.home-page.light-theme .hp-pulse-chart {
  border-bottom-color: rgba(77,79,132,.13) !important;
}

body.home-page.light-theme .hp-pulse-chart span {
  background: linear-gradient(180deg, #6673c7 0%, #a7aff0 46%, rgba(223,227,255,.42) 100%) !important;
  box-shadow: 0 -5px 14px rgba(100,105,189,.12);
}

body.home-page.light-theme .hp-news-art {
  color: #555aa5 !important;
  background: radial-gradient(circle, rgba(255,255,255,.74), transparent 58%), linear-gradient(145deg,#b8c0ff,#dfe3ff) !important;
}

body.home-page.light-theme .footer-main {
  padding: 0 !important;
  overflow: hidden;
  border-top-color: var(--hp-border) !important;
  background: var(--hp-gradient-reverse) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

body.home-page.light-theme .footer-wrapper {
  width: min(100%, 1520px);
  max-width: 1520px;
  padding: 40px 20px 32px;
}

body.home-page.light-theme .footer-card {
  padding-top: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--hp-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page.light-theme .footer-card::before {
  opacity: .16;
}

body.home-page.light-theme .footer-logo-text,
body.home-page.light-theme .footer-section h3,
body.home-page.light-theme .footer-link,
body.home-page.light-theme .legal-copyright {
  color: var(--hp-ink) !important;
}

body.home-page.light-theme .footer-description,
body.home-page.light-theme .legal-item {
  color: var(--hp-muted) !important;
}

body.home-page.light-theme #first-visit-overlay.pref-popup-overlay {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(18px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.05) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-card {
  border-color: var(--hp-border) !important;
  color: var(--hp-ink) !important;
  background: var(--hp-gradient) !important;
  box-shadow: 0 32px 80px rgba(87,90,151,.24), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-brand h2,
body.home-page.light-theme #first-visit-overlay .pref-popup-field b,
body.home-page.light-theme #first-visit-overlay .pref-popup-dropdown-value,
body.home-page.light-theme #first-visit-overlay .pref-popup-theme-option b {
  color: var(--hp-ink) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-text,
body.home-page.light-theme #first-visit-overlay .pref-popup-field small,
body.home-page.light-theme #first-visit-overlay .pref-popup-note small,
body.home-page.light-theme #first-visit-overlay .pref-popup-note strong {
  color: var(--hp-muted) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-field,
body.home-page.light-theme #first-visit-overlay .pref-popup-dropdown-trigger,
body.home-page.light-theme #first-visit-overlay .pref-popup-theme-option > span {
  border-color: rgba(77,79,132,.13) !important;
  color: var(--hp-ink) !important;
  background: rgba(255,255,255,.48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-theme-option input:checked + span {
  border-color: rgba(78,82,153,.38) !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 0 0 3px rgba(100,105,189,.1) !important;
}

body.home-page.light-theme #first-visit-overlay .pref-popup-confirm-btn {
  border: 1px solid rgba(255,255,255,.55) !important;
  color: var(--hp-ink) !important;
  background: linear-gradient(135deg, #b8c0ff, #dfe3ff) !important;
  box-shadow: 0 14px 30px rgba(86,89,151,.18), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

/* Product cards: soft lavender glass that blends into the homepage canvas. */
body.home-page.light-theme .hp-product-card {
  border-color: rgba(107, 102, 168, .16) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .58), rgba(232, 226, 255, .42)) !important;
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow:
    0 18px 42px rgba(90, 84, 150, .11),
    inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

body.home-page.light-theme .hp-product-card:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(247, 245, 255, .55), rgba(222, 226, 255, .4)) !important;
}

/* Homepage legacy-purple cleanup: keep old components in the new cool palette. */
body.home-page.light-theme {
  --primary-purple:#6673c7;
  --main-gradient:linear-gradient(135deg,#6472c9 0%,#8792e6 100%);
  --hp-lilac:#dfe3ff;
  --hp-periwinkle:#b8c0ff;
  --hp-gradient:linear-gradient(145deg,#dfe3ff 0%,#cdd3ff 48%,#b8c0ff 100%);
  --hp-gradient-reverse:linear-gradient(145deg,#b8c0ff 0%,#ccd3ff 52%,#dfe3ff 100%);
}

body.home-page.light-theme .hp-pulse-dot-purple {
  color:#6472c9!important;
}

body.home-page.light-theme .footer-logo-text span,
body.home-page.light-theme .link-item:hover,
body.home-page.light-theme .legal-item:hover {
  color:#5964ad!important;
}

body.home-page.light-theme .nav-search.nav-search-enhanced:hover,
body.home-page.light-theme .nav-search.nav-search-enhanced:focus-within {
  border-color:rgba(86,98,178,.28)!important;
  background:rgba(255,255,255,.78)!important;
}

body.home-page.light-theme .nav-search.nav-search-enhanced:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 0 0 3px rgba(100,113,201,.09),
    0 10px 24px rgba(75,83,154,.1)!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-search-icon,
body.home-page.light-theme .nav-search-enhanced:focus-within .nav-search-icon {
  color:#626b9c!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-search-scope {
  border-color:rgba(89,100,173,.17)!important;
  color:#626b9c!important;
  background:rgba(184,192,255,.22)!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-search-scope-dot {
  background:#6673c7!important;
  box-shadow:0 0 8px rgba(102,115,199,.45)!important;
}

body.home-page.light-theme .nav-search-enhanced > .nav-suggest {
  border-color:rgba(77,89,162,.16)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(231,235,255,.99))!important;
  box-shadow:0 24px 54px rgba(63,70,132,.18),inset 0 1px 0 #fff!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-suggest-item {
  color:#19182a!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-suggest-item:hover,
body.home-page.light-theme .nav-search-enhanced .nav-suggest-item.active {
  border-color:rgba(91,104,188,.2)!important;
  background:rgba(184,192,255,.3)!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-suggest-title {
  color:#252944!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-suggest-sub {
  color:rgba(37,41,68,.54)!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-suggest-thumb {
  border-color:rgba(86,94,158,.13)!important;
  background:rgba(184,192,255,.18)!important;
}

body.home-page.light-theme .nav-search-enhanced .nav-suggest-price,
body.home-page.light-theme .nav-search-enhanced .nav-suggest-open {
  color:#5964ad!important;
}

body.home-page.light-theme .hp-product-card:hover {
  border-color: rgba(94, 91, 163, .3) !important;
  box-shadow:
    0 24px 48px rgba(90, 84, 150, .16),
    0 0 0 1px rgba(255, 255, 255, .34) !important;
}

/* Homepage footer: a contained closing panel instead of a flat color strip. */
body.home-page.light-theme .footer-main {
  margin-top: 72px;
  padding: 20px 20px 24px !important;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page.light-theme .footer-wrapper {
  width: min(calc(100% - 0px), 1480px);
  padding: 0 !important;
}

body.home-page.light-theme .footer-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4vw, 56px) clamp(28px, 4.5vw, 68px) 0 !important;
  border: 1px solid rgba(86, 88, 145, .17) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 4% 0%, rgba(255,255,255,.72), transparent 30%),
    radial-gradient(circle at 94% 15%, rgba(155,142,255,.2), transparent 28%),
    linear-gradient(135deg, rgba(223,227,255,.9), rgba(184,192,255,.78)) !important;
  box-shadow: 0 26px 64px rgba(82, 84, 145, .16), inset 0 1px 0 rgba(255,255,255,.76) !important;
}

body.home-page.light-theme .footer-card::before {
  display: none;
}

body.home-page.light-theme .footer-grid {
  grid-template-columns: minmax(320px, 1.65fr) repeat(3, minmax(130px, .72fr));
  gap: clamp(32px, 5vw, 78px);
  margin-bottom: 42px;
}

body.home-page.light-theme .footer-branding {
  max-width: 470px;
}

body.home-page.light-theme .footer-brand-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #17172a;
  text-decoration: none;
}

body.home-page.light-theme .footer-brand-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 9px 22px rgba(81,76,145,.14), inset 0 1px 0 rgba(255,255,255,.82);
  object-fit: cover;
}

body.home-page.light-theme .footer-brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3f4775 !important;
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -.075em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  white-space: nowrap;
}

body.home-page.light-theme .footer-brand-wordmark b {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 9px;
  color: #4b548a;
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 6px 15px rgba(93,80,150,.1);
  font-size: .72em;
  font-weight: 900;
  letter-spacing: -.035em;
}

body.home-page.light-theme .footer-description {
  max-width: 430px;
  margin-bottom: 25px;
  color: rgba(43, 44, 77, .66) !important;
  font-size: .9rem;
  line-height: 1.7;
}

body.home-page.light-theme .footer-cta {
  gap: 10px;
}

body.home-page.light-theme .footer-cta .btn-kakobuy,
body.home-page.light-theme .footer-cta .btn-discord {
  min-height: 44px;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(66, 68, 125, .12), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.home-page.light-theme .footer-cta .btn-kakobuy:hover,
body.home-page.light-theme .footer-cta .btn-discord:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(66, 68, 125, .18);
}

body.home-page.light-theme .footer-nav-group {
  padding-top: 5px;
}

body.home-page.light-theme .footer-label {
  margin-bottom: 17px;
  padding: 0;
  color: rgba(53, 55, 100, .52) !important;
  background: transparent !important;
  font-size: .66rem;
  letter-spacing: .14em;
}

body.home-page.light-theme .footer-links {
  display: grid;
  gap: 6px;
}

body.home-page.light-theme .link-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: rgba(32, 33, 62, .68) !important;
  line-height: 1.35;
  transition: color .18s ease, transform .18s ease;
}

body.home-page.light-theme .link-item::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: #7341d3;
  transition: width .18s ease, margin-right .18s ease;
}

body.home-page.light-theme .link-item:hover {
  color: #3f3f78 !important;
  transform: none;
}

body.home-page.light-theme .link-item:hover::before {
  width: 12px;
  margin-right: 7px;
}

body.home-page.light-theme .footer-legal {
  min-height: 64px;
  padding: 0;
  border-top: 1px solid rgba(68, 70, 124, .12);
}

body.home-page.light-theme .legal-copyright,
body.home-page.light-theme .legal-item {
  color: rgba(47, 48, 83, .54) !important;
  font-size: .64rem;
  letter-spacing: .035em;
}

body.home-page.light-theme .legal-links {
  gap: 26px;
}

body.home-page.light-theme .legal-item:hover {
  color: #4e4f8e !important;
  transform: none;
}

@media (max-width: 900px) {
  body.home-page.light-theme .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home-page.light-theme .footer-grid > .footer-branding {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.home-page.light-theme .footer-main {
    margin-top: 48px;
    padding: 10px !important;
  }

  body.home-page.light-theme .footer-card {
    padding: 30px 22px 0 !important;
    border-radius: 22px !important;
  }

  body.home-page.light-theme .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  body.home-page.light-theme .footer-grid > .footer-branding,
  body.home-page.light-theme .footer-nav-group:last-child {
    grid-column: 1 / -1;
  }

  body.home-page.light-theme .footer-label,
  body.home-page.light-theme .link-item,
  body.home-page.light-theme .legal-copyright,
  body.home-page.light-theme .legal-links {
    width: auto;
    margin-inline: 0;
  }

  body.home-page.light-theme .footer-label {
    display: inline-block;
    margin-bottom: 13px;
  }

  body.home-page.light-theme .link-item {
    display: inline-flex;
  }

  body.home-page.light-theme .footer-legal {
    align-items: flex-start;
    gap: 11px;
    padding: 18px 0 22px;
  }

  body.home-page.light-theme .legal-links {
    flex-direction: row;
  }
}

/* Final homepage hero palette override — #E7D8FF / #B8C0FF */
body.home-page.light-theme .hp-dashboard-hero {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body.home-page.light-theme .hp-hero-main h1 span,
body.home-page.light-theme .hp-featured-head span,
body.home-page.light-theme .hp-featured-stat-icon,
body.home-page.light-theme .hp-featured-stats strong,
body.home-page.light-theme .hp-search > span {
  color: #665e9f !important;
}

body.home-page.light-theme .hp-status-row,
body.home-page.light-theme .hp-search,
body.home-page.light-theme .hp-live-metrics {
  border-color: rgba(104, 99, 163, .15) !important;
  background: linear-gradient(135deg, rgba(231, 216, 255, .82), rgba(184, 192, 255, .66)) !important;
  box-shadow: 0 12px 28px rgba(89, 91, 151, .08) !important;
}

body.home-page.light-theme .hp-db-status,
body.home-page.light-theme .hp-quick-links button,
body.home-page.light-theme .hp-live-metrics article {
  border-color: rgba(104, 99, 163, .13) !important;
  background: rgba(231, 216, 255, .68) !important;
  box-shadow: none !important;
}

body.home-page.light-theme .hp-search > button {
  border-color: rgba(104, 99, 163, .16) !important;
  color: #5f5a98 !important;
  background: linear-gradient(145deg, #e7d8ff, #b8c0ff) !important;
  box-shadow: 0 7px 16px rgba(83, 86, 148, .1) !important;
}

body.home-page.light-theme .hp-search > button:hover {
  border-color: rgba(91, 86, 150, .25) !important;
  color: #49477c !important;
  background: linear-gradient(145deg, #dfcfff, #aeb8fa) !important;
}

body.home-page.light-theme .hp-quick-links button {
  color: #666292 !important;
}

body.home-page.light-theme .hp-featured-image {
  border-color: rgba(104, 99, 163, .14) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(231, 216, 255, .94), transparent 54%),
    linear-gradient(145deg, rgba(231, 216, 255, .78), rgba(184, 192, 255, .62)) !important;
}

body.home-page.light-theme .hp-featured-body {
  border-color: rgba(104, 99, 163, .14) !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(184, 192, 255, .48), transparent 38%),
    linear-gradient(145deg, rgba(231, 216, 255, .96), rgba(231, 216, 255, .8)) !important;
  box-shadow: 0 18px 42px rgba(89, 91, 151, .13) !important;
}

body.home-page.light-theme .hp-featured-head a,
body.home-page.light-theme .hp-featured-body .hp-product-tags span,
body.home-page.light-theme .hp-featured-date,
body.home-page.light-theme .hp-featured-body .hp-featured-stats > div {
  border-color: rgba(104, 99, 163, .13) !important;
  background: linear-gradient(145deg, rgba(231, 216, 255, .92), rgba(184, 192, 255, .45)) !important;
  box-shadow: none !important;
}

body.home-page.light-theme .hp-featured-bottom a {
  border: 0 !important;
  color: #282742 !important;
  background: linear-gradient(135deg, #b8c0ff, #e7d8ff) !important;
  box-shadow: 0 10px 22px rgba(85, 88, 151, .14) !important;
}

body.home-page.light-theme .hp-featured-bottom a:hover {
  background: linear-gradient(135deg, #aeb8fa, #dfcfff) !important;
  box-shadow: 0 14px 28px rgba(85, 88, 151, .2) !important;
}
