/* =====================================================
   style.css - Custom Styles PT. Pola Dwipa CMS
   Warna: Deep Navy Blue (Primary), Soft Gold (Accent)
   ===================================================== */

/* --- CSS Variables --- */
:root {
    --navy: #0A1628;
    --navy-light: #132040;
    --navy-mid: #1B2D4F;
    --gold: #C8A951;
    --gold-light: #E8D48B;
    --gold-dark: #A68A3E;
    --offwhite: #F7F5F0;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #6B7280;
    --gray-800: #1F2937;
}

/* --- Global --- */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background-color: var(--offwhite);
    scroll-behavior: smooth;
}

/* --- Sticky Navbar Custom --- */
.navbar-glass {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 169, 81, 0.2);
    transition: all 0.3s ease;
}

.navbar-glass.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Hero Section --- */
.hero-gradient {
    background-image:
        linear-gradient(135deg, rgba(10, 22, 40, 0.94) 0%, rgba(27, 45, 79, 0.86) 52%, rgba(19, 32, 64, 0.88) 100%),
        url('assets/images/banner-internal.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-gradient {
        min-height: clamp(320px, 29.2vw, 560px);
    }
}

@media (max-width: 767px) {
    .hero-gradient {
        background-image:
            linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(27, 45, 79, 0.82) 52%, rgba(19, 32, 64, 0.86) 100%),
            url('assets/images/banner-home.jpg');
        background-size: cover;
        background-position: center;
    }
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* --- Gold Accent Line --- */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.gold-line-center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Cards --- */
.card-project {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.card-project:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15);
}

.card-project img {
    transition: transform 0.5s ease;
}

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

/* --- Stats Counter --- */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Custom Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(200, 169, 81, 0.15);
    transition: opacity 0.2s ease-in-out, transform 0.3s ease;
}

.lightbox-image.is-loading { opacity: 0; }
.public-scroll-locked { overflow: hidden; }
.is-filtered-out { display: none !important; }

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    max-width: 80vw;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(200, 169, 81, 0.3);
}

.lightbox-btn.prev { left: 1.5rem; }
.lightbox-btn.next { right: 1.5rem; }

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(220, 38, 38, 0.8);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(220, 38, 38, 1);
}

/* --- Masonry Grid --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    columns: unset;
}

.masonry-grid .masonry-item {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-grid .masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(10, 22, 40, 0.14);
}

.masonry-grid .masonry-item .card-project {
    flex: 0 0 auto;
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    box-shadow: none;
}

.masonry-grid .masonry-item .card-project:hover {
    transform: none;
    box-shadow: none;
}

.masonry-grid .masonry-item .card-project img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 1rem 1rem 0 0;
    object-fit: cover;
}

.masonry-grid .card-project > .top-2.left-2 {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
}

.masonry-grid .card-project > .top-2.left-2 span {
    display: flex;
    align-items: center;
    max-width: 100%;
    height: 22px;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.masonry-grid .masonry-title-mobile {
    display: flex;
    height: 58px;
    flex: 0 0 58px;
    align-items: flex-start;
    margin-top: 0;
    padding: 11px 12px;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
    box-shadow: none;
}

.masonry-grid .masonry-title-mobile h3 {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.32;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .masonry-grid .masonry-item {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        column-gap: 0.5rem;
    }
    .masonry-grid .masonry-item {
        margin-bottom: 0.5rem;
    }

    .masonry-grid .masonry-item .card-project {
        border-bottom: 0;
        border-radius: 1rem 1rem 0 0;
    }

    .masonry-grid .masonry-title-mobile {
        border-radius: 0 0 1rem 1rem;
        margin-top: 0;
    }
}

/* Gallery proyek: grid kartu khusus layar HP */
@media (max-width: 767px) {
    .masonry-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        columns: unset;
        column-gap: 11px;
    }

    .masonry-grid .masonry-item {
        display: flex;
        min-width: 0;
        height: 100%;
        flex-direction: column;
        margin-bottom: 0;
        overflow: hidden;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(10, 22, 40, 0.07);
    }

    .masonry-grid .masonry-item:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(10, 22, 40, 0.07);
    }

    .masonry-grid .masonry-item .card-project {
        flex: 0 0 auto;
        border-radius: 12px 12px 0 0;
        box-shadow: none;
    }

    .masonry-grid .masonry-item .card-project:hover {
        transform: none;
        box-shadow: none;
    }

    .masonry-grid .masonry-item .card-project img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 12px 12px 0 0;
        object-fit: cover;
    }

    .masonry-grid .card-project > .top-2.left-2 {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
    }

    .masonry-grid .card-project > .top-2.left-2 span {
        display: flex;
        align-items: center;
        max-width: 100%;
        height: 20px;
        padding: 0 7px;
        overflow: hidden;
        border-radius: 6px;
        font-size: 9px;
        line-height: 1;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .masonry-grid .masonry-title-mobile {
        display: flex;
        height: 54px;
        flex: 0 0 54px;
        align-items: flex-start;
        margin-top: 0;
        padding: 10px;
        overflow: hidden;
        border-radius: 0 0 12px 12px;
        box-shadow: none;
    }

    .masonry-grid .masonry-title-mobile h3 {
        display: -webkit-box;
        width: 100%;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.3;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

/* --- Tab Filter --- */
.tab-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.tab-btn.active {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}

/* Mobile: tab navigasi portfolio rata 3 kolom */
@media (max-width: 767px) {
    .portfolio-tabs .tab-btn {
        padding: 0.45rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Gallery: filter kategori grid 2 kolom rata di HP */
    .gallery-filter-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-filter-tabs .tab-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* --- Tombol Filter Pengalaman Kerja (Premium) --- */
.exp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.exp-filter-btn:hover {
    border-color: var(--gold);
    color: var(--navy);
    background: linear-gradient(135deg, rgba(200,169,81,0.06) 0%, rgba(200,169,81,0.12) 100%);
    box-shadow: 0 4px 12px rgba(200,169,81,0.15);
    transform: translateY(-1px);
}

.exp-filter-btn.active {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--gold);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(10,22,40,0.3), inset 0 1px 0 rgba(200,169,81,0.15);
    transform: translateY(-1px);
}

.exp-filter-btn.active svg {
    color: var(--gold-light);
}

.exp-filter-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.exp-filter-btn:hover svg,
.exp-filter-btn.active svg {
    opacity: 1;
}

/* Mobile: tombol filter rata satu baris penuh */
@media (max-width: 767px) {
    #filter-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    .exp-filter-btn {
        justify-content: center;
        padding: 0.55rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* --- Form Styles --- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

/* --- Password Toggle --- */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

/* --- Button Gold --- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 169, 81, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 169, 81, 0.4);
}

/* --- Reset Password Standalone (tanpa Tailwind runtime) --- */
.reset-password-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--gray-800);
}

.reset-password-shell {
    width: 100%;
    max-width: 28rem;
}

.reset-password-brand-block,
.reset-password-center {
    text-align: center;
}

.reset-password-brand-block {
    margin-bottom: 2rem;
}

.reset-password-brand {
    margin: 0;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.reset-password-kicker {
    margin: 0.25rem 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.reset-password-card {
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.reset-password-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
}

.reset-password-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.reset-password-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.reset-password-primary-link {
    display: inline-block;
    text-decoration: none;
}

.reset-password-secondary-link {
    color: var(--gold);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reset-password-secondary-link:hover {
    color: var(--gold-dark);
}

.reset-password-title {
    margin: 0 0 0.5rem;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
}

.reset-password-description {
    margin: 0 0 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.reset-password-form {
    display: grid;
    gap: 1.25rem;
}

.reset-password-label {
    display: block;
    margin-bottom: 0.375rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.reset-password-input {
    box-sizing: border-box;
    padding-right: 3rem;
}

.reset-password-submit {
    width: 100%;
    min-height: 44px;
    text-align: center;
}

@media (max-width: 480px) {
    .reset-password-page {
        padding: 0.875rem;
    }

    .reset-password-brand-block {
        margin-bottom: 1.5rem;
    }

    .reset-password-card {
        padding: 1.25rem;
    }
}

/* --- Login Standalone (tanpa Tailwind runtime) --- */
.login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--navy);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #fff;
}

.login-glow,
.login-backdrop {
    position: fixed;
    pointer-events: none;
}

.login-glow {
    z-index: 1;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
}

.login-glow-gold {
    top: -20%;
    left: -10%;
    background: rgba(200, 169, 81, 0.20);
}

.login-glow-blue {
    right: -10%;
    bottom: -20%;
    background: rgba(30, 58, 138, 0.40);
}

.login-backdrop {
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--navy), #0d1b32 52%, #050a14);
    opacity: 0.9;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
}

.login-brand-block {
    margin-bottom: 2rem;
    text-align: center;
}

.login-brand {
    margin: 0;
    color: var(--gold);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.login-kicker {
    margin: 0.5rem 0 0;
    color: rgba(232, 212, 139, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.login-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.login-title {
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.login-page [role="alert"] {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
}

.login-page [role="alert"].bg-green-100 {
    border-color: #4ade80;
    background: #dcfce7;
    color: #166534;
}

.login-page [role="alert"].bg-red-100 {
    border-color: #f87171;
    background: #fee2e2;
    color: #991b1b;
}

.login-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    backdrop-filter: blur(12px);
}

.login-alert-error {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
    color: #f87171;
}

.login-countdown {
    display: block;
    margin-top: 0.25rem;
    color: #fca5a5;
}

.login-form {
    display: grid;
    gap: 1.5rem;
}

.login-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
}

.login-input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-input::placeholder {
    color: #6b7280;
}

.login-input:focus {
    border-color: rgba(200, 169, 81, 0.50);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.18);
}

.login-password-input {
    padding-right: 3rem;
}

.login-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.login-guard {
    position: relative;
    width: 100%;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(200, 169, 81, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.login-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(200, 169, 81, 0.50);
}

.login-turnstile-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    cursor: help;
}

.login-turnstile-hint {
    margin: 0.5rem 0 0;
    color: rgba(232, 212, 139, 0.82);
    font-size: 0.75rem;
    font-weight: 500;
}

.login-page .hidden {
    display: none !important;
}

.login-page .opacity-50 {
    opacity: 0.5;
}

.login-page .cursor-not-allowed {
    cursor: not-allowed;
}

.login-forgot-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.login-forgot-link {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot-link:hover {
    color: var(--gold);
}

.login-copyright {
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-align: center;
}

@media (max-width: 480px) {
    .login-page {
        padding: 0.875rem;
    }

    .login-brand-block {
        margin-bottom: 1.5rem;
    }

    .login-brand {
        font-size: 1.55rem;
    }

    .login-kicker {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
    }

    .login-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .login-title {
        font-size: 1.35rem;
    }
}

/* --- Forgot Password Standalone (tanpa Tailwind runtime) --- */
.forgot-password-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--navy);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #fff;
}

.forgot-password-glow,
.forgot-password-backdrop {
    position: fixed;
    pointer-events: none;
}

.forgot-password-glow {
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
}

.forgot-password-glow-gold {
    top: -20%;
    left: -10%;
    background: rgba(200, 169, 81, 0.20);
}

.forgot-password-glow-blue {
    right: -10%;
    bottom: -20%;
    background: rgba(30, 58, 138, 0.40);
}

.forgot-password-backdrop {
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--navy), #0d1b32 52%, #050a14);
    opacity: 0.9;
}

.forgot-password-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
}

.forgot-password-brand-block {
    margin-bottom: 2rem;
    text-align: center;
}

.forgot-password-brand {
    margin: 0;
    color: var(--gold);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.forgot-password-kicker {
    margin: 0.5rem 0 0;
    color: rgba(232, 212, 139, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.forgot-password-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.forgot-password-title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.forgot-password-description {
    margin: 0 0 1.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.forgot-password-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    backdrop-filter: blur(12px);
}

.forgot-password-alert-success {
    border-color: rgba(34, 197, 94, 0.30);
    background: rgba(34, 197, 94, 0.10);
    color: #4ade80;
}

.forgot-password-alert-error {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
    color: #f87171;
}

.forgot-password-form {
    display: grid;
    gap: 1.5rem;
}

.forgot-password-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password-input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.forgot-password-input::placeholder {
    color: #6b7280;
}

.forgot-password-input:focus {
    border-color: rgba(200, 169, 81, 0.50);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.18);
}

.forgot-password-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.forgot-password-guard {
    position: relative;
    width: 100%;
}

.forgot-password-submit {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(200, 169, 81, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.forgot-password-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(200, 169, 81, 0.50);
}

.forgot-password-turnstile-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    cursor: help;
}

.forgot-password-turnstile-hint {
    margin: 0.5rem 0 0;
    color: rgba(232, 212, 139, 0.82);
    font-size: 0.75rem;
    font-weight: 500;
}

.forgot-password-page .hidden {
    display: none !important;
}

.forgot-password-page .opacity-50 {
    opacity: 0.5;
}

.forgot-password-page .cursor-not-allowed {
    cursor: not-allowed;
}

.forgot-password-back-link-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-password-back-link {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-back-link:hover {
    color: var(--gold);
}

.forgot-password-copyright {
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-align: center;
}

@media (max-width: 480px) {
    .forgot-password-page {
        padding: 0.875rem;
    }

    .forgot-password-brand-block {
        margin-bottom: 1.5rem;
    }

    .forgot-password-brand {
        font-size: 1.55rem;
    }

    .forgot-password-kicker {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
    }

    .forgot-password-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .forgot-password-title {
        font-size: 1.35rem;
    }
}

/* --- Section Padding --- */
.section-padding {
    padding: 5rem 1rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 1rem;
    }
    .stat-number {
        font-size: 1.75rem;
    }
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Mobile Accordion --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-icon.is-rotated { transform: rotate(180deg); }

.public-chat-icon { text-shadow: none; }
.public-chat-window { height: min(480px, calc(100dvh - 7rem)); }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.portfolio-filter-scroller { -ms-overflow-style: none; scrollbar-width: none; }
.portfolio-filter-scroller::-webkit-scrollbar { display: none; }

@keyframes pan-image-transform {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 100vw)); }
}

@media (max-width: 767px) {
    .mobile-pan {
        width: auto !important;
        max-width: none !important;
        height: 100% !important;
        animation: pan-image-transform 35s ease-in-out infinite alternate;
        will-change: transform;
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-container:hover { animation-play-state: paused; }

#pola-chat-login,
#pola-chat-offline { padding: 0.75rem; }
#pola-chat-preview { width: min(22rem, calc(100vw - 1rem)); }
#pola-chat-preview-messages { display: flex; flex-direction: column; gap: 0.55rem; }
.pola-chat-preview-bubble { background: #ffffff; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 1rem; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12); padding: 0.85rem 0.95rem; }
.pola-chat-preview-welcome { background: linear-gradient(180deg, #ffffff 0%, #fff8eb 100%); border: 1px solid rgba(200, 169, 81, 0.24); border-radius: 1rem; box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16); padding: 1rem; position: relative; }
.pola-chat-preview-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 340px) {
    #pola-chat-login,
    #pola-chat-offline { padding: 0.25rem; }
}

@media (min-width: 640px) {
    #pola-chat-login { padding: 1.5rem; }
    #pola-chat-offline { padding: 1rem; }
}

/* --- Admin-specific --- */
.admin-sidebar {
    background: var(--navy);
    min-height: 100vh;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.25rem;
    display: block;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(200, 169, 81, 0.15);
    color: var(--gold);
}

/* --- Print Protection --- */
@media print {
    .no-print { display: none !important; }
}
