* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at 50% 35%, #18263a 0%, #0b111a 45%, #05080d 100%);

    color: #e8edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;

    background: rgba(5, 8, 13, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    width: min(90%, 1200px);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 0.9rem;
    color: #98a5b5;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e8edf3;
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
}

.hero-content {
    width: min(90%, 700px);
    margin: 0 auto;
    padding: 20px 0 10px;
}

.hero-banner {
    position: relative;
    width: 100%;
    padding: 190px 0 60px;
}

.hero-gallery {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0 0;
    scrollbar-width: none;
}

.hero-gallery-track {
    display: flex;
    gap: 8px;
    width: max-content;
    will-change: transform;
}

.hero-gallery::-webkit-scrollbar {
    display: none;
}

.hero-gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: clamp(120px, 12.5vw, 180px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.hero-carousel-hover {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    z-index: 5;
    cursor: pointer;
}

.hero-carousel-hover-left {
    left: 0;
}

.hero-carousel-hover-right {
    right: 0;
}

.logo {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 1;
}

.logo .net {
    color: #ffffff;
}

.logo .quick {
    color: #4da3ff;
}

.line {
    width: 70px;
    height: 3px;
    margin: 20px auto 24px;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        transparent,
        #4da3ff,
        transparent
    );
}

.hero-image-wrap {
    position: relative;
    width: min(1100px, 85vw);
    left: 50%;
    transform: translateX(-50%);
}

.hero-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(50px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.2);
    transform-origin: center center;
}

.hero-banner-img {
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 400;
    letter-spacing: 1px;
}

p {
    margin: 0;
    color: #98a5b5;
    font-size: 1.05rem;
    line-height: 1.8;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 24px;
    padding: 9px 16px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;

    background: rgba(255, 255, 255, 0.03);

    color: #738195;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #45d483;

    box-shadow: 0 0 10px rgba(69, 212, 131, 0.7);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-inner {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.section h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
}

.section-subtitle {
    margin: 0 0 32px;
    color: #8a96a8;
    font-size: 1rem;
}

/* Gallery */
.gallery-group {
    margin-bottom: 48px;
}

.gallery-group-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #c6cdd8;
}

.gallery-group-title a {
    color: inherit;
    text-decoration: none;
}

.gallery-group-title a:hover {
    color: #4da3ff;
}

.gallery-more {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c6cdd8;
    font-size: 0.85rem;
    text-decoration: none;
}

.gallery-more:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e8edf3;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.category-header .section-subtitle {
    margin: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    color: rgba(255, 255, 255, 0.85);

    background: rgba(5, 8, 13, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
}

.gallery-item.video .gallery-icon {
    opacity: 1;
    font-size: 3rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    padding: 24px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.card p {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: #8a96a8;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;

    background: #4da3ff;
    color: #0b111a;
    font-weight: 600;
    font-size: 0.9rem;

    transition: background 0.2s, transform 0.15s;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e8edf3;
    margin-left: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(5, 8, 13, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 210;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    background: rgba(11, 17, 26, 0.6);
    color: #e8edf3;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: min(90%, 1100px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    display: block;
}

.lightbox-caption {
    margin-top: 14px;
    color: #c6cdd8;
    font-size: 0.95rem;
    text-align: center;
}

/* Legal Page */
.legal-page {
    width: min(90%, 800px);
    margin: 0 auto;
    padding: 80px 0;
}

.legal-page h1 {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 600;
}

.legal-page h2 {
    margin: 32px 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #c6cdd8;
}

.legal-page p {
    margin: 0 0 14px;
    color: #98a5b5;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-page a {
    color: #4da3ff;
    text-decoration: none;
}

.legal-page a:hover {
    color: #74b8ff;
}

/* App Modal */
.app-modal {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(5, 8, 13, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.app-modal.open {
    display: flex;
}

.app-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 210;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    background: rgba(11, 17, 26, 0.6);
    color: #e8edf3;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.app-modal-content {
    position: relative;
    width: min(90%, 900px);
    max-height: 85vh;
    overflow-y: auto;

    padding: 32px;

    border-radius: 16px;

    background: rgba(11, 17, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #e8edf3;
    font-size: 0.95rem;
    line-height: 1.7;
}

.app-modal-content h1,
.app-modal-content h2,
.app-modal-content h3 {
    margin: 0 0 12px;
    color: #e8edf3;
}

.app-modal-content p {
    margin: 0 0 14px;
    color: #98a5b5;
}

.app-modal-content a {
    color: #4da3ff;
    text-decoration: none;
}

.app-modal-content a:hover {
    color: #74b8ff;
}

.app-modal-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

.app-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.9rem;
}

.app-modal-content th,
.app-modal-content td {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.app-modal-content th {
    background: rgba(255, 255, 255, 0.04);
    color: #c6cdd8;
    font-weight: 600;
}

.app-modal-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.app-modal-content pre {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 14px 0;
}

.app-modal-content pre code {
    background: none;
    padding: 0;
}

.app-modal-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 24px 0;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 32px 0;
    text-align: center;
}

.footer-inner {
    width: min(90%, 1200px);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: #465160;
    font-size: 0.8rem;
}

.footer-inner a {
    color: #738195;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: #e8edf3;
}

/* NSFW Gate */
[data-nsfw-gate] {
    position: relative;
}

[data-nsfw-gate] .nsfw-gate-media {
    filter: blur(24px);
    transform: scale(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

html.nsfw-gate-unlocked [data-nsfw-gate] .nsfw-gate-media {
    filter: none;
    transform: none;
}

[data-nsfw-gate] .nsfw-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 13, 0.4);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

html.nsfw-gate-unlocked [data-nsfw-gate] .nsfw-gate-overlay {
    opacity: 0;
    pointer-events: none;
}

.nsfw-gate-message {
    text-align: center;
    color: #e8edf3;
}

.nsfw-gate-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.nsfw-gate-text {
    font-size: 0.9rem;
    color: #98a5b5;
    margin-bottom: 16px;
}

.nsfw-gate-reset {
    display: none;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c6cdd8;
    font-size: 0.8rem;
    cursor: pointer;
}

html.nsfw-gate-unlocked .nsfw-gate-reset {
    display: inline-block;
}

.nsfw-gate-reset:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #e8edf3;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: 70vh;
    }

    .section {
        padding: 60px 0;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .logo {
        letter-spacing: -2px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
.admin-section-nav { display:flex; flex-wrap:wrap; gap:12px; max-width:1200px; margin:24px auto; padding:0 20px; }
.admin-section-nav a { padding:8px 12px; border:1px solid #444; border-radius:6px; color:inherit; text-decoration:none; }
.nav-links { flex-wrap:wrap; }

.admin-section-nav a[aria-current="page"] { background:#293b50; border-color:#4da3ff; color:#fff; }

/* Keep admin navigation in the content flow, below the site header. */
.admin-layout .navbar { position: sticky; flex-shrink: 0; }
.admin-layout main > .section { padding-top: 32px; }
.admin-layout .admin-section-nav {
    margin: 18px 0 28px;
    padding: 0 0 12px;
    max-width: none;
    border-bottom: 1px solid #444;
}
.admin-layout .nav-inner { gap: 16px; }
.admin-layout .nav-links { justify-content: flex-end; gap: 12px 20px; }
@media (max-width: 600px) {
    .admin-layout .nav-inner { align-items: flex-start; }
    .admin-layout .nav-links { gap: 8px 12px; }
    .admin-layout .admin-section-nav { gap: 8px; }
}
