@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── Image Protection ──────────────────── */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none; /* Prevents right-click and drag start on the img itself */
}

/* ── Base ─────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050505;
    color: #c0c0c0;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ── Background Blobs ─────────────────────── */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    transition: transform 0.2s ease-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -150px;
}

/* ── Preloader ───────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-line {
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: loading 1.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ── Scroll Progress ──────────────────────── */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: #fff;
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease;
}

.font-serif {
    font-family: 'Playfair Display', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ── Focus ────────────────────────────────── */
.gallery-card:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(255,255,255,0.35);
    outline-offset: 3px;
}

/* ── Header ───────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s ease;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    transition: opacity 0.3s;
}

.logo img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 180px;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.75;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop > a,
.nav-trigger {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-desktop > a::after,
.nav-trigger::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-desktop > a:hover,
.nav-desktop > a.active,
.nav-trigger:hover,
.nav-trigger.active,
.nav-dropdown:hover .nav-trigger {
    color: #fff;
}

.nav-desktop > a:hover::after,
.nav-desktop > a.active::after,
.nav-trigger:hover::after,
.nav-trigger.active::after,
.nav-dropdown:hover .nav-trigger::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
    padding: 0.75rem 0;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 190px;
    padding: 0.65rem;
    background: rgba(10,10,10,0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-dropdown-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav-dropdown-menu a.nav-subitem {
    padding-left: 1.35rem;
    font-size: 0.68rem;
    color: #777;
}

.nav-dropdown-menu a.nav-subitem::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    margin-right: 0.45rem;
    vertical-align: middle;
    background: rgba(255,255,255,0.25);
}

/* ── Hamburger (Mobile) ───────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-mobile.open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ccc;
    transition: color 0.3s;
}

.nav-mobile a:hover {
    color: #fff;
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-toggle {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ccc;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle.active {
    color: #fff;
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.mobile-submenu.open {
    max-height: 18rem;
    opacity: 1;
    margin-top: 0.9rem;
}

.mobile-submenu a {
    display: block;
    padding: 0.25rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #999;
}

.mobile-submenu a.mobile-subitem {
    font-size: 0.74rem;
    color: #777;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-mobile {
        display: flex;
    }
}

/* ── Hero ─────────────────────────────────── */
/* ── Gallery Grid ─────────────────────────── */
.gallery-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

@media (max-width: 768px) {
    .gallery-section {
        padding-top: 5.5rem;
    }
}

.gallery-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: #999;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
}

.category-quote {
    max-width: 920px;
    margin: 0 auto 3rem;
    padding: 0 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.category-quote p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 3.75rem);
    line-height: 1.18;
    color: #fff;
}

.category-quote span {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8a8a8;
}

/* ── Gallery Filters ──────────────────────── */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #999;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.filter-btn.active {
    background: #fff;
    color: #050505;
    border-color: #fff;
}

.gallery-card.hidden {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 0.9rem;
    align-items: start;
}

/* ── Gallery Card ─────────────────────────── */
.gallery-card {
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.4s ease;
}

.gallery-card:hover {
    border-color: rgba(255,255,255,0.1);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.gallery-card .card-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
}

.gallery-card:hover .card-overlay span {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .gallery-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gallery-grid {
        display: block;
        column-count: 3;
        column-gap: 0.65rem;
    }

    .gallery-card {
        margin-bottom: 0.65rem;
    }

    .gallery-card img {
        aspect-ratio: 1 / 1;
        height: auto;
        display: block;
    }

    .gallery-card .card-overlay {
        display: none;
    }

    .home-gallery-section .gallery-card:nth-child(n+19) {
        display: none;
    }
}

/* ── Lightbox ─────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0,0,0,0.96);
    padding: 1.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 520;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateY(-50%);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.18);
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox figure {
    width: min(1200px, calc(100vw - 3rem));
    max-width: 1200px;
    min-width: 0;
    margin: 0;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.lightbox-img {
    max-height: 62vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    display: block;
    width: min(100%, 980px);
    min-width: 0;
    margin: 1.25rem auto 0;
    padding: 0.95rem 1.1rem;
    box-sizing: border-box;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #d0d0d0;
    text-align: left;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: normal;
}

.lightbox-caption[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox figure {
        width: min(100%, calc(100vw - 2rem));
        padding: 4rem 0 2rem;
    }

    .lightbox-img {
        max-height: 56vh;
    }

    .lightbox-caption {
        font-size: 0.92rem;
        line-height: 1.65;
        padding: 0.85rem 0.95rem;
    }

    .lightbox-nav {
        width: 52px;
        height: 52px;
        font-size: 2rem;
        background: rgba(0,0,0,0.52);
        border-color: rgba(255,255,255,0.18);
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }
}

/* ── About Section Editorial ─────────────── */
.about-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 1.5rem;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: flex-start;
    }
}

.about-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #999;
    margin-bottom: 1.5rem;
    display: block;
}

.about-title-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #888;
    font-weight: 300;
}

.contact-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10rem 1.5rem 8rem;
    text-align: center;
}

.section-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.contact-label {
    display: block;
    margin-bottom: 2rem;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #d8d8d8;
}

.contact-section h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: 0.08em;
    color: #fff;
}

.contact-divider {
    width: 60px;
    height: 1px;
    margin: 3rem auto 4rem;
    background: rgba(255,255,255,0.45);
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #f2f2f2;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.contact-link svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link:hover {
    color: #fff;
    opacity: 0.68;
}

.contact-separator {
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,0.32);
}

@media (max-width: 640px) {
    .contact-section {
        padding: 7rem 1.5rem 6rem;
    }

    .contact-section h2 {
        font-size: 1.55rem;
        letter-spacing: 0.04em;
    }

    .contact-links {
        gap: 1.25rem;
    }

    .contact-separator {
        display: none;
    }
}

/* Projects Page */
.projects-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 8rem 1.5rem 5rem;
}

.projects-header {
    margin-bottom: 3rem;
}

.projects-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.project-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.project-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    min-height: 116px;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-row:hover {
    opacity: 0.72;
    transform: translateX(6px);
}

.project-row img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: #111;
}

.project-row-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.1;
}

.project-row-meta {
    color: #777;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .projects-section {
        padding-top: 6rem;
    }

    .project-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 1rem;
        min-height: 100px;
    }

    .project-row img {
        width: 76px;
        height: 64px;
    }

    .project-row-meta {
        grid-column: 2;
        margin-top: -0.65rem;
    }
}



/* ── Footer ───────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
}

.site-footer a {
    color: #a3a3a3;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #fff;
}

/* ── Scroll Reveal ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* ── Admin Panel Styles ───────────────────── */
.admin-body {
    background: #0a0a0a;
    color: #e5e5e5;
    min-height: 100vh;
}

.admin-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
}

.admin-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.admin-title-group p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.admin-title-group h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.15rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a0a0a;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-site-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    color: #f87171;
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: rgba(248,113,113,0.08);
    border-color: rgba(248,113,113,0.4);
}

.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Flash Messages ───────────────────────── */
.flash {
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flash-success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #86efac;
}

.flash-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5;
}

/* ── Admin Cards/Panels ───────────────────── */
.admin-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.75rem;
}

.admin-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.admin-card .subtitle {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

/* ── Form Elements ────────────────────────── */
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: rgba(255,255,255,0.25);
}

.form-input::placeholder {
    color: #999;
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

select.form-input option {
    background-color: #1a1a1a;
    color: #fff;
}

select.form-input optgroup {
    background-color: #1a1a1a;
    color: #a8a8a8;
}

select.form-input option:disabled,
select.form-input option.select-section-label {
    background-color: #1a1a1a;
    color: #8a8a8a;
    font-weight: 600;
}

.form-file {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #999;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}

.form-file::file-selector-button {
    padding: 0.45rem 1rem;
    margin-right: 1rem;
    background: #fff;
    color: #0a0a0a;
    border: none;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.form-file::file-selector-button:hover {
    background: #e0e0e0;
}

/* ── Admin Table ──────────────────────────── */
.admin-table {
    width: 100%;
    min-width: 600px;
    text-align: left;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.admin-table thead {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-table th {
    padding: 0.85rem 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}

.admin-table td {
    padding: 1rem;
    color: #bbb;
    vertical-align: middle;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.admin-table .thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-table .actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ── Login Page ───────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2.5rem;
}

.login-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
}

.login-card .login-sub {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.4rem;
}

.login-back {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    transition: color 0.3s;
}

.login-back:hover {
    color: #fff;
}
