* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

:root {
    --page-bg: linear-gradient(180deg, #e6f1fb 0%, #eef5fb 34%, #f9fbfe 100%);
    --panel-bg: rgba(255, 255, 255, 0.95);
    --panel-border: rgba(159, 191, 220, 0.42);
    --nav-surface: rgba(214, 232, 246, 0.2);
    --nav-pill: rgba(232, 243, 251, 0.5);
    --nav-pill-active: #b8dbf3;
}

body {
    background: var(--page-bg);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.card {
    width: 100%;
    max-width: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #5f91bd, #79add3 52%, #98c4e6 100%);
    box-shadow: 0 8px 24px rgba(54, 95, 133, 0.2);
}

.header {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    max-width: 1180px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex: 1;
    justify-content: flex-end;
}

.header::after {
    content: '';
    display: block;
    height: 30px;
    background: radial-gradient(circle at 20% 0, transparent 10px, #6d9dc7 10px),
                radial-gradient(circle at 50% 0, transparent 10px, #6d9dc7 10px),
                radial-gradient(circle at 80% 0, transparent 10px, #6d9dc7 10px);
    background-size: 100px 30px;
    background-repeat: repeat-x;
    transform: translateY(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img.logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    flex-shrink: 0;
}

.brand span {
    color: #f7fbff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.header h1 {
    display: none;
}

/* ===== NAVIGASI DENGAN BACKGROUND TERPISAH ===== */
.navbar {
    background: var(--nav-surface);
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    border: 1px solid rgba(230, 242, 251, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
}

@media screen and (max-width: 1024px) {
    .header {
        align-items: flex-start;
        gap: 14px;
    }

    .header-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        align-items: center;
    }

    .brand {
        flex: 1 1 280px;
    }

    .brand span {
        font-size: 20px;
    }

    .navbar {
        flex: 1 1 420px;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
        width: max-content;
        max-width: 100%;
        background: var(--nav-surface);
        border: 1px solid rgba(230, 242, 251, 0.28);
        box-shadow: none;
        backdrop-filter: blur(12px);
    }

    .navbar a {
        font-size: 15px;
        padding: 10px 14px;
    }
}

.navbar a {
    color: #153a59;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 11px 18px;
    background-color: var(--nav-pill);
    border-radius: 30px;
    border: 1px solid rgba(232, 243, 251, 0.7);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(56, 96, 132, 0.12);
}

.auth-toggle {
    color: #153a59;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 20px;
    background-color: var(--nav-pill);
    border-radius: 30px;
    border: 1px solid rgba(232, 243, 251, 0.7);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(56, 96, 132, 0.12);
    cursor: pointer;
    align-self: center;
    margin-left: 6px;
}

.auth-toggle[data-state="logged-in"] {
    background-color: #d8ecff;
    color: #0a2a44;
}

.navbar a:hover {
    background-color: var(--nav-pill-active);
    color: #102f4a !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(56, 96, 132, 0.16);
}

.navbar a:active {
    background-color: #9ecae7;
    transform: translateY(0);
}

.auth-toggle:hover {
    background-color: var(--nav-pill-active);
    color: #102f4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(56, 96, 132, 0.16);
}

/* ===== PERBAIKAN NAVBAR UNTUK HP ===== */
@media screen and (max-width: 768px) {
    .header-wrapper {
        position: relative;
    }
    
    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 14px 16px;
        min-height: auto;
    }
    
    .brand {
        justify-content: flex-start;
        margin-bottom: 6px;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        align-items: flex-start;
    }
    
    .brand span {
        font-size: 17px;
        text-align: left;
        max-width: 220px;
    }
    
    .navbar {
        width: max-content;
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        border-radius: 24px;
        background: var(--nav-surface);
        border: 1px solid rgba(230, 242, 251, 0.28);
        box-shadow: none;
        backdrop-filter: blur(12px);
    }
    
    .navbar a {
        font-size: 14px;
        padding: 10px 12px;
        text-align: center;
        min-width: max-content;
    }

    .auth-toggle {
        font-size: 14px;
        padding: 10px 12px;
        text-align: center;
        min-width: max-content;
        width: auto;
        align-self: flex-start;
    }

    .navbar::-webkit-scrollbar {
        display: none;
    }
}

/* Untuk HP kecil */
@media screen and (max-width: 480px) {
    .header::after {
        display: none;
    }

    .brand {
        gap: 8px;
    }

    .brand img.logo {
        width: 54px;
        height: 54px;
    }

    .brand span {
        font-size: 14px;
    }
    
    .navbar {
        border-radius: 20px;
        padding: 8px 10px;
    }
    
    .navbar a {
        font-size: 13px;
        padding: 9px 10px;
    }

    .auth-toggle {
        font-size: 13px;
        padding: 9px 10px;
    }
}

/* Untuk HP dengan layar sangat kecil */
@media screen and (max-width: 360px) {
    .navbar a {
        font-size: 12px;
        padding: 9px 12px;
    }
}
/* ===== AKHIR NAVIGASI ===== */

.content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 56px;
}

@media (max-width: 1024px) {
    .content {
        width: min(100% - 24px, 100%);
        padding: 28px 0 40px;
    }

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

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

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: #0a2a44;
    margin-bottom: 25px;
    border-left: 8px solid #0a2a44;
    padding-left: 20px;
    line-height: 1.2;
}

.description {
    font-size: 18px;
    line-height: 1.7;
    color: #1e3a5f;
    background: var(--panel-bg);
    padding: 25px 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 40px rgba(20, 56, 96, 0.08);
}

.description strong {
    color: #0a2a44;
}

.clipboard-notice {
    background-color: #f0f5fa;
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    border: 1px solid #c0d0e5;
    margin-bottom: 30px;
}

.clipboard-item {
    font-size: 16px;
    color: #1e3a5f;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.member-card {
    border: 1px solid #c9d9e9;
    border-radius: 16px;
    background-color: #fff;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.member-card img {
    width: 100%;
    border-radius: 12px;
    height: 160px;
    object-fit: cover;
}

.member-card h3 {
    margin: 10px 0 4px;
    font-size: 18px;
    color: #123456;
}

.member-card p {
    margin: 2px 0;
    color: #1e3a5f;
    font-size: 14px;
}

.badge {
    background-color: #123456;
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-left: auto;
}

hr {
    border: none;
    border-top: 2px dashed #a0b8d0;
    margin: 20px 0 25px 0;
}

.markup-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    padding: 16px 22px;
    width: min(100%, 760px);
    margin-bottom: 25px;
    box-shadow: 0 18px 38px rgba(20, 56, 96, 0.08);
}

.share-text {
    font-weight: 600;
    color: #123456;
    font-size: 16px;
}

.share-link {
    background-color: #e8f0fa;
    border-radius: 30px;
    padding: 8px 20px;
    color: #0a2a44;
    font-weight: 500;
    border: 1px solid #a0b8d0;
    cursor: default;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    height: 180px;
    border: 1px solid #c9d9e9;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5a6f88;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #d0dcec;
    margin-top: 10px;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 24, 39, 0.42);
    backdrop-filter: blur(10px);
}

.auth-modal.hidden {
    display: none;
}

.auth-panel {
    width: min(100%, 420px);
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    border-radius: 26px;
    border: 1px solid rgba(191, 216, 240, 0.95);
    padding: 24px;
    box-shadow: 0 24px 50px rgba(13, 40, 65, 0.18);
}

.auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a2a44;
}

.auth-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #e8f0fa;
    color: #0a2a44;
    cursor: pointer;
    font-size: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-field label {
    font-weight: 600;
    color: #123456;
}

.auth-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b6cce2;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-submit-btn {
    border: none;
    background: #0a2a44;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.auth-status {
    color: #1e3a5f;
    font-size: 14px;
}

.auth-status.error {
    color: #c53030;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.contact-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    min-height: 145px;
    background: #ffffff;
    border: 1px solid #dbe9f8;
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(17, 56, 93, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(17, 56, 93, 0.22);
}

.contact-card h3 {
    margin: 10px 0 7px;
    color: #0a2a44;
    font-size: 18px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    border: 1px solid #d1e5ff;
    margin: 0 auto 10px;
    color: #0a2a44;
    font-size: 22px;
}

.contact-card p {
    margin: 0;
    color: #1e3a5f;
    font-size: 15px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #0a2a44;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 18px;
    margin-top: 14px;
    box-shadow: 0 10px 22px rgba(17,56,93,0.1);
}

/* ===== RESPONSIVE UNTUK MOBILE ===== */
@media (max-width: 700px) {
    .content {
        width: min(100% - 20px, 100%);
        padding: 22px 0 34px;
    }
    
    .section-title {
        font-size: 24px;
        border-left-width: 6px;
        padding-left: 14px;
        margin-bottom: 18px;
    }

    .description {
        font-size: 15px;
        padding: 18px 16px;
        border-radius: 20px;
        margin-bottom: 18px;
    }
    
    .clipboard-notice {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 25px;
        gap: 12px;
        padding: 14px 16px;
    }

    .clipboard-item {
        font-size: 14px;
        line-height: 1.5;
    }

    .member-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .member-card {
        padding: 10px;
        border-radius: 14px;
    }

    .member-card img {
        height: 190px;
    }

    .member-card h3 {
        font-size: 16px;
        line-height: 1.3;
    }

    .member-card p {
        font-size: 13px;
        line-height: 1.45;
    }
    
    .badge {
        margin-left: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .markup-share {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border-radius: 22px;
        padding: 14px;
    }

    .share-link {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }
    
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 12px;
    }
}
