/* ============ FIREFOX & PERF OPTIMIZATIONS ============ */
html { text-rendering: optimizeSpeed; }
img, video { max-width: 100%; height: auto; }
img { content-visibility: auto; }
* { -webkit-font-smoothing: antialiased; }
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* ====================================================== */

/* ==========================================================================
   1. CORE VARIABLES & DEFINITIONS
   ========================================================================== */
:root {
    --bg-pure: #000000;
    --bg-panel: #050508;
    --border-dim: #1a1a24;
    --ice-blue: #00E5FF;
    --neon-green: #39FF14;
    --alert-red: #ff003c;
    --alert-orange: #ffaa00;
    --text-main: #ffffff;
    --text-dim: #888899;
}

body {
    background-color: var(--bg-pure);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   2. GLOBAL NAVIGATION & CONTROL PANELS
   ========================================================================== */
.glass-nav {
    background: rgba(5, 5, 8, 0.65);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    z-index: 50;
}

.nav-link {
    position: relative;
    color: var(--text-dim);
    transition: color 0.3s ease;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 0.5rem 0;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--ice-blue);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-dim);
    font-size: 0.7rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 700;
}

.lang-btn:hover:not(:disabled) {
    border-color: var(--ice-blue);
    color: var(--ice-blue);
}

.currency-switch {
    display: flex;
    border: 1px solid var(--border-dim);
    background: rgba(5,5,8,0.5);
}

.currency-btn {
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dim);
    background: transparent;
    border: none;
    font-family: inherit;
}

.currency-btn.active {
    background: var(--ice-blue);
    color: black;
    box-shadow: 0 0 15px rgba(0,229,255,0.3);
}

#notif-panel, 
#settings-panel {
    opacity: 0;
    pointer-events: none;
    transform-origin: top right;
    transform: scale(0.95) translateY(-15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15); /* Jemný pružinový efekt */
}

#notif-panel.active, 
#settings-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.notif-item {
    border-left: 2px solid var(--border-dim);
    transition: all 0.3s;
}

.notif-item:hover {
    border-color: var(--ice-blue);
    background: rgba(0,229,255,0.02);
}

.notif-item.new {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.03);
}

/* ==========================================================================
   3. BACKGROUND GRID & CORE OS STRUCTURE
   ========================================================================== */
#main-os {
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#main-os.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.blueprint-grid {
    position: fixed;
    top: -50px;
    left: -50px;
    width: calc(100vw + 100px);
    height: calc(100vh + 100px);
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    animation: pan-grid 15s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

@keyframes pan-grid {
    0% { transform: translate3d(0px, 0px, 0px); }
    100% { transform: translate3d(40px, 40px, 0px); }
}

/* ==========================================================================
   4. HUD HARDWARE PANELS & GEOMETRY (CHAMFERS)
   ========================================================================== */
.hud-panel {
    background: rgba(5, 5, 8, 0.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-dim);
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.chamfer-top-right {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.chamfer-bottom-right {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.sys-label {
    font-size: 0.65rem;
    color: var(--ice-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-dim);
    padding-bottom: 5px;
}

/* ==========================================================================
   5. STANDARD PRODUCT CARDS
   ========================================================================== */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--border-dim);
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    will-change: transform, border-color;
}

.product-card:hover:not(.rgb-card) {
    border-color: var(--ice-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.product-card:not(.rgb-card)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--ice-blue);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
    z-index: 10;
}

.product-card:not(.rgb-card):hover::before {
    transform: scaleY(1);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #0a0a0f;
    border-bottom: 1px solid var(--border-dim);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9) grayscale(20%);
    will-change: transform;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(1.1) grayscale(0%);
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ice-blue);
}

.original-price {
    font-size: 0.8rem;
    color: var(--alert-red);
    text-decoration: line-through;
    margin-right: 8px;
}

/* ==========================================================================
   6. CRISP RGB CARD PROTOCOL (PRIDE DROP DROPS)
   ========================================================================== */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8a2be2, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text; /* Přidána standardní vlastnost */
    -webkit-text-fill-color: transparent;
    animation: rainbow-anim 3s linear infinite;
}

@keyframes rainbow-anim {
    to { background-position: 200% center; }
}

@keyframes rgb-flow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.rgb-card {
    position: relative;
    border: none !important;
    background: transparent !important;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

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

.rgb-card::before, 
.rgb-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8a2be2, #ff0000);
    background-size: 300%;
    z-index: 0;
    animation: rgb-flow 4s linear infinite;
}

.rgb-card::after {
    filter: blur(4px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.3s, filter 0.3s;
}

.rgb-card:hover::after {
    opacity: 0.8;
    filter: blur(8px);
}

.rgb-card-inner {
    position: absolute;
    inset: 2px;
    background: rgba(5, 5, 8, 0.95);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.rgb-card > *:not(.rgb-card-inner) {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.rgb-card, 
.rgb-card::before, 
.rgb-card::after, 
.rgb-card-inner {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.rgb-label-glow {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border-color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   7. UNIFIED PRODUCT MODAL DEFAULTS
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--ice-blue);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.15);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    position: relative;
    overflow: hidden;
}

.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0px);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-dim);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    border-color: var(--ice-blue);
    color: var(--ice-blue);
}

#productModal .modal-content {
    max-height: 95vh;
    height: 95vh;
    width: 100%;
    max-width: 1200px;
    flex-direction: column;
}

@media (min-width: 768px) {
    #productModal .modal-content { flex-direction: row; }
}

#tutorialModal .modal-content {
    width: 95%;
    max-width: 850px;
    flex-direction: column;
    max-height: 90vh;
}

/* ==========================================================================
   8. CONFIGURATOR UI (SWATCHES, STEPPERS, INPUTS)
   ========================================================================== */
.gallery-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-dim);
    background: #000;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    opacity: 0.5;
    filter: grayscale(100%);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: var(--text-dim);
    opacity: 0.8;
    filter: grayscale(50%);
}

.gallery-thumb.active {
    border-color: var(--ice-blue);
    opacity: 1;
    filter: grayscale(0%);
    box-shadow: 0 0 10px rgba(0,229,255,0.2);
}

.swatch-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-dim);
    background: rgba(0,0,0,0.5);
    color: var(--text-dim);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: border-color .12s, background .12s, color .12s, transform .08s;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    touch-action: manipulation;
}

.swatch-pill:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(0,229,255,0.04);
}

.swatch-pill:active { transform: scale(0.96); }

.swatch-pill.active {
    border-color: var(--ice-blue);
    background: rgba(0,229,255,0.12);
    color: var(--ice-blue);
    box-shadow: 0 0 12px rgba(0,229,255,0.25);
}

.stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-dim);
    background: rgba(5,5,8,0.8);
    padding: 6px;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

.stepper-row.has-qty {
    border-color: var(--ice-blue);
}

.stepper-controls {
    display: flex;
    border: 1px solid var(--border-dim);
    background: black;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
    border: none;
    font-family: inherit;
}

.stepper-btn { transition: color .12s, background .12s, transform .08s; touch-action: manipulation; user-select: none; }
.stepper-btn:hover { color: white; background: rgba(255,255,255,0.15); }
.stepper-btn:active { transform: scale(0.9); background: rgba(0,229,255,0.15); color: var(--ice-blue); }

.stepper-val {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--ice-blue);
}

.radio-box {
    border: 1px solid var(--border-dim);
    background: rgba(0,0,0,0.5);
    transition: border-color .12s, background .12s, box-shadow .12s, transform .08s;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

label:hover > .radio-box,
.group:hover .radio-box {
    border-color: rgba(0,229,255,0.5);
    background: rgba(0,229,255,0.04);
}

label:active > .radio-box { transform: scale(0.97); }

.radio-box .icon { transition: color .12s, text-shadow .12s; }

.peer:checked ~ .radio-box {
    border-color: var(--ice-blue);
    background: rgba(0, 229, 255, 0.12);
    box-shadow: 0 0 12px rgba(0,229,255,0.2);
}

.peer:checked ~ .radio-box .icon {
    color: var(--ice-blue);
    text-shadow: 0 0 10px var(--ice-blue);
}

.peer:focus-visible ~ .radio-box {
    outline: 2px solid var(--ice-blue);
    outline-offset: 2px;
}

.tech-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-dim);
    color: var(--ice-blue);
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
    transition: 0.3s;
}

.tech-input:focus {
    border-color: var(--ice-blue);
    box-shadow: 0 0 10px rgba(0,229,255,0.2);
}

/* ==========================================================================
   9. INTERACTION UTILITIES (SCROLL, TOAST, TIMELINE)
   ========================================================================== */
.custom-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ice-blue) var(--bg-pure);
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: var(--bg-pure);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--ice-blue);
}

.btn-terminal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--ice-blue);
    color: var(--ice-blue);
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: rgba(0, 229, 255, 0.05);
    cursor: pointer;
    text-decoration: none;
    width: 100%;
}

.btn-terminal:hover:not(:disabled) {
    background: var(--ice-blue);
    color: black;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-terminal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-dim);
    color: var(--text-dim);
    background: transparent;
}

.btn-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-dim);
    color: var(--text-dim);
    padding: 8px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    font-weight: bold;
}

.btn-tutorial:hover {
    border-color: var(--ice-blue);
    color: var(--ice-blue);
    background: rgba(0,229,255,0.05);
    box-shadow: 0 0 15px rgba(0,229,255,0.2);
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--ice-blue);
    color: #000;
    text-align: center;
    border: 1px solid white;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0,229,255,0.4);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.timeline-line-glow {
    position: absolute;
    left: 0.65rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--ice-blue);
    box-shadow: 0 0 15px var(--ice-blue);
    z-index: 1;
}

.timeline-step {
    position: relative;
    margin-bottom: 3rem;
    z-index: 2;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--bg-pure);
    border: 2px solid var(--ice-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ice-blue);
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 0 15px rgba(0,229,255,0.4);
}

.timeline-content {
    padding-left: 1.5rem;
}

/* ==========================================================================
   10. INDEX/TERMINAL SPECIFIC STYLES
   ========================================================================== */
#boot-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-pure);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#boot-screen::after {
    content: " ";
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    pointer-events: none;
    background-size: 100% 2px, 3px 100%;
}

#terminal-output {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    color: var(--ice-blue);
    font-size: 0.85rem;
    line-height: 1.6;
    text-shadow: 0 0 5px var(--ice-blue);
    overflow: hidden;
    text-align: left;
    align-self: center;
    margin-top: 10vh;
    position: relative;
    z-index: 10;
}

.term-line {
    margin: 2px 0;
}

.term-success {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

.glitch-text {
    animation: flicker-anim 0.15s 2;
}

@keyframes flicker-anim {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px var(--ice-blue); }
    50% { opacity: 0.2; text-shadow: none; filter: blur(1px); }
}

@keyframes float-logo {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50% { transform: translate3d(0, -15px, 0); }
}

.animate-float-logo {
    animation: float-logo 6s ease-in-out infinite;
    will-change: transform, filter;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.hero-accent {
    color: var(--ice-blue);
}

/* Newsletter Modal Specifics */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.popup-content {
    background: var(--bg-panel);
    border: 1px solid var(--alert-orange);
    box-shadow: 0 0 50px rgba(255, 170, 0, 0.15);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-content .tech-input {
    color: var(--alert-orange);
}

.popup-content .tech-input:focus {
    border-color: var(--alert-orange);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

.btn-alert {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--alert-orange);
    color: var(--alert-orange);
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
    width: 100%;
}

.btn-alert:hover {
    background: var(--alert-orange);
    color: black;
    box-shadow: 0 0 15px var(--alert-orange);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.65rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--alert-orange);
    width: 14px;
    height: 14px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--alert-orange);
    text-decoration: underline;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
}

.popup-close:hover {
    color: var(--alert-orange);
}

/* ==========================================================================
   11. TERMS OF SERVICE (T.O.S.) SPECIFIC CARDS
   ========================================================================== */
.tos-card {
    border-left: 3px solid var(--border-dim);
}

.tos-card:hover {
    border-left-color: var(--ice-blue);
    background: rgba(0, 229, 255, 0.03);
    transform: translateX(5px);
}

.section-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    pointer-events: none;
    transition: color 0.3s;
}

.tos-card:hover .section-number {
    color: rgba(0, 229, 255, 0.1);
}

.agreement-box {
    border: 1px solid rgba(57, 255, 20, 0.3);
    background: rgba(57, 255, 20, 0.05);
}

.agreement-box:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.15);
    transform: translateY(-5px);
}

/* ==========================================================================
   12. MOBILE MENU & TOUCH TARGETS (UX 2026 UPGRADE)
   ========================================================================== */

/* Tmavý overlay za menu */
.mobile-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-scrim.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hlavní vysouvací panel */
#mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-panel);
    border-left: 1px solid var(--ice-blue);
    z-index: 60;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 229, 255, 0.15);
}

#mobile-drawer.active {
    right: 0;
}

/* Ikona hamburger menu */
.hamburger-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    color: var(--ice-blue);
    border-color: var(--border-dim);
}

/* Optimalizace dotykových ploch pro mobil (min 44x44px) */
.stepper-btn {
    width: 44px;
    height: 44px;
}

.stepper-val {
    width: 44px;
    font-size: 1rem;
}

.currency-btn {
    padding: 12px 15px; /* Zvětšeno pro snadnější tapnutí */
}

.modal-close {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

/* Zajištění, aby byl košík/navigace hned po ruce */
@media (max-width: 768px) {
    .glass-nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
.peer:checked ~ .swatch-chip .fa-check { opacity: 1 !important; }
.swatch-chip { transition: border-color .12s, box-shadow .12s, transform .08s; }
