body {
    background: #000;
    margin: 0;
}

/* Sidebar */
.sidebar-zone {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 900;
    display: flex;
    align-items: flex-start;
}

.sidebar-trigger {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100vh;
}

.sidebar {
    width: auto;
    background: #111;
    padding: 15px;
    border-radius: 0 0 8px 0;
    transform: translateX(-100%);
    transition: transform 0.3s;
    font-family: -apple-system, sans-serif;
    color: #888;
}

.sidebar-zone:hover .sidebar {
    transform: translateX(0);
}

.sidebar button {
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 5px;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
}

.sidebar button:hover {
    border-color: #666;
    color: #ccc;
}

.sidebar .btn-icon {
    cursor: pointer;
    font-size: 1.1rem;
    color: #444;
    margin-right: 10px;
}

.sidebar .btn-icon:hover {
    color: #999;
}

.sidebar .token-form {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.sidebar .token-form input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #1a1a2e;
    color: #eee;
    font-size: 0.8rem;
}

.sidebar .token-form button {
    width: auto;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.hidden { display: none !important; }

/* Gallery */
.gallery {
    columns: 3;
    column-gap: 0;
    line-height: 0;
}

.gallery img {
    width: 100%;
    display: block;
    break-inside: avoid;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery img:hover {
    opacity: 0.85;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close {
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 1.5rem;
    padding: 8px 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery { columns: 2; }
}

@media (max-width: 500px) {
    .gallery { columns: 1; }
}