:root {
    --navy-900: #0a1220;
    --navy-800: #0f1a2e;
    --navy-700: #14223a;
    --gold-500: #f0b429;
    --gold-400: #ffd36a;
    --ink-100: #0b0f18;
    --ink-200: #121a2a;
    --ink-500: #a7b2c6;
    --white: #eef2f7;
    --shadow: 0 24px 48px rgba(5, 10, 20, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--ink-100);
    color: var(--white);
}

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

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

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.nav {
    background: var(--navy-900);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 10px 24px rgba(11, 27, 52, 0.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-mark {
    width: 42px;
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-lang {
    padding: 8px 10px;
    font-size: 12px;
}

.btn-lang.is-active {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 13px;
}

#creditPill {
    display: none;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 13px;
}

.user-role {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

#userPill {
    display: none;
}

.admin-only {
    display: none;
}

[data-auth="admin"],
[data-auth="user"] {
    display: none;
}

[data-auth="guest"] {
    display: block;
}

.login-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-family: inherit;
    background: #0b1220;
    color: var(--white);
}

.login-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.status-message {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-500);
}

.status-message.is-error {
    color: #c2410c;
}

.status-message.is-success {
    color: #15803d;
}

#logoutButton {
    display: none;
}

.topup-card {
    margin-top: 20px;
}

.pricing-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.pricing-table th,
.pricing-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
}

.pricing-note {
    margin-top: 12px;
    color: var(--ink-500);
    font-size: 13px;
}

.bank-info {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.bank-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bank-qr img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #0b1220;
}

.bank-qr span {
    font-size: 12px;
    color: var(--ink-500);
}

.topup-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.topup-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-family: inherit;
    background: #0b1220;
    color: var(--white);
}

.admin-projects {
    margin-top: 24px;
}

.admin-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumb-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.thumb-chip {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink-200);
}

.thumb-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-chip button {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    border-radius: 999px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
}

.upload-progress {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-500);
    transition: width 0.2s ease;
}

.upload-progress-text {
    font-size: 12px;
    color: var(--ink-500);
    margin-top: 6px;
}

.btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.btn-icon {
    gap: 6px;
}

.hero {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    padding: 80px 0 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--gold-400);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 0 16px;
    line-height: 1.1;
}

.hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin: 0 0 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-visual {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

section {
    padding: 72px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
}

.section-title p {
    margin: 0;
    max-width: 620px;
    color: var(--ink-500);
    line-height: 1.6;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: #0f172a;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(5, 10, 20, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.card h3 {
    margin: 12px 0 10px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.6;
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(240, 180, 41, 0.16);
    color: #b7791f;
}

.projects {
    background: #0c1424;
}

.project-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-btn {
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    cursor: pointer;
}

.filter-btn.active {
    background: var(--navy-900);
    color: var(--white);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ink-500);
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-thumb {
    width: 100%;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ink-200);
    margin-bottom: 12px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.locked {
    background: rgba(11, 27, 52, 0.08);
    color: var(--navy-900);
    border-color: rgba(11, 27, 52, 0.12);
}

.credits {
    background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
    color: var(--white);
}

.credits .card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.credits .card p {
    color: rgba(255, 255, 255, 0.75);
}

.upload-box {
    background: #0f172a;
    border-radius: 20px;
    padding: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

.upload-box label {
    font-size: 14px;
    color: var(--ink-500);
    display: block;
    margin-bottom: 6px;
}

.upload-box input,
.upload-box select,
.upload-box textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-family: inherit;
    background: #0b1220;
    color: var(--white);
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-thumb {
    background: linear-gradient(135deg, #1b2a45, #0f1a2e);
    border-radius: 18px;
    padding: 16px;
    color: var(--white);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer {
    background: var(--navy-900);
    color: var(--white);
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.footer p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

@media (max-width: 960px) {
    .hero-grid,
    .grid-3,
    .videos-grid,
    .footer-grid,
    .upload-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }
}
