:root {
    --bg: #121826;
    --panel: #1c2433;
    --panel-alt: #202d42;
    --text: #edf4ff;
    --muted: #aab8cc;
    --accent: #7ec7ff;
    --border: rgba(255,255,255,0.06);
    --shadow: rgba(0,0,0,0.2);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #121826 100%);
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.topbar {
    background: rgba(18,24,38,0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: #fff;
}

nav {
    display: flex;
    gap: 18px;
}

.panel {
    background: rgba(28, 36, 51, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px var(--shadow);
    padding: 22px;
    margin-bottom: 22px;
}

.grid {
    display: grid;
    gap: 22px;
}

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

h1, h2, h3 {
    margin-top: 0;
}

input, textarea, button {
    width: 100%;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

button {
    background: linear-gradient(135deg, #7ec7ff, #8ce0c2);
    color: #08111a;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
}

.album-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.album-list li {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
}

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(126, 199, 255, 0.18);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
}

.badge.muted {
    background: rgba(255,255,255,0.06);
    color: var(--muted);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.photo-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.photo-form {
    display: grid;
    gap: 8px;
}

.detail-image {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.detail-list li {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
}

.photo-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
}

.nav-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.dropzone {
    display: grid;
    gap: 12px;
}

.dropzone-area {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 2px dashed rgba(126, 199, 255, 0.7);
    border-radius: 16px;
    background: rgba(126, 199, 255, 0.06);
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone-area.is-dragover {
    border-color: #8ce0c2;
    background: rgba(140, 224, 194, 0.08);
}

.dropzone-area input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 760px) {
    .two-columns { grid-template-columns: 1fr; }
    .topbar .wrap { flex-direction: column; gap: 10px; }
}
