/* --- 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);
}

* {
    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: 18px;
  left: 20px;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;

  font-weight: 900;
  font-size: 0.68rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.35px;
  text-transform: uppercase;

  color: #ffffff;
  background: linear-gradient(135deg, #a855f7, #7c1fd6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(124, 31, 214, 0.32);

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

.product-badge::before {
  content: none;
}

/* === 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;
}

#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;
  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-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;
  }
}

/* --- 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;
}

/* 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;
}
/* Admin panel page */
.admin-panel-page {
  --admin-bg: #f7f4fb;
  --admin-panel:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.44)),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,255,0.98));
  --admin-card-bg: rgba(255, 255, 255, 0.68);
  --admin-sub-bg: rgba(138, 43, 226, 0.065);
  --admin-border: rgba(138, 43, 226, 0.16);
  --admin-panel-shadow: 0 22px 55px rgba(50,25,90,0.10), inset 0 1px 0 rgba(255,255,255,0.88);
  --admin-card-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  --admin-purple: #8a2be2;
  --admin-green: #11a36a;
  --admin-red: #e84118;
  --admin-text: #17121f;
  --admin-muted: rgba(23, 18, 31, 0.62);
  --admin-purple-glow: rgba(138, 43, 226, 0.18);
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 54px;
  margin-top: 154px;
  color: var(--admin-text);
}

body:not(.light-theme) .admin-panel-page {
  --admin-bg: #0d0717;
  --admin-panel:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.024)),
    linear-gradient(180deg, rgba(28, 9, 47, 0.94), rgba(12, 4, 22, 0.98));
  --admin-card-bg: rgba(255, 255, 255, 0.045);
  --admin-sub-bg: rgba(138, 43, 226, 0.09);
  --admin-border: rgba(255, 255, 255, 0.10);
  --admin-panel-shadow: 0 22px 58px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
  --admin-card-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  --admin-text: #ffffff;
  --admin-muted: rgba(255, 255, 255, 0.58);
  --admin-purple-glow: rgba(181, 108, 255, 0.24);
}

.admin-panel-page [hidden] {
  display: none !important;
}

.admin-hero-panel,
.admin-command-deck,
.admin-panel,
.admin-auth-card,
.insight-card,
.admin-stat {
  border: 1px solid var(--admin-border);
  background: var(--admin-panel);
  box-shadow: var(--admin-panel-shadow);
  backdrop-filter: blur(14px);
}

.admin-hero-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(24px, 3vw, 34px);
  border-color: rgba(255,255,255,0.10);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.024)),
    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);
}

body.light-theme .admin-hero-panel {
  border-color: rgba(138,43,226,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.44)),
    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.9);
}

.admin-hero-panel::before {
  display: none;
}

.admin-hero-panel::after {
  display: none;
}

.admin-hero-orb {
  display: none;
}

.admin-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.admin-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--admin-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.admin-hero-kicker-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181,108,255,.38);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7b22d2, #b65cff);
  box-shadow: 0 7px 18px rgba(138,43,226,.3);
  font-size: .72rem;
}

.admin-hero-kicker-divider {
  width: 24px;
  height: 1px;
  background: var(--admin-border);
}

.admin-hero-copy h1,
.admin-command-copy h2 {
  margin: 8px 0;
  color: var(--admin-text);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.admin-hero-copy h1 > span:not(.admin-hero-title-main) {
  color: transparent;
  background: linear-gradient(100deg, #a84cff 4%, #d8a6ff 64%, #fff 105%);
  background-clip: text;
  -webkit-background-clip: text;
}

body.light-theme .admin-hero-copy h1 > span:not(.admin-hero-title-main) {
  background-image: linear-gradient(100deg, #7220c8, #a947ec);
}

.admin-hero-title-main {
  color: var(--admin-text);
  white-space: nowrap;
}

.admin-hero-copy p,
.admin-command-copy p,
.admin-auth-card p {
  margin: 0;
  color: var(--admin-muted);
}

.admin-hero-copy p {
  max-width: 610px;
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.55;
}

.admin-hero-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 690px;
  border-top: 1px solid var(--admin-border);
}

.admin-hero-snapshot article {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px 16px 0 0;
}

.admin-hero-snapshot article + article {
  padding-left: 16px;
  border-left: 1px solid var(--admin-border);
}

.admin-hero-snapshot span,
.admin-hero-snapshot small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-hero-snapshot strong {
  color: var(--admin-text);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 950;
  letter-spacing: -.045em;
}

.admin-hero-snapshot small {
  letter-spacing: 0;
  text-transform: none;
}

.admin-hero-snapshot small i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #35e38c;
  box-shadow: 0 0 10px rgba(53,227,140,.8);
}

.admin-hero-console {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}

body.light-theme .admin-hero-console {
  border-color: rgba(79,34,127,.12);
  background: rgba(255,255,255,.48);
}

.admin-console-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 7px 11px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-console-status-row .admin-status {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-console-status-row .admin-status > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-console-status-row .admin-status small,
.admin-console-status-row .admin-status strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-status-row .admin-status small {
  color: var(--admin-muted);
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-console-status-row .admin-status strong {
  color: var(--admin-text);
  font-size: .77rem;
}

.admin-console-section {
  flex: 0;
  padding: 12px 2px;
}

.admin-console-label {
  display: block;
  margin: 0 8px 10px;
  color: var(--admin-muted);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-console-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-console-links button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--admin-text);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.admin-console-links button:hover {
  transform: translateX(3px);
  border-color: rgba(181,108,255,.22);
  background: rgba(181,108,255,.09);
}

.admin-console-links button:focus-visible,
.admin-site-link:focus-visible,
.admin-refresh-btn:focus-visible,
.admin-logout-btn:focus-visible {
  outline: 3px solid rgba(181,108,255,.32);
  outline-offset: 2px;
}

.admin-console-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181,108,255,.18);
  border-radius: 11px;
  color: #c88cff;
  background: rgba(138,43,226,.12);
  font-size: 1rem;
}

.admin-console-links button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-console-links strong,
.admin-console-links small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-links strong {
  font-size: .82rem;
}

.admin-console-links small,
.admin-console-links b {
  color: var(--admin-muted);
  font-size: .68rem;
  font-weight: 750;
}

.admin-console-links button > b {
  display: none;
}

.admin-console-links small {
  display: none;
}

.admin-console-links b {
  transition: color .18s ease, transform .18s ease;
}

.admin-console-links button:hover b {
  color: #c88cff;
  transform: translate(2px, -2px);
}

.admin-console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 7px 5px;
  border-top: 1px solid var(--admin-border);
}

.admin-console-footer > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-console-footer > div:first-child span {
  color: var(--admin-muted);
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-console-footer > div:first-child strong {
  color: var(--admin-text);
  font-size: .72rem;
}

.admin-site-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--admin-muted);
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-site-link:hover {
  color: var(--admin-text);
  background: var(--admin-sub-bg);
}

.admin-site-link span {
  color: #bd76ff;
}

.admin-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  border-color: rgba(187,111,255,.45);
  background: linear-gradient(135deg, #7220c8, #9d3bf0);
  box-shadow: 0 10px 24px rgba(138,43,226,.22);
}

.admin-refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(138,43,226,.32);
}

.admin-refresh-btn.is-loading .admin-refresh-icon {
  animation: admin-refresh-spin .75s linear infinite;
}

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

.admin-logout-btn {
  padding-inline: 11px;
}

.admin-top-actions,
.admin-toolbar,
.admin-tool-actions,
.admin-tool-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: var(--admin-card-bg);
  color: var(--admin-muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.admin-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--admin-green);
  box-shadow: 0 0 0 5px rgba(17, 163, 106, 0.13);
}

.admin-status.status-error .admin-live-dot {
  background: var(--admin-red);
  box-shadow: 0 0 0 5px rgba(232, 65, 24, 0.13);
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.admin-view-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-panel);
  box-shadow: var(--admin-panel-shadow);
  backdrop-filter: blur(14px);
}

.admin-view-tabs button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--admin-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.admin-view-tabs button:hover,
.admin-view-tabs button.active {
  border-color: var(--admin-border);
  background: var(--admin-card-bg);
  color: var(--admin-text);
}

.admin-view-tabs button.active {
  background: var(--admin-purple);
  color: #fff;
  box-shadow: 0 12px 24px var(--admin-purple-glow);
}

.admin-view {
  display: grid;
  gap: 22px;
}

.admin-command-deck {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 18px;
}

.admin-eyebrow,
.insight-label,
.admin-mini-label {
  display: block;
  color: var(--admin-purple);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-toolbar {
  padding-top: 12px;
  border-top: 1px solid var(--admin-border);
}

.admin-segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-sub-bg);
}

.admin-segmented button,
.admin-primary-btn,
.admin-secondary-btn,
.admin-icon-btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--admin-text);
  cursor: pointer;
}

.admin-segmented button {
  background: transparent;
  color: var(--admin-muted);
}

.admin-segmented button.active,
.admin-icon-btn,
.admin-secondary-btn {
  border-color: var(--admin-border);
  background: var(--admin-card-bg);
}

.admin-primary-btn {
  background: var(--admin-purple);
  color: #fff;
}

.admin-danger-btn {
  color: #d82449;
  border-color: rgba(216, 36, 73, 0.34);
}

.admin-search {
  display: inline-grid;
  gap: 5px;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-search input,
.admin-select,
.admin-login-form input,
.admin-tool-field input,
.admin-tool-grid input,
.admin-bulk-field input,
.admin-bulk-field textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-card-bg);
  color: var(--admin-text);
  outline: none;
  font: inherit;
}

.admin-bulk-field textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-top-insights,
.admin-stat-grid,
.admin-lab-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.insight-card {
  grid-column: span 4;
  min-height: 136px;
  padding: 20px;
  border-radius: 14px;
}

.insight-card p {
  margin: 9px 0 0;
  color: var(--admin-text);
  line-height: 1.55;
}

.admin-stat {
  grid-column: span 2;
  min-height: 132px;
  padding: 19px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-stat span,
.admin-stat small {
  color: var(--admin-muted);
  font-weight: 800;
  font-size: 0.76rem;
}

.admin-stat span {
  text-transform: uppercase;
}

.admin-stat strong {
  color: var(--admin-text);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.stat-primary strong {
  color: var(--admin-purple);
}

.admin-ops-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.3fr) minmax(280px, 0.95fr);
  gap: 16px;
}

.admin-left-stack {
  display: grid;
  gap: 16px;
}

.admin-service-list {
  display: grid;
  gap: 8px;
}

.admin-service-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 11px;
  background: var(--admin-card-bg);
}

.admin-service-item > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8b8194;
  box-shadow: 0 0 0 4px rgba(139,129,148,.1);
}

.admin-service-item[data-status="online"] > i {
  background: #4df29a;
  box-shadow: 0 0 0 0 rgba(77,242,154,.4), 0 0 12px rgba(77,242,154,.7);
  animation: admin-service-online 1.6s ease-out infinite;
}

.admin-service-item[data-status="offline"] > i {
  background: #ff5576;
  box-shadow: 0 0 0 0 rgba(255,85,118,.36), 0 0 12px rgba(255,85,118,.62);
  animation: admin-service-offline 1.6s ease-out infinite;
}

.admin-service-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-service-item strong {
  overflow: hidden;
  color: var(--admin-text);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-service-item small,
.admin-service-checked {
  color: var(--admin-muted);
  font-size: .68rem;
}

.admin-service-item > b {
  color: var(--admin-muted);
  font-size: .66rem;
  text-transform: uppercase;
}

.admin-service-item[data-status="online"] > b { color: #55efa0; }
.admin-service-item[data-status="offline"] > b { color: #ff7891; }

.admin-service-refresh {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(181,108,255,.22);
  border-radius: 9px;
  color: #c994ff;
  background: rgba(138,43,226,.08);
  font: inherit;
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-service-refresh:hover { border-color: rgba(181,108,255,.45); background: rgba(138,43,226,.15); }
.admin-service-refresh:disabled { opacity: .55; cursor: wait; }
.admin-service-checked { display: block; margin-top: 11px; }

@keyframes admin-service-online {
  70% { box-shadow: 0 0 0 7px rgba(77,242,154,0), 0 0 13px rgba(77,242,154,.7); }
  100% { box-shadow: 0 0 0 0 rgba(77,242,154,0), 0 0 12px rgba(77,242,154,.65); }
}

@keyframes admin-service-offline {
  70% { box-shadow: 0 0 0 7px rgba(255,85,118,0), 0 0 13px rgba(255,85,118,.62); }
  100% { box-shadow: 0 0 0 0 rgba(255,85,118,0), 0 0 12px rgba(255,85,118,.58); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-service-item > i { animation: none !important; }
}

.admin-panel {
  padding: 20px;
  border-radius: 14px;
}

.admin-maintenance-panel { max-width: 920px; }
.admin-maintenance-body { display: grid; gap: 22px; margin-top: 8px; }
.admin-maintenance-state { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid rgba(122, 102, 224, .18); border-radius: 18px; background: rgba(122, 102, 224, .06); }
.admin-maintenance-state > span { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #45ba78; box-shadow: 0 0 0 7px rgba(69, 186, 120, .12); }
.admin-maintenance-state > span.is-enabled { background: #ef6a78; box-shadow: 0 0 0 7px rgba(239, 106, 120, .13); }
.admin-maintenance-state div { display: grid; gap: 4px; }
.admin-maintenance-state small { color: var(--admin-muted); }
.admin-maintenance-presets { display:grid; gap:13px; }
.admin-maintenance-presets-head { display:flex; align-items:end; justify-content:space-between; gap:14px; }
.admin-maintenance-presets-head > div { display:grid; gap:4px; }
.admin-maintenance-presets-head span { font-weight:900; }
.admin-maintenance-presets-head small { color:var(--admin-muted); }
.admin-maintenance-presets-head button { border:0; color:#6d65bc; background:transparent; cursor:pointer; font:inherit; font-size:.7rem; font-weight:850; }
.admin-maintenance-preset-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.admin-maintenance-preset-grid > button { min-height:76px; display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:11px; padding:12px; border:1px solid rgba(122,102,224,.14); border-radius:14px; color:inherit; background:linear-gradient(145deg,rgba(255,255,255,.66),rgba(236,235,255,.48)); text-align:left; cursor:pointer; transition:.18s ease; }
.admin-maintenance-preset-grid > button:hover { transform:translateY(-2px); border-color:rgba(122,102,224,.34); box-shadow:0 10px 22px rgba(79,70,144,.1); }
.admin-maintenance-preset-grid > button.is-selected { border-color:#7d70df; background:linear-gradient(145deg,rgba(224,226,255,.88),rgba(237,225,255,.72)); box-shadow:0 0 0 3px rgba(125,112,223,.1); }
.admin-maintenance-preset-grid i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:#6961b6; background:rgba(125,112,223,.11); font-size:.61rem; font-style:normal; font-weight:950; }
.admin-maintenance-preset-grid span { min-width:0; display:grid; gap:4px; }
.admin-maintenance-preset-grid strong { font-size:.72rem; }
.admin-maintenance-preset-grid small { overflow:hidden; color:var(--admin-muted); font-size:.61rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-maintenance-message { display: grid; gap: 8px; font-weight: 700; }
.admin-maintenance-message textarea { width: 100%; resize: vertical; min-height: 105px; padding: 14px 16px; border: 1px solid rgba(122, 102, 224, .22); border-radius: 16px; background: rgba(255,255,255,.55); color: inherit; font: inherit; outline: none; }
.admin-maintenance-message select, .admin-maintenance-schedule select { width:100%; min-height:48px; padding:0 14px; border:1px solid rgba(122,102,224,.22); border-radius:14px; color:inherit; background:rgba(255,255,255,.7); font:inherit; font-weight:700; outline:none; }
.admin-maintenance-duration-field { position:relative; z-index:3; }
.admin-duration-select { position:relative; }
.admin-duration-select > select { position:absolute; width:1px; height:1px; padding:0; border:0; opacity:0; pointer-events:none; }
.admin-duration-trigger { width:100%; min-height:58px; padding:9px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid rgba(89,104,196,.24); border-radius:16px; color:var(--admin-text); background:#fff; box-shadow:0 8px 22px rgba(58,67,130,.08); cursor:pointer; font:inherit; text-align:left; transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.admin-duration-trigger:hover { border-color:rgba(89,104,196,.58); box-shadow:0 11px 26px rgba(58,67,130,.13); transform:translateY(-1px); }
.admin-duration-trigger:focus-visible { outline:none; border-color:#6477d9; box-shadow:0 0 0 4px rgba(100,119,217,.14); }
.admin-duration-trigger > span { display:grid; gap:2px; }
.admin-duration-trigger small { color:var(--admin-muted); font-size:.58rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.admin-duration-trigger strong { color:var(--admin-text); font-size:.82rem; font-weight:900; }
.admin-duration-trigger i { width:10px; height:10px; border-right:2px solid #5968bd; border-bottom:2px solid #5968bd; transform:rotate(45deg) translateY(-2px); transition:transform .2s ease; }
.admin-duration-select.is-open .admin-duration-trigger i { transform:rotate(225deg) translate(-2px,-2px); }
.admin-duration-menu { position:absolute; z-index:30; top:calc(100% + 8px); left:0; right:0; max-height:310px; padding:8px; overflow-y:auto; border:1px solid rgba(89,104,196,.22); border-radius:18px; background:#fff; box-shadow:0 22px 48px rgba(38,43,91,.2); }
.admin-duration-menu[hidden] { display:none; }
.admin-duration-option { width:100%; min-height:42px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; border:0; border-radius:11px; color:#242845; background:transparent; cursor:pointer; font:inherit; font-size:.72rem; font-weight:800; text-align:left; transition:background .16s ease, color .16s ease, transform .16s ease; }
.admin-duration-option:hover, .admin-duration-option:focus-visible { outline:none; color:#4054bb; background:#eef1ff; transform:translateX(2px); }
.admin-duration-option[aria-selected="true"] { color:#fff; background:linear-gradient(135deg,#7185e6,#566bcf); box-shadow:0 7px 16px rgba(86,107,207,.24); }
.admin-duration-option[aria-selected="true"]::after { content:'\2713'; font-size:.8rem; }
body:not(.light-theme) .admin-duration-trigger, body:not(.light-theme) .admin-duration-menu { border-color:rgba(164,174,255,.18); color:#f5f6ff; background:#20243c; }
body:not(.light-theme) .admin-duration-trigger strong, body:not(.light-theme) .admin-duration-option { color:#f5f6ff; }
body:not(.light-theme) .admin-duration-option:hover, body:not(.light-theme) .admin-duration-option:focus-visible { color:#fff; background:#303752; }
.admin-maintenance-schedule { display:grid; grid-template-columns:minmax(220px,.65fr) minmax(260px,1fr); gap:14px; }
.admin-maintenance-schedule > label, .admin-maintenance-timing { display:grid; gap:8px; }
.admin-maintenance-schedule span, .admin-maintenance-adjustments > span { font-weight:800; }
.admin-maintenance-timing { padding:13px 16px; border:1px solid rgba(122,102,224,.16); border-radius:14px; background:rgba(122,102,224,.06); }
.admin-maintenance-timing strong { font-size:.9rem; }
.admin-maintenance-timing small { color:var(--admin-muted); }
.admin-maintenance-adjustments { display:grid; gap:10px; padding:15px 16px; border:1px solid rgba(122,102,224,.16); border-radius:16px; background:rgba(122,102,224,.055); }
.admin-maintenance-adjustments > div { display:flex; flex-wrap:wrap; gap:8px; }
.admin-maintenance-adjustments button { min-height:38px; padding:0 13px; border:1px solid rgba(122,102,224,.2); border-radius:10px; color:#5b5790; background:rgba(255,255,255,.7); cursor:pointer; font:inherit; font-size:.72rem; font-weight:850; }
.admin-maintenance-adjustments button:hover { border-color:#806de0; background:#fff; transform:translateY(-1px); }
body:not(.light-theme) .admin-maintenance-message textarea { background: rgba(255,255,255,.05); }
.admin-maintenance-message textarea:focus { border-color: #806de0; box-shadow: 0 0 0 4px rgba(128,109,224,.12); }
.admin-maintenance-message small { color: var(--admin-muted); font-weight: 500; }
.admin-maintenance-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.admin-maintenance-actions p { margin: 0 auto 0 0; color: var(--admin-muted); }
@media (max-width:900px) { .admin-maintenance-preset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .admin-maintenance-schedule, .admin-maintenance-preset-grid { grid-template-columns:1fr; } }

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-panel h3 {
  margin: 5px 0 0;
  color: var(--admin-text);
  font-size: 1.05rem;
}

.admin-tool-status-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--admin-sub-bg);
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-tool-elapsed {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.48), rgba(80, 22, 128, 0.34)),
    var(--admin-card-bg);
  border: 1px solid rgba(181, 108, 255, 0.35);
}

.admin-score-list,
.admin-funnel-list,
.admin-list,
.admin-daily-list,
.admin-event-list,
.admin-priority-list,
.admin-dead-links-list,
.admin-mix-list {
  display: grid;
  gap: 10px;
}

.admin-score-list div,
.admin-list-item,
.admin-event-item,
.admin-daily-item,
.admin-priority-item,
.admin-dead-link-item,
.admin-mix-item {
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-card-bg);
}

.admin-score-list div,
.admin-list-item,
.admin-event-item,
.admin-daily-item,
.admin-priority-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-score-list span,
.admin-list-item span,
.admin-event-meta,
.admin-daily-item span,
.admin-daily-item small,
.admin-priority-item span,
.admin-dead-link-item span,
.admin-empty {
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-funnel-item {
  display: grid;
  gap: 8px;
}

.admin-funnel-item div {
  display: flex;
  justify-content: space-between;
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-funnel-item i,
.admin-list-bar,
.admin-mix-item i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--admin-sub-bg);
}

.admin-funnel-item i span,
.admin-list-bar span,
.admin-mix-item i span {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--admin-purple);
}

.admin-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 170px;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-card-bg);
}

.admin-chart-bar {
  flex: 1;
  min-width: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 7px;
}

.admin-chart-bar span {
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--admin-purple), #c084fc);
}

.admin-chart-bar small {
  color: var(--admin-muted);
  font-size: 0.66rem;
  text-align: center;
}

.admin-assistant-card {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--admin-sub-bg);
}

.admin-assistant-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--admin-purple);
  color: #fff;
  font-weight: 950;
}

.admin-assistant-card p {
  margin: 3px 0 0;
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-traffic-panel,
.admin-products-panel,
.admin-bulk-products-panel,
.admin-toolbox-panel {
  grid-column: span 12;
}

.admin-priority-panel,
.admin-dead-links-panel,
.admin-lab-grid > .admin-panel:not(.admin-traffic-panel):not(.admin-products-panel):not(.admin-bulk-products-panel):not(.admin-toolbox-panel):not(.admin-priority-panel):not(.admin-dead-links-panel):not(.admin-maintenance-panel) {
  grid-column: span 6;
}

.admin-lab-grid > .admin-maintenance-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.admin-traffic-grid,
.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid var(--admin-border);
  text-align: left;
  color: var(--admin-text);
}

.admin-table-wrap th {
  color: var(--admin-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-product-cell > span {
  color: var(--admin-muted);
  font-weight: 900;
}

.admin-product-link {
  color: var(--admin-text);
  text-decoration: none;
}

.admin-product-title {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-intent {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 163, 106, 0.12);
  color: var(--admin-green);
  font-weight: 900;
}

.admin-intent.intent-low {
  background: rgba(232, 65, 24, 0.10);
  color: var(--admin-red);
}

.admin-toolbox {
  display: grid;
  gap: 14px;
}

.admin-tool-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-tool-action-card {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
    var(--admin-card-bg);
  color: var(--admin-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-tool-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 108, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    var(--admin-card-bg);
}

.admin-tool-action-card.active {
  border-color: rgba(181, 108, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.34), rgba(80, 22, 128, 0.28)),
    var(--admin-card-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(138, 43, 226, 0.16);
}

.admin-tool-action-card span {
  color: var(--admin-text);
  font-size: 0.88rem;
  font-weight: 950;
}

.admin-tool-action-card small {
  color: var(--admin-muted);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-tool-field,
.admin-tool-grid label {
  display: grid;
  gap: 7px;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tool-check-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.admin-tool-scope {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(360px, 100%);
  padding: 5px;
  border: 1px solid var(--admin-border);
  border-radius: 13px;
  background: var(--admin-sub-bg);
}

.admin-tool-scope label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: none;
  cursor: pointer;
}

.admin-tool-scope input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-tool-scope label:has(input:checked) {
  background: var(--admin-purple);
  color: #fff;
  box-shadow: 0 10px 20px var(--admin-purple-glow);
}

.admin-tool-check-grid label {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-card-bg);
  color: var(--admin-text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-tool-check-grid label:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 108, 255, 0.32);
}

.admin-tool-check-grid input {
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  margin: 0;
  position: relative;
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.06);
  accent-color: #8a2be2;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.admin-tool-check-grid input::before,
.admin-tool-options input[type="checkbox"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-tool-check-grid input:checked {
  border-color: rgba(216, 180, 254, 0.9);
  background: linear-gradient(135deg, #8a2be2, #b45cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 4px rgba(138, 43, 226, 0.16);
}

.admin-tool-check-grid input:checked::before,
.admin-tool-options input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}

.admin-tool-check-grid label:has(input:checked) {
  border-color: rgba(181, 108, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.28), rgba(80, 22, 128, 0.24)),
    var(--admin-card-bg);
  box-shadow: 0 10px 22px rgba(138, 43, 226, 0.12);
}

.admin-tool-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: var(--admin-card-bg);
  color: var(--admin-text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-tool-options label:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 108, 255, 0.34);
}

.admin-tool-options label:has(input:checked) {
  border-color: rgba(181, 108, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.28), rgba(80, 22, 128, 0.24)),
    var(--admin-card-bg);
  box-shadow: 0 10px 22px rgba(138, 43, 226, 0.12);
}

.admin-tool-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  position: relative;
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.admin-tool-options input[type="checkbox"]:checked {
  border-color: rgba(216, 180, 254, 0.9);
  background: linear-gradient(135deg, #8a2be2, #b45cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 4px rgba(138, 43, 226, 0.16);
}

.admin-tool-output {
  min-height: 230px;
  max-height: 430px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #05020a;
  color: #e8dcfb;
  white-space: pre-wrap;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-tool-log-details {
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-sub-bg);
}

.admin-tool-log-details summary {
  padding: 12px 14px;
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.admin-tool-log-details[open] summary {
  border-bottom: 1px solid var(--admin-border);
}

.admin-tool-log-details .admin-tool-output {
  border: 0;
  border-radius: 0;
}

.admin-tool-progress {
  display: grid;
  gap: 15px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(70, 240, 151, 0.25);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 240, 151, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(24, 86, 58, 0.18), rgba(8, 31, 22, 0.16)),
    var(--admin-sub-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.admin-tool-progress[hidden] {
  display: none;
}

.admin-tool-progress-head,
.admin-tool-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-tool-progress-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(70, 240, 151, 0.24);
  border-radius: 999px;
  color: #55efa0;
  background: rgba(70, 240, 151, 0.09);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.admin-tool-progress-state::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #46f097;
  box-shadow: 0 0 0 0 rgba(70, 240, 151, 0.45), 0 0 14px rgba(70, 240, 151, 0.7);
}

.admin-tool-progress.is-running .admin-tool-progress-state::before {
  animation: admin-tool-pulse 1.45s ease-out infinite;
}

.admin-tool-progress-head > strong {
  color: #f2fff8;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.admin-tool-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(70, 240, 151, 0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}

.admin-tool-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fcf7d, #62f6aa);
  box-shadow: 0 0 18px rgba(70, 240, 151, 0.48);
  transition: width 0.35s ease;
}

.admin-tool-progress-meta {
  color: var(--admin-muted);
  font-size: 0.74rem;
}

.admin-tool-progress.is-complete .admin-tool-progress-state,
.admin-tool-progress.is-complete .admin-tool-progress-meta:last-child {
  color: #55efa0;
}

.admin-tool-progress.is-error,
.admin-tool-progress.is-stopped {
  border-color: rgba(255, 174, 82, 0.28);
}

.admin-tool-progress.is-error .admin-tool-progress-state,
.admin-tool-progress.is-stopped .admin-tool-progress-state {
  color: #ffb45f;
}

.admin-tool-progress.is-error .admin-tool-progress-state::before,
.admin-tool-progress.is-stopped .admin-tool-progress-state::before {
  background: #ffad4d;
  box-shadow: 0 0 14px rgba(255, 173, 77, 0.55);
}

@keyframes admin-tool-pulse {
  70% { box-shadow: 0 0 0 9px rgba(70, 240, 151, 0), 0 0 16px rgba(70, 240, 151, 0.68); }
  100% { box-shadow: 0 0 0 0 rgba(70, 240, 151, 0), 0 0 14px rgba(70, 240, 151, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-tool-progress.is-running .admin-tool-progress-state::before {
    animation: none;
  }
}

.admin-tool-dead-results {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 91, 126, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 91, 126, 0.12), transparent 38%),
    var(--admin-sub-bg);
}

.admin-tool-dead-results[hidden] {
  display: none;
}

.admin-tool-dead-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-tool-dead-head > div {
  display: grid;
  gap: 3px;
}

.admin-tool-dead-head span {
  color: rgba(255, 91, 126, 0.82);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.admin-tool-dead-head strong {
  color: var(--admin-text);
  font-size: 1rem;
}

.admin-tool-dead-head > b {
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ff8aa3;
  background: rgba(255, 91, 126, 0.12);
  font-size: 0.78rem;
}

.admin-tool-dead-list {
  display: grid;
  gap: 8px;
}

.admin-tool-dead-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px;
  border: 1px solid var(--admin-border);
  border-radius: 11px;
  color: var(--admin-text);
  background: var(--admin-card-bg);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-tool-dead-link:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 108, 255, 0.42);
  background: rgba(138, 43, 226, 0.1);
}

.admin-tool-dead-link > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-tool-dead-link strong,
.admin-tool-dead-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tool-dead-link strong {
  font-size: 0.84rem;
}

.admin-tool-dead-link small {
  color: var(--admin-muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.68rem;
}

.admin-tool-dead-link > b {
  flex: 0 0 auto;
  color: #c994ff;
  font-size: 0.74rem;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .admin-tool-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .admin-tool-dead-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-bulk-toolbar,
.admin-bulk-save-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.admin-bulk-search {
  flex: 1 1 360px;
}

.admin-bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-bulk-select-all {
  border-color: rgba(138, 43, 226, 0.35);
  background: var(--admin-sub-bg);
  color: var(--admin-text);
}

.admin-bulk-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-bulk-field {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--admin-card-bg);
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-bulk-field:hover {
  border-color: rgba(181, 108, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    var(--admin-card-bg);
}

.admin-bulk-field:has(input[type="checkbox"]:checked) {
  border-color: rgba(181, 108, 255, 0.54);
  box-shadow: 0 14px 30px rgba(138, 43, 226, 0.14), inset 0 0 0 1px rgba(181, 108, 255, 0.12);
}

.admin-bulk-field:has(input:focus),
.admin-bulk-field:has(select:focus),
.admin-bulk-field:has(textarea:focus) {
  border-color: rgba(181, 108, 255, 0.70);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.16);
}

.admin-bulk-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--admin-muted);
  letter-spacing: 0.02em;
}

.admin-bulk-field:has(input[type="checkbox"]:checked) > span {
  color: var(--admin-text);
}

.admin-bulk-field input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  min-height: auto;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.admin-bulk-field input[type="checkbox"]::before {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #fff;
  content: "";
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-bulk-field input[type="checkbox"]:checked {
  border-color: transparent;
  background: var(--admin-purple);
  box-shadow: 0 6px 14px var(--admin-purple-glow);
}

.admin-bulk-field input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: scale(1);
}

.admin-bulk-row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-purple);
}

.admin-bulk-field select,
.admin-bulk-field input:not([type="checkbox"]),
.admin-bulk-field textarea {
  width: 100%;
  font-weight: 600;
  text-transform: none;
}

.admin-bulk-field input:not([type="checkbox"]),
.admin-bulk-field select,
.admin-bulk-field textarea {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-bulk-field input:not([type="checkbox"]):hover,
.admin-bulk-field select:hover,
.admin-bulk-field textarea:hover {
  border-color: rgba(181, 108, 255, 0.34);
  background-color: rgba(255, 255, 255, 0.075);
}

.admin-bulk-field input:not([type="checkbox"]):focus,
.admin-bulk-field select:focus,
.admin-bulk-field textarea:focus {
  border-color: rgba(181, 108, 255, 0.72);
  background-color: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.admin-bulk-field select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.admin-bulk-field select option {
  background: #21152f;
  color: #fff;
}

.admin-bulk-field-wide {
  grid-column: span 2;
  min-height: 138px;
}

.admin-bulk-save-row {
  align-items: center;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-sub-bg);
}

.admin-bulk-save-copy {
  display: grid;
  gap: 3px;
  min-width: 220px;
}

.admin-bulk-save-copy strong {
  color: var(--admin-text);
  font-size: 0.92rem;
}

.admin-bulk-save-copy span {
  color: var(--admin-muted);
  font-size: 0.78rem;
}

.admin-bulk-table-wrap {
  margin-top: 16px;
  max-height: 460px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-card-bg);
}

.admin-bulk-product {
  display: grid;
  gap: 3px;
}

.admin-bulk-product-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-bulk-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-sub-bg);
  object-fit: cover;
}

.admin-bulk-product strong {
  max-width: 460px;
  overflow: hidden;
  color: var(--admin-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bulk-product span,
.admin-bulk-muted {
  color: var(--admin-muted);
  font-size: 0.78rem;
}

.admin-bulk-table-wrap table {
  min-width: 1040px;
}

.admin-bulk-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--admin-card-bg);
}

.admin-bulk-table-wrap tbody tr {
  transition: background 0.16s ease;
}

.admin-bulk-table-wrap tbody tr:hover,
.admin-bulk-table-wrap tbody tr.is-selected {
  background: var(--admin-sub-bg);
}

.admin-bulk-table-wrap td:first-child,
.admin-bulk-table-wrap th:first-child {
  width: 72px;
  text-align: center;
}

.admin-bulk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-bulk-badge.is-verified {
  color: var(--admin-green);
  background: rgba(17, 163, 106, 0.12);
}

.admin-bulk-badge.is-unverified {
  color: var(--admin-muted);
  background: var(--admin-sub-bg);
}

.admin-bulk-empty {
  padding: 22px !important;
  color: var(--admin-muted) !important;
  text-align: center !important;
}

.admin-auth-card {
  max-width: 460px;
  margin: 30px auto;
  padding: 28px;
  border-radius: 18px;
}

/* Shared Finds/Sellers glass language across every admin surface. */
.admin-service-item,
.admin-score-list div,
.admin-list-item,
.admin-event-item,
.admin-daily-item,
.admin-priority-item,
.admin-dead-link-item,
.admin-mix-item,
.admin-chart,
.admin-assistant-card,
.admin-tool-action-card,
.admin-tool-check-grid label,
.admin-tool-options label,
.admin-tool-scope,
.admin-bulk-field,
.admin-bulk-save-row,
.admin-bulk-table-wrap,
.admin-tool-dead-link {
  border-color: var(--admin-border);
  box-shadow: var(--admin-card-shadow);
}

.admin-service-item,
.admin-score-list div,
.admin-list-item,
.admin-event-item,
.admin-daily-item,
.admin-priority-item,
.admin-dead-link-item,
.admin-mix-item,
.admin-chart,
.admin-tool-check-grid label,
.admin-tool-options label,
.admin-bulk-table-wrap,
.admin-tool-dead-link {
  background: var(--admin-card-bg);
}

.admin-assistant-card,
.admin-tool-scope,
.admin-bulk-save-row {
  background:
    linear-gradient(135deg, rgba(138,43,226,0.10), rgba(138,43,226,0.025)),
    var(--admin-card-bg);
}

.admin-tool-action-card,
.admin-bulk-field {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(138,43,226,0.035)),
    var(--admin-card-bg);
}

.admin-search input,
.admin-select,
.admin-login-form input,
.admin-tool-field input,
.admin-tool-grid input,
.admin-bulk-field input:not([type="checkbox"]),
.admin-bulk-field select,
.admin-bulk-field textarea,
.admin-tool-output {
  border-color: var(--admin-border);
  background-color: var(--admin-card-bg);
  box-shadow: var(--admin-card-shadow);
}

.admin-auth-card h2 {
  margin: 8px 0;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--admin-red);
}

@media (max-width: 1160px) {
  .admin-hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr);
    gap: 28px;
  }

  .admin-stat {
    grid-column: span 3;
  }

  .insight-card,
  .admin-priority-panel,
  .admin-dead-links-panel,
  .admin-lab-grid > .admin-panel:not(.admin-traffic-panel):not(.admin-products-panel):not(.admin-bulk-products-panel):not(.admin-toolbox-panel):not(.admin-priority-panel):not(.admin-dead-links-panel) {
    grid-column: span 12;
  }

  .admin-bulk-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bulk-toolbar,
  .admin-bulk-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-panel-page {
    width: min(100% - 22px, 1440px);
    margin-top: 104px;
  }

  .admin-hero-panel {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 20px;
  }

  .admin-hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .admin-hero-main {
    gap: 20px;
  }

  .admin-hero-console {
    padding: 8px;
  }

  .admin-console-footer .admin-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-console-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-site-link {
    justify-content: center;
  }

  .admin-console-footer .admin-logout-btn {
    grid-column: 1 / -1;
  }

  .admin-stat {
    grid-column: span 6;
  }

  .admin-toolbar,
  .admin-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-segmented,
  .admin-search,
  .admin-search input,
  .admin-select,
  .admin-primary-btn,
  .admin-secondary-btn,
  .admin-icon-btn,
  .admin-status {
    width: 100%;
  }

  .admin-traffic-grid,
  .admin-tool-grid {
    grid-template-columns: 1fr;
  }

  .admin-tool-action-grid,
  .admin-tool-check-grid,
  .admin-tool-scope {
    grid-template-columns: 1fr;
  }

  .admin-bulk-editor {
    grid-template-columns: 1fr;
  }

  .admin-bulk-field-wide {
    grid-column: span 1;
  }
}

@media (max-width: 430px) {
  .admin-hero-panel {
    padding: 17px;
  }

  .admin-hero-kicker-divider,
  #admin-hero-clock {
    display: none;
  }

  .admin-hero-copy h1 {
    font-size: 2.1rem;
    line-height: .98;
  }

  .admin-hero-snapshot {
    grid-template-columns: 1fr 1fr;
  }

  .admin-hero-snapshot article {
    padding-right: 12px;
  }

  .admin-hero-snapshot article + article {
    padding-left: 12px;
  }

  .admin-hero-snapshot article:last-child {
    grid-column: 1 / -1;
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--admin-border);
    border-left: 0;
  }
}
/* =========================
   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;
  }
}
/* 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: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background:
    radial-gradient(circle at 24% 12%, rgba(168, 85, 247, 0.34), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(236, 72, 153, 0.16), transparent 32%),
    linear-gradient(160deg, rgba(91, 32, 145, 0.70), rgba(25, 9, 42, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  color: #fff !important;
  z-index: 2 !important;
}

.auth-side-logo {
  width: 62px !important;
  height: 62px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px !important;
  background: rgba(0,0,0,0.34) !important;
  color: #b56cff !important;
  font-size: 2rem !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 34px rgba(0,0,0,0.26) !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: 210px !important;
  color: #fff !important;
  font-size: 2.05rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.auth-side-panel p {
  max-width: 220px !important;
  margin: 14px 0 0 !important;
  color: rgba(255,255,255,0.68) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.auth-side-list {
  display: grid !important;
  gap: 9px !important;
}

.auth-side-list i {
  min-height: 34px !important;
  padding: 0 11px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,0.075) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  color: rgba(255,255,255,0.82) !important;
  font-style: normal !important;
  font-size: 0.8rem !important;
  font-weight: 850 !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-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;
}

@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;
  }
}

/* ADMIN RECENT ACTIVITY SCROLL */
.admin-stream-panel {
  min-height: 0;
}

.admin-stream-panel .admin-event-list {
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 43, 226, 0.75) rgba(255, 255, 255, 0.06);
}

.admin-stream-panel .admin-event-list::-webkit-scrollbar {
  display: block;
  width: 7px;
}

.admin-stream-panel .admin-event-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.admin-stream-panel .admin-event-list::-webkit-scrollbar-thumb {
  background: rgba(138, 43, 226, 0.75);
  border-radius: 999px;
}
/* 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;
}

/* Admin registered user directory */
.admin-view-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-users-panel {
  grid-column: span 12 !important;
}

.admin-users-head {
  align-items: center;
}

.admin-users-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--admin-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.admin-users-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-users-stats article {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--admin-border);
  border-radius: 13px;
  background: var(--admin-card-bg);
}

.admin-users-stats span,
.admin-users-stats small {
  color: var(--admin-muted);
  font-size: .7rem;
  font-weight: 800;
}

.admin-users-stats strong {
  margin: auto 0 3px;
  color: var(--admin-text);
  font-size: 1.75rem;
  line-height: 1;
}

.admin-users-stats article:first-child strong {
  color: var(--admin-purple);
}

.admin-users-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.admin-users-search {
  width: min(460px, 100%);
}

.admin-users-status {
  min-height: 24px;
  margin: 0 0 10px;
  color: var(--admin-muted);
  font-size: .74rem;
}

.admin-users-status[data-status="loading"] {
  color: #c28aef;
}

.admin-users-status[data-status="success"] {
  color: var(--admin-green);
}

.admin-users-status[data-status="error"] {
  color: var(--admin-red);
}

.admin-users-table-wrap {
  border: 1px solid var(--admin-border);
  border-radius: 13px;
  background: var(--admin-card-bg);
}

.admin-users-table {
  min-width: 940px !important;
}

.admin-users-table td {
  vertical-align: middle;
  font-size: .77rem;
}

.admin-users-table tbody tr {
  transition: background .16s ease;
}

.admin-users-table tbody tr:hover {
  background: rgba(138, 43, 226, .055);
}

.admin-user-profile {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-user-profile img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-sub-bg);
  object-fit: cover;
}

.admin-user-profile > span,
.admin-user-email {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-profile strong,
.admin-user-email strong {
  overflow: hidden;
  max-width: 280px;
  color: var(--admin-text);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-profile small {
  max-width: 170px;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: .58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-email small {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--admin-purple);
  background: rgba(138, 43, 226, .08);
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-users-table time {
  color: var(--admin-muted);
  font-size: .7rem;
  white-space: nowrap;
}

.admin-user-state {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 900;
}

.admin-user-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.admin-user-state.is-confirmed {
  color: var(--admin-green);
  background: rgba(17, 163, 106, .07);
}

.admin-user-state.is-confirmed i {
  background: var(--admin-green);
  box-shadow: 0 0 8px rgba(17, 163, 106, .5);
}

.admin-user-state.is-pending {
  color: #d89b45;
  background: rgba(216, 155, 69, .07);
}

.admin-user-state.is-pending i {
  background: #d89b45;
}

.admin-users-empty td {
  padding: 42px 20px !important;
  color: var(--admin-muted) !important;
  text-align: center !important;
}

.admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.admin-users-pagination span {
  min-width: 72px;
  color: var(--admin-muted);
  font-size: .72rem;
  font-weight: 850;
  text-align: center;
}

.admin-users-pagination button {
  min-height: 38px;
}

.admin-users-pagination button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .admin-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-users-head,
  .admin-users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users-stats {
    grid-template-columns: 1fr;
  }

  .admin-users-stats article {
    min-height: 94px;
  }

  .admin-users-pagination {
    justify-content: space-between;
  }
}
