/* ---------- CORE LOGIC ---------- */
html, body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050505;
    touch-action: none;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#tab-skins, #tab-upload, #tab-shop, #playerList, #admin-profile-view {
    touch-action: pan-y;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
::-webkit-scrollbar { display: none; }

.glass { 
    background: rgba(20, 20, 25, 0.75); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
}

.glossy-card { 
    background: rgba(30, 30, 35, 0.45); 
    backdrop-filter: blur(35px); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
}


.nav-btn { 
    opacity: 0.4; 
    transition: 0.3s; 
    color: #a1a1aa !important; 
    border-radius: 0;
}


nav .nav-btn:first-child {
    border-top-left-radius: 1.8rem;
    border-bottom-left-radius: 1.8rem;
}

nav .nav-btn:last-child {
    border-top-right-radius: 1.8rem;
    border-bottom-right-radius: 1.8rem;
}

.nav-btn.active-tab { 
    opacity: 1; 
    color: #3b82f6 !important; 
    background: rgba(255, 255, 255, 0.05);
}

.skin-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
}
@media (min-width: 440px) { .skin-grid { grid-template-columns: repeat(4, 1fr); } }

.copy-btn {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.copy-btn svg { width: 12px; height: 12px; color: #3b82f6; }
.copy-btn.copied { background: #3b82f6; border-color: transparent; }
.copy-btn.copied svg { color: #fff; }

.pending-skin { 
    border: 3px solid rgba(245, 158, 11, 0.5) !important; 
    animation: pulse 2s infinite; 
}
@keyframes pulse { 50% { opacity: 0.7; } }

.canvas-wrapper { position: relative; display: inline-flex; width: 100%; justify-content: center; }
.zoom-dock { 
    position: absolute; 
    right: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.zoom-dock button { 
    width: 44px; 
    height: 44px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white;
    border-radius: 12px;
    font-weight: bold;
}

.ios-glossy-btn { 
    background: linear-gradient(180deg, #1877F2 0%, #1565C0 100%); 
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); 
}

#adminSearch::placeholder { color: rgba(255,255,255,0.2); }
#playerList > div { animation: fadeIn 0.3s ease-out forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.slot-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.05em;
}


#appPage {
    padding-top: 10px;
}


#homeAccountHeader {
    margin-bottom: 12px; 
    width: 100%;
}


.header-glow {
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
}

#bg-canvas {
    position: absolute;
    inset: 0;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.login-card {
    background: rgba(15, 15, 20, 0.4) !important;
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fb-btn-premium {
    width: 250px !important;
    height: 44px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px !important; 
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #dadce0 !important;
    cursor: pointer;
    transition: background 0.2s;
}

.fb-btn-premium:hover {
    background: #f8f9fa !important;
}

#googleBtn {
    width: 250px !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.slot-filled {
    border-color: rgba(34, 197, 94, 0.6) !important;
    background: rgba(34, 197, 94, 0.1) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}
.slot-error {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

#canvas {
    max-width: 85vw;
    max-height: 85vw;
    transition: border-color 0.2s ease;
}


.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


input[type="range"] {
    -webkit-appearance: none; /* For Chrome/Safari */
    appearance: none;         /* Standard version */
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
    border: none; /* Removes any default browser borders */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.peer:checked ~ .peer-checked\:bg-blue-600 {
    background-color: #2563eb;
}

.canvas-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 40px; 
}

.zoom-dock {
    position: absolute;
    right: -25px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.zoom-dock button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-dock button:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}