:root {
    --bg-main: #ffffff;
    --card-bg: #f9f9f9;
    --text-primary: #111111;
    --text-muted: #666666;
    --border-subtle: #e5e5e5;
    --item-glow: 0 10px 40px rgba(0,0,0,0.06);
    --grid-color: rgba(0, 0, 0, 0.05);
}
#page-transition {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#page-transition.active {
    pointer-events: auto;
    opacity: 1;
}

#transition-logo i {
    font-size: 50px;
}

#settings-panel {
    display: none !important; 
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999 !important;
}
#zoom-img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    pointer-events: none; 
}

#zoom-wrapper {
    touch-action: none; 
    user-select: none;
}

#settings-panel.is-open {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}
.dark {
    --bg-main: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --border-subtle: #27272a;
    --item-glow: 0 0 30px rgba(255,255,255,0.03);
    --grid-color: rgba(255, 255, 255, 0.03);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s;
}

.bg-grid {
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes metalShine {
    from { background-position: 200% center; }
    to { background-position: -200% center; }
}

.metal-grey {
    background-size: 400% auto;
    -webkit-background-clip: text;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-color: transparent !important;
    animation: metalShine 10s linear infinite;
}

.metal-white {
    background-image: linear-gradient(110deg, #111 35%, #444 50%, #111 65%);
    -webkit-background-clip: text;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

}
.dark .metal-white {

    background-image: linear-gradient(110deg, #ffffff 35%, #cccccc 50%, #ffffff 65%) !important;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.metal-white { background-image: linear-gradient(110deg, #111 35%, #555 50%, #111 65%); }
.dark .metal-white { background-image: linear-gradient(110deg, #fff 35%, #aaa 50%, #fff 65%); }

.metal-grey { background-image: linear-gradient(110deg, #555 35%, #888 50%, #555 65%); }
.dark .metal-grey { background-image: linear-gradient(110deg, #444 35%, #777 50%, #444 65%); }

.text-glow { filter: drop-shadow(0 0 10px rgba(128, 128, 128, 0.15)); }

.item-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    box-shadow: var(--item-glow);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), border-color 0.3s;
}
.product-img {
    border-radius: 1.5rem; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    z-index: 20;
    position: relative;
}

.dark .product-img {

    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.08));
}

.product-img-container {
    background-color: #f0f0f0;
}
.dark .product-img-container {
    background-color: #000000;
}
.item-blur-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(10%);
    opacity: 0.25;
    transform: scale(1.4);
    pointer-events: none;
    will-change: transform;
}

body.lite-mode .item-blur-bg,
body.lite-mode .bg-grid {
    display: none !important; 
}

body.lite-mode .product-img {
    filter: none !important; 
}

.bg-radial-gradient {
    background: radial-gradient(circle, transparent 20%, var(--card-bg) 100%);
    position: absolute;
    inset: 0;
    z-index: 10;
}

#settings-panel {
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}

#settings-panel h4, .text-zinc-500 {
    color: var(--text-muted) !important;
}

.agent-opt, .curr-opt {
    color: var(--text-primary) !important;
}

.agent-opt.active-selection, .curr-opt.active-selection {
    background-color: #222 !important;
    color: white !important;
}
.dark .agent-opt.active-selection {
    background-image: linear-gradient(to right, #1a1a1a, #222);
}

.glass-nav {
    background-color: rgba(var(--bg-main), 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}
body.lite-mode .glass-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--bg-main) !important; 
    border-bottom: 1px solid var(--border-subtle);
}

.cat-btn { background: var(--card-bg); border: 1px solid var(--border-subtle); color: var(--text-muted); }
.cat-btn.is-active { background: var(--text-primary) !important; color: var(--bg-main) !important; }

.is-active-opt {
    background-color: #27272a !important; 
    color: white !important;
}

.item-card {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.dark .item-card {
    box-shadow: 0 10px 40px -15px rgba(255,255,255,0.02);
}

:not(.dark) .metal-white {
    background-image: linear-gradient(110deg, #111 35%, #555 50%, #111 65%);
}

.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background-color: var(--card-bg); 
    color: var(--text-primary);       
    border: 1px solid var(--border-subtle);
    padding: 14px 22px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 14px;

    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    transform: translateX(120%) scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .toast {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.toast.show {
    transform: translateX(0) scale(1);
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: #10b981; 
    color: white !important; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.toast-text {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#view-item button i {
    transition: transform 0.3s;
}
#view-item button:hover i {
    transform: translateX(-4px);
}

.lang-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent; 
    background: transparent !important; 
    filter: grayscale(100%);
    opacity: 0.5;
}

.lang-btn:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.lang-btn.is-active-opt {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--text-primary) !important; 
    background: transparent !important;
}

#settings-panel .lang-btn.is-active-opt {
    background-color: transparent !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#settings-panel h4, 
#settings-panel .text-zinc-500,
#settings-panel span {
    color: var(--text-muted) !important;
}

.agent-opt span, .curr-opt, .lang-btn {
    color: var(--text-primary) !important;
}

:not(.dark) .is-active-opt {
    background-color: #18181b !important; 
    color: #ffffff !important;
}
:not(.dark) .is-active-opt span {
    color: #ffffff !important;
}

#settings-panel .bg-zinc-950\/50, 
#settings-panel div[class*="bg-zinc"] {
    background-color: transparent !important;
    border-top: 1px solid var(--border-subtle) !important;
}

.lang-btn {
    filter: grayscale(100%);
    transition: 0.2s;
    border: 2px solid transparent;
}
.lang-btn.is-active-opt {
    filter: grayscale(0%);
    border-color: var(--text-primary) !important;
    background-color: transparent !important; 
}

