:root {
    /* Tema V1.2: navy elegan + aksen emas lembut */
    --navy: #0b1b33;
    --navy-2: #15345f;
    --navy-3: #1f4f84;
    --gold: #d4af63;
    --gold-2: #b98a35;
    --gold-soft: #f4e6bd;
    --paper: #ffffff;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f7fb;
    --danger: #b42318;
    --success: #087443;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(11, 27, 51, .13);
    --shadow-soft: 0 10px 26px rgba(11, 27, 51, .08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background:
        radial-gradient(circle at top left, rgba(212,175,99,.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #eef3f8 100%);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.85);
    box-shadow: 0 8px 24px rgba(11,27,51,.05);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand, .admin-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(11,27,51,.16));
}
.admin-brand .brand-logo { width: 42px; height: 42px; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 20%, rgba(244,230,189,.28), transparent 34%),
        linear-gradient(145deg, var(--navy), var(--navy-2) 58%, var(--navy-3));
    color: var(--gold-soft);
    font-weight: 800;
    box-shadow: var(--shadow);
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: #334155;
    font-weight: 650;
    font-size: 14px;
}
.main-nav a:hover, .main-nav .nav-admin {
    background: linear-gradient(135deg, rgba(244,230,189,.72), rgba(255,250,235,.96));
    color: #4b3410;
    box-shadow: 0 8px 18px rgba(185,138,53,.12);
}
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(244,230,189,.30), transparent 26%),
        radial-gradient(circle at 86% 10%, rgba(31,79,132,.68), transparent 30%),
        linear-gradient(135deg, #07162b 0%, var(--navy) 34%, var(--navy-2) 73%, #0d223e 100%);
    color: white;
    padding: 58px 0 48px;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -55% 44%;
    height: 260px;
    transform: rotate(-8deg);
    background: linear-gradient(90deg, transparent, rgba(212,175,99,.20), transparent);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 54px); letter-spacing: -1.4px; line-height: 1.06; }
.hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 800px; font-size: 17px; }
.hero-badges { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(244,230,189,.26);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    font-size: 13px;
}
.section { padding: 34px 0; }
.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px 220px 150px;
    gap: 12px;
    margin-bottom: 22px;
}
.input, .select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    font: inherit;
}
.input:focus, .select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,86,.14); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: white;
    border: 0;
    cursor: pointer;
    font-weight: 750;
    font-size: 14px;
}
.btn:hover { filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1b1609; box-shadow: 0 10px 20px rgba(185,138,53,.20); }
.btn-soft { background: #fff7df; color: #5b4212; }
.btn-danger { background: var(--danger); }
.btn-outline { background: white; color: var(--navy); border: 1px solid var(--line); }
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 18px;
}
.member-card {
    border: 1px solid rgba(226,232,240,.95);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,168,86,.55); }
.member-photo-wrap {
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 50% 18%, rgba(212,175,99,.16), transparent 32%),
        linear-gradient(180deg, #eef3f8, #dfe8f3);
    overflow: hidden;
}
.member-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member-info { padding: 13px 13px 15px; text-align: center; }
.member-name { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 800; color: var(--navy); }
.member-meta { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.member-role { margin-top: 8px; font-size: 12px; font-weight: 700; color: #604814; background: linear-gradient(135deg, #fff6dc, #f8e7ae); border-radius: 999px; display: inline-flex; padding: 4px 8px; border: 1px solid rgba(212,175,99,.28); }
.card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.info-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(23,34,56,.06);
    padding: 20px;
}
.info-card h3 { margin: 0 0 8px; color: var(--navy); }
.info-card p { margin: 0 0 13px; color: var(--muted); }
.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-photo-card, .profile-detail-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.profile-photo-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; }
.profile-photo-card .profile-actions { padding: 16px; display: grid; gap: 10px; }
.profile-detail-card { padding: 26px; }
.profile-detail-card h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(26px, 4vw, 40px); }
.profile-subtitle { color: var(--muted); margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 12px; margin: 18px 0; }
.detail-item { background: #f9fafb; border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.detail-item span { display: block; color: var(--muted); font-size: 12px; }
.detail-item strong { display: block; color: #111827; margin-top: 4px; }
.timeline { display: grid; gap: 10px; margin-top: 14px; }
.timeline-item { border-left: 4px solid var(--gold); background: #fffdf5; border-radius: 12px; padding: 12px 14px; }
.timeline-item strong { color: var(--navy); }
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(5,13,27,.72);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-card {
    width: min(860px, 100%);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    display: grid;
    grid-template-columns: 280px 1fr;
}
.modal-photo { background: #eef2f7; }
.modal-photo img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: top center; }
.modal-body { padding: 26px; position: relative; }
.modal-close { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f5f9; cursor: pointer; font-size: 22px; }
.modal-body h2 { color: var(--navy); margin: 0 40px 8px 0; }
.modal-body p { color: var(--muted); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(23,34,56,.06); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; color: var(--navy); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top left, rgba(212,175,99,.24), transparent 34%), radial-gradient(circle at bottom right, rgba(31,79,132,.55), transparent 34%), linear-gradient(135deg, #07162b, var(--navy-2)); }
.login-card { width: min(430px, 100%); background: white; border-radius: 24px; box-shadow: var(--shadow); padding: 30px; }
.login-card h1 { margin: 0 0 6px; color: var(--navy); }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.form-grid { display: grid; gap: 14px; }
.form-grid label { font-weight: 700; color: #243451; }
.form-row { display: grid; gap: 7px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(212,175,99,.18), transparent 26%),
        linear-gradient(180deg, #07162b, var(--navy) 54%, #0b1b33);
    color: white;
    padding: 22px;
}
.admin-sidebar nav { margin-top: 24px; display: grid; gap: 8px; }
.admin-sidebar a { padding: 11px 12px; border-radius: 13px; color: rgba(255,255,255,.84); }
.admin-sidebar a:hover { background: rgba(255,255,255,.1); color: white; }
.admin-sidebar .danger { color: #fecaca; }
.admin-main { min-width: 0; }
.admin-topbar { padding: 26px 32px; border-bottom: 1px solid var(--line); background: white; }
.admin-topbar h1 { margin: 0; color: var(--navy); }
.admin-topbar p { margin: 4px 0 0; color: var(--muted); }
.admin-content { padding: 26px 32px; }
.admin-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-weight: 650; }
.alert-success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
.alert-info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.help-text { color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); background: white; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; padding: 22px 0; font-size: 13px; }
@media (max-width: 860px) {
    .toolbar { grid-template-columns: 1fr; }
    .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
    .profile-layout, .modal-card, .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .modal-photo img { min-height: 260px; max-height: 420px; }
    .form-two { grid-template-columns: 1fr; }
}
