:root {
    /* Login Page Matching Elegant Blue & Indigo Theme */
    --purple: #1d4ed8;          /* Blue Accent */
    --purple-light: #3b82f6;    /* Accent Mid */
    --purple-dark: #1e3a8a;     /* Ink Dark (Deep Indigo-Navy) */
    --purple-pale: #eff6ff;     /* Surface 2 Light Lavender */
    --purple-border: #dbeafe;   /* Soft Border */

    --white: #FFFFFF;
    --bg: #eff6ff;              /* Surface 2 background gradient start */
    --card: #FFFFFF;
    --text: #1e3a8a;            /* Ink Dark text color */
    --muted: #3b82f6;           /* Ink Muted secondary text color */
    --border: #dbeafe;          /* Soft border color */

    /* Standard Status Colors (Soft pastel background, clear text) */
    --green: #047857;           /* Success green from login page */
    --green-bg: #d1fae5;
    --red: #b91c1c;             /* Danger red from login page */
    --red-bg: #fee2e2;
    --warning: #b45309;         /* Gold/Warning from login page */
    --warning-bg: #fef3c7;

    /* Premium Ambient Shadows mapped to Login Theme */
    --shadow-sm: 0 4px 15px rgba(29, 78, 216, 0.02);
    --shadow-md: 0 12px 35px rgba(29, 78, 216, 0.05);
    --shadow-lg: 0 30px 70px rgba(30, 58, 138, 0.08);
    --shadow-glow: 0 0 20px rgba(29, 78, 216, 0.08);

    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.45);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatIcon {
    0% {
        transform: translateY(-3px) scale(1.02);
    }

    100% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.4)
    }
}

@keyframes shimmer {
    from {
        left: -100%;
    }

    to {
        left: 200%;
    }
}

.animate-up {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    /* Subtle dot grid pattern */
    background-image: radial-gradient(rgba(29, 78, 216, 0.035) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--text);
    line-height: 1.6;
    position: relative;
}

/* ─── BACKGROUND BLOBS ─── */
.bg-blobs-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.05);
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.bg-blob-1 {
    top: 10%;
    left: -200px;
}

.bg-blob-2 {
    top: 45%;
    right: -250px;
}

.bg-blob-3 {
    top: 75%;
    left: 10%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(29, 78, 216, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* â”€â”€â”€ TOAST â”€â”€â”€ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--purple-dark);
    color: var(--white);
    padding: 1.1rem 1.8rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.25rem;
    color: var(--white);
}

/* â”€â”€â”€ MODAL LOGIN â”€â”€â”€ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 11, 58, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3rem 2.8rem 2.8rem;
    width: 90%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: var(--purple-pale);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--purple);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.modal-logo .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

.modal-logo h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--purple-dark);
    line-height: 1.2;
}

.modal-logo p {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-box h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--purple-dark);
}

.modal-box .sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-light);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    border: 1.5px solid var(--purple-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(29, 78, 216, 0.02);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--purple);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.btn-login-submit {
    width: 100%;
    padding: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(29, 78, 216, 0.35);
}

.modal-note {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.modal-note a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.modal-note a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* ─── HEADER & SMART SCROLL ─── */
header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: 1px solid var(--border);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease !important;
}

header.nav-hidden {
    transform: translateY(-100%) !important;
}

header.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

.header-top-bar {
    background: var(--purple-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 500;
}

.header-top-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 2rem;
}

.top-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.info-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--white);
}

.info-item i {
    color: var(--purple-light);
    font-size: 0.8rem;
}

.top-socials {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.top-socials .social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.top-socials .social-link:hover {
    color: var(--white);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
}

.logo-area img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-area .brand h1 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--purple);
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.logo-area .brand p {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link {
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple);
    background: var(--purple-pale);
}

/* Auth Buttons */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--purple);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(94, 45, 138, 0.15);
    overflow: hidden;
    position: relative;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
}

.btn-login:hover::after {
    left: 140%;
    transition: all 0.60s ease;
}

.btn-login:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(94, 45, 138, 0.25);
}

/* User avatar chip */
.user-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    background: var(--purple-pale);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(94, 45, 138, 0.05);
}

.user-chip:hover {
    background: rgba(94, 45, 138, 0.15);
}

.user-chip .name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--purple-dark);
}

.user-chip .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.user-chip .caret {
    font-size: 0.7rem;
    color: var(--purple-light);
    margin-left: -0.2rem;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--purple-border);
    min-width: 210px;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.user-chip:hover .dropdown-menu,
.user-chip.active .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.9rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--purple-pale);
    color: var(--purple);
}

.dropdown-menu a.logout {
    color: var(--red);
}

.dropdown-menu a.logout:hover {
    background: var(--red-bg);
}

.dropdown-divider {
    height: 1px;
    background: var(--purple-border);
    margin: 0.3rem 0;
}

/* ─── HERO ─── */
.hero {
    background: 
        radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, var(--white) 100%);
    color: var(--purple-dark);
    padding: 10rem 2rem 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d4ed8' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.75;
}

/* Glowing orb decoration in Hero */
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.04) 0%, transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(109, 40, 217, 0.05);
    border: 1px solid rgba(109, 40, 217, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--purple);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.6s infinite;
}

.hero h2 {
    font-family: 'Sora', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.8px;
    margin-bottom: 1.8rem;
    color: var(--purple-dark);
    text-shadow: none;
}

.hero h2 span {
    color: var(--white);
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    padding: 0.2rem 1.2rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(176, 28, 154, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    color: var(--purple-dark);
    max-width: 680px;
    margin: 0 auto 3.2rem;
    font-weight: 500;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #ca8a04 100%);
    color: var(--white);
    padding: 1rem 2.2rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
}

.btn-gold:hover::after {
    left: 140%;
    transition: all 0.6s ease;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(234, 179, 8, 0.4);
    background: linear-gradient(135deg, var(--gold-accent-light) 0%, var(--gold-accent) 100%);
    color: var(--white);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(109, 40, 217, 0.04);
    color: var(--purple);
    padding: 1rem 2.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid rgba(109, 40, 217, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(109, 40, 217, 0.08);
    border-color: var(--purple);
    color: var(--purple-dark);
    transform: translateY(-2px);
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 4.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(109, 40, 217, 0.1);
    padding-top: 3rem;
}

.hero-stat .num {
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--purple);
    text-shadow: none;
}

.hero-stat .lbl {
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--text);
    margin-top: 0.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── SECTIONS ─── */
.section {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-head {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-head .eyebrow {
    display: inline-block;
    background: var(--purple-pale);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
    border: 1px solid var(--purple-border);
    box-shadow: var(--shadow-sm);
}

.section-head h3 {
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 0.7rem;
    letter-spacing: -0.6px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 500;
}

/* ─── SERVICE CARDS (GLASSMORPHIC) ─── */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.2rem;
}

.layanan-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 2.8rem;
    border: 1px solid var(--border);
    border-top: 4px solid rgba(109, 40, 217, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    box-shadow: var(--shadow-sm);
}

.layanan-card:hover {
    background: var(--white);
    border-color: rgba(109, 40, 217, 0.12);
    border-top-color: var(--purple);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.svc-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--purple-pale);
    color: var(--purple);
    transition: var(--transition);
}

.layanan-card:hover .svc-icon {
    background: var(--purple) !important;
    color: var(--white) !important;
    animation: floatIcon 2s ease-in-out infinite alternate;
}

.layanan-card h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--purple-dark);
}

.layanan-card p {
    font-size: 0.92rem;
    color: var(--muted);
    flex: 1;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--purple);
    text-decoration: none;
    margin-top: 0.6rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-link:hover {
    color: var(--purple-dark);
    gap: 0.9rem;
}

/* ─── STEPS (PROSEDUR) ─── */
.bg-light {
    background: #FAF8FE;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 2.8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-top: 4px solid rgba(109, 40, 217, 0.15);
    transition: var(--transition);
}

.step-card:hover {
    background: var(--white);
    border-color: rgba(109, 40, 217, 0.12);
    border-top-color: var(--purple);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    right: 1.5rem;
    top: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--purple-pale);
    line-height: 1;
    opacity: 0.8;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.6rem;
    box-shadow: 0 6px 18px rgba(94, 45, 138, 0.2);
    position: relative;
    z-index: 1;
}

.step-card h5 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    color: var(--purple-dark);
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
    line-height: 1.65;
}

/* ─── PRIORITY TABLE (LEADERBOARD) ─── */
.priority-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--purple-border);
    max-width: 960px;
    margin: 0 auto;
}

.priority-head {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px;
    padding: 1.3rem 2.2rem;
    background: var(--purple-pale);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
    border-bottom: 1px solid var(--purple-border);
}

.priority-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px;
    padding: 1.45rem 2.2rem;
    border-top: 1px solid var(--purple-border);
    align-items: center;
    transition: var(--transition);
}

.priority-row:first-child {
    border-top: none;
}

.priority-row:hover {
    background: var(--purple-pale);
}

.priority-row.rank-1 {
    background: linear-gradient(90deg, rgba(94, 45, 138, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 4px solid var(--purple);
    box-shadow: inset 20px 0 30px rgba(94, 45, 138, 0.01);
}

.rank-bubble {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--purple-pale);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
}

.rank-1 {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(94, 45, 138, 0.25);
}

.priority-row .title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--purple-dark);
}

.priority-row .meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: rgba(94, 45, 138, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 4px;
    transition: width 1s ease-in-out;
    /* Smooth fill-in on page load */
}

.score-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--purple);
}

.badge {
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-hi {
    background: var(--purple-pale);
    color: var(--purple);
    border: 1px solid var(--purple-border);
    box-shadow: var(--shadow-sm);
}

.badge-med {
    background: rgba(110, 97, 130, 0.08);
    color: var(--muted);
}

.badge-lo {
    background: rgba(110, 97, 130, 0.08);
    color: var(--muted);
}

/* ─── STATS ─── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-tile {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 2.6rem 2.2rem;
    text-align: center;
    border-bottom: 4px solid var(--purple);
    box-shadow: var(--shadow-sm);
    border-left: 1px solid var(--purple-border);
    border-right: 1px solid var(--purple-border);
    border-top: 1px solid var(--purple-border);
    transition: var(--transition);
}

.stat-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--purple-light);
}

.stat-tile .icon {
    font-size: 2.2rem;
    color: var(--purple);
    margin-bottom: 0.9rem;
}

.stat-tile .num {
    font-family: 'Sora', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--purple-dark);
    line-height: 1.1;
}

.stat-tile .lbl {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ─── METODE ─── */
.metode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2.5rem;
}

.metode-tile {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 3.2rem 2.8rem;
    border: 1px solid var(--purple-border);
    border-top: 4px solid rgba(94, 45, 138, 0.15);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.metode-tile:hover {
    background: var(--white);
    border-color: rgba(94, 45, 138, 0.12);
    border-top-color: var(--purple);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.mtd-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--purple-pale);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.6rem;
    transition: var(--transition);
}

.metode-tile:hover .mtd-icon {
    background: var(--purple);
    color: var(--white);
    animation: floatIcon 2s ease-in-out infinite alternate;
}

.metode-tile h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    margin-bottom: 0.9rem;
    font-size: 1.25rem;
    color: var(--purple-dark);
}

.metode-tile p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ─── DASHBOARD PANEL ─── */
.dashboard-panel {
    display: none;
}

.body-logged-in .dashboard-panel {
    display: block;
}

.body-logged-in .guest-hero-cta {
    display: none;
}

.body-logged-in .logged-hero-cta {
    display: flex;
}

.body-logged-out .logged-hero-cta {
    display: none;
}

.body-logged-out .user-chip {
    display: none;
}

.body-logged-in .btn-nav-login {
    display: none;
}

.dash-section {
    background: linear-gradient(180deg, var(--purple-pale) 0%, var(--bg) 100%);
    padding: 6.5rem 0;
}

.dash-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.dash-sidebar {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--purple-border);
}

.dash-profile {
    padding: 2.4rem 1.8rem;
    text-align: center;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.dash-profile::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    top: -100px;
    left: -100px;
}

.dash-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dash-profile .pname {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.25;
}

.dash-profile .pnik {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 0.4rem;
    font-weight: 500;
    font-family: monospace;
}

.dash-menu {
    padding: 1.25rem;
}

.dash-menu a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.dash-menu a i {
    width: 20px;
    text-align: center;
    color: var(--purple-light);
    font-size: 1rem;
    transition: var(--transition);
}

.dash-menu a:hover {
    background: var(--purple-pale);
    color: var(--purple);
}

.dash-menu a:hover i {
    color: var(--purple);
    transform: scale(1.1);
}

.dash-menu a.active {
    background: var(--purple-pale);
    color: var(--purple);
    font-weight: 700;
}

.dash-menu a.active i {
    color: var(--purple);
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--purple-border);
    border-top: 4px solid rgba(94, 45, 138, 0.15);
    transition: var(--transition);
}

.dash-card:hover {
    background: var(--white);
    border-top-color: var(--purple);
    box-shadow: var(--shadow-md);
}

.dash-card h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--purple-dark);
}

.dash-card h4 i {
    color: var(--purple);
}

/* Quick stats in dashboard */
.qstats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.qstat {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--purple-border);
    transition: var(--transition);
}

.qstat:hover {
    background: var(--white);
    border-color: var(--purple-light);
    transform: translateY(-2px);
}

.qstat .qnum {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
    line-height: 1.25;
}

.qstat .qlbl {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Permohonan list */
.permohonan-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.permohonan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.6rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--purple-border);
    gap: 1.25rem;
    transition: var(--transition);
}

.permohonan-item:hover {
    transform: translateX(4px);
    border-color: var(--purple-light);
    background: var(--white);
}

.perm-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.perm-info .ptitle {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--purple-dark);
}

.perm-info .pmeta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.perm-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.status-pill {
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-done {
    background: var(--green-bg);
    color: var(--green);
}

.status-process {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-wait {
    background: var(--purple-pale);
    color: var(--purple);
}

/* Form ajukan */
.form-ajukan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}

.form-ajukan .full {
    grid-column: span 2;
}

.form-ajukan label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--purple-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-ajukan input,
.form-ajukan select,
.form-ajukan textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 1.5px solid var(--purple-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    background: rgba(94, 45, 138, 0.01);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-ajukan input:focus,
.form-ajukan select:focus,
.form-ajukan textarea:focus {
    border-color: var(--purple);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(94, 45, 138, 0.12);
}

/* ─── FOOTER & CONTACT SECTION ─── */

:root {
    --gold-accent: #eab308;
    --gold-accent-light: #fef08a;
}

.site-footer {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f1026 100%);
    color: var(--white);
    padding: 6.5rem 0 0;
    position: relative;
    overflow: hidden;
    border-top: none !important;
    width: 100%;
}

/* Custom Curved Wave Divider */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
    border: none !important;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
}

.footer-wave .shape-fill {
    fill: var(--bg);
}

#prioritas, section:last-of-type {
    border-bottom: none !important;
}

.footer-content-wrap {
    position: relative;
    z-index: 10;
}

/* ================= PART 1: CONTACT ZONE ================= */
.contact-zone {
    margin-bottom: 4rem;
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(212, 164, 55, 0.08);
    border: 1px solid rgba(212, 164, 55, 0.2);
    color: var(--gold-accent-light);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.contact-title {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(94, 45, 138, 0.2) 0%, transparent 70%);
    top: -75px;
    right: -75px;
    pointer-events: none;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 25px rgba(94, 45, 138, 0.1);
}

.contact-card:hover .contact-card-glow {
    transform: scale(1.4);
    background: radial-gradient(circle, rgba(94, 45, 138, 0.35) 0%, transparent 70%);
}

.contact-card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    font-size: 1.35rem;
    color: var(--white);
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--white);
    color: var(--purple-dark);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
}

.contact-card h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.7rem;
}

.contact-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.contact-card p strong {
    color: rgba(255, 255, 255, 0.85);
}

.contact-card-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold-accent-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-link i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.contact-card-link:hover {
    color: var(--white);
}

.contact-card-link:hover i {
    transform: translateX(4px);
}

/* Horizontal Divider */
.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent);
    margin: 3.5rem 0 4rem 0;
}

/* ================= PART 2: DIRECTORY ZONE ================= */
/* ================= PART 2: DIRECTORY ZONE ================= */
.footer-directory-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-circle {
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 0 15px rgba(126, 72, 176, 0.2), 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(212, 164, 55, 0.3);
    transition: var(--transition);
}

.footer-logo-circle:hover {
    transform: rotate(10deg) scale(1.05);
    border-color: var(--gold-accent-light);
    box-shadow: 0 0 20px rgba(212, 164, 55, 0.45);
}

.footer-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--white) 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-subtitle-region {
    font-size: 0.72rem;
    color: var(--gold-accent-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin-top: 0.5rem;
    font-weight: 400;
}

.footer-social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.footer-social-icons .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-icons .social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.footer-social-icons .social-btn[title="Instagram"]:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    border-color: transparent;
}

.footer-social-icons .social-btn[title="Facebook"]:hover {
    background: #1877f2;
    border-color: transparent;
}

.footer-social-icons .social-btn[title="YouTube"]:hover {
    background: #ff0000;
    border-color: transparent;
}

.footer-social-icons .social-btn[title="WhatsApp"]:hover {
    background: #25d366;
    border-color: transparent;
}

.footer-heading {
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 1.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-accent-light), var(--gold-accent));
    box-shadow: 0 0 8px var(--gold-accent-light);
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.25rem 0;
    transition: var(--transition);
    font-weight: 500;
}

.footer-nav-links li a i {
    font-size: 0.7rem;
    color: var(--gold-accent-light);
    opacity: 0.55;
    transition: var(--transition);
}

.footer-nav-links li a:hover {
    color: var(--white);
    transform: translateX(6px);
}

.footer-nav-links li a:hover i {
    opacity: 1;
    color: var(--gold-accent);
    transform: scale(1.2) translateX(2px);
    text-shadow: 0 0 5px rgba(212, 164, 55, 0.6);
}

/* ================= PART 3: COPYRIGHT BOTTOM BAR ================= */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-badges {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.footer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.footer-status-badge i {
    font-size: 0.75rem;
    color: var(--gold-accent-light);
}

.footer-status-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-directory-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 2.5rem;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-directory-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }

    .footer-badges {
        justify-content: center;
    }
}

/* ─── MOBILE RESPONSIVENESS ─── */
.hamburger {
    display: none;
    background: var(--purple-pale);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--purple);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--purple);
    color: #ffffff;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    z-index: 999;
    
    max-height: calc(85vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--purple-pale);
    color: var(--purple);
    transform: translateX(4px);
}

@media (max-width: 992px) {
    nav {
        display: none !important;
    }
    .hamburger {
        display: inline-flex !important;
    }
}

.mobile-nav-contact {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(94, 45, 138, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mobile-nav-contact p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.mobile-nav-contact p a {
    color: var(--muted);
    text-decoration: none;
}

.mobile-nav-contact p a:hover {
    color: var(--purple);
}

.mobile-nav-contact i {
    color: var(--purple-light);
    width: 16px;
    text-align: center;
}

.mobile-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.6rem;
    padding-left: 0.2rem;
}

.mobile-socials a {
    padding: 0 !important;
    font-size: 1.05rem !important;
    color: var(--muted) !important;
    transition: var(--transition);
}

.mobile-socials a:hover {
    color: var(--purple) !important;
    background: transparent !important;
}

/* ─── Tablet & Medium Screens Breakpoint (769px to 1100px) ─── */
@media (max-width: 1100px) and (min-width: 769px) {
    .header-inner {
        padding: 0.8rem 1.5rem;
    }
    .logo-area {
        gap: 0.8rem;
    }
    .logo-area img {
        width: 40px;
        height: 40px;
    }
    .logo-area .brand h1 {
        font-size: 1.05rem;
    }
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    nav {
        gap: 0.2rem;
    }
    .btn-login {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }
    .user-chip {
        padding: 0.35rem 0.35rem 0.35rem 0.9rem;
    }
    .user-chip .name {
        font-size: 0.85rem;
    }
}

/* ─── Standard Mobile & Tablet Breakpoint (max 992px) ─── */
@media(max-width: 992px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }
}

/* ─── Mobile Breakpoint (max 768px) ─── */
@media(max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .header-inner {
        padding: 0.8rem 1.25rem;
    }

    .logo-area {
        gap: 0.8rem;
    }

    .logo-area img {
        width: 40px;
        height: 40px;
    }

    .logo-area .brand h1 {
        font-size: 1.05rem;
    }

    .logo-area .brand p {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    nav {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .section {
        padding: 4rem 0;
    }

    .section-head {
        margin-bottom: 2.5rem;
    }

    .section-head h3 {
        font-size: 1.8rem;
    }

    .section-head p {
        font-size: 0.95rem;
    }

    .hero {
        padding: 6rem 1.25rem 5rem;
    }

    .hero h2 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .layanan-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .layanan-card {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .metode-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .metode-tile {
        padding: 2rem 1.5rem;
    }

    .priority-head,
    .priority-row {
        grid-template-columns: 60px 1fr 100px;
        padding: 1.25rem 1.6rem;
    }

    .priority-head> :last-child,
    .priority-row> :last-child {
        display: none;
    }

    .form-ajukan {
        grid-template-columns: 1fr;
    }

    .form-ajukan .full {
        grid-column: 1;
    }

    .qstats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Extra Small Mobile Breakpoint (max 576px) ─── */
@media (max-width: 576px) {
    .layanan-grid,
    .steps-grid,
    .metode-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .hero h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero h2 span {
        font-size: 1.65rem;
        padding: 0.15rem 0.8rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        padding-top: 2rem;
        margin-top: 2.5rem;
    }

    .hero-stat:last-child {
        grid-column: span 2;
    }

    .hero-stat {
        padding: 1rem 0.75rem;
        background: rgba(255, 255, 255, 0.45);
        border-radius: var(--radius-md);
        border: 1px solid var(--purple-border);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(8px);
    }

    .hero-stat .num {
        font-size: 1.8rem;
    }

    .hero-stat .lbl {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .priority-head,
    .priority-row {
        grid-template-columns: 45px 1fr 65px;
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }

    .rank-bubble {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .priority-row .title {
        font-size: 0.9rem;
    }

    .priority-row .meta {
        font-size: 0.75rem;
    }

    .score-bar {
        display: none !important;
    }

    .score-bar-wrap {
        justify-content: flex-end;
    }
}

/* ─── Ultra Small Mobile Breakpoint (max 480px) ─── */
@media(max-width: 480px) {
    .logo-area .brand h1 {
        font-size: 0.95rem;
    }

    .logo-area .brand p {
        font-size: 0.6rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .btn-gold,
    .btn-ghost {
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ─── MAPS & CONTACT SECTION ─── */
.map-contact-section {
    background: transparent;
    padding: 5rem 0 6rem;
    position: relative;
    z-index: 1;
}

.map-contact-strip {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-lg);
}

.map-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ── Map cards (left & right) ── */
.map-card-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--purple-dark);
}

.map-card-label {
    padding: 1rem 1.6rem 0.7rem;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: 0.2px;
}

.map-card-label i {
    font-size: 0.85rem;
    opacity: 0.75;
}

.map-container {
    flex: 1;
    width: 100%;
    min-height: 240px;
    z-index: 10;
}

.map-card-action {
    padding: 0.65rem 1.6rem 0.9rem;
    display: flex;
    align-items: center;
}

.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.78rem;
    transition: var(--transition);
    padding: 0.4rem 0;
}

.btn-map-link:hover {
    color: var(--white);
    transform: translateX(3px);
}

.btn-map-link i {
    font-size: 0.72rem;
}

/* ── Map footer stats ── */
.map-footer-info {
    padding: 0.55rem 1.6rem 0.9rem;
    display: flex;
    gap: 1.2rem;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.map-footer-info i {
    margin-right: 0.3rem;
    font-size: 0.68rem;
}

/* ── Center profile card ── */
.contact-profile-card {
    background: linear-gradient(165deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.8rem 2.5rem 2.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M20 20.5V18H0v-2h20V0h2v16h18v2H22v4.5a3.5 3.5 0 1 1-2 0z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.profile-logo-outer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(35, 11, 58, 0.18);
    z-index: 20;
}

.profile-logo-wrap {
    width: 72px;
    height: 72px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--purple-pale);
}

.profile-logo-wrap img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.contact-profile-card h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
    letter-spacing: 0.5px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.contact-profile-card .district-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.7;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.contact-profile-card .divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.3rem 0;
    position: relative;
    z-index: 2;
}

.contact-info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-icon-wrap {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon-wrap {
    background: var(--white);
    color: var(--purple-dark);
}

.contact-icon-wrap i {
    font-size: 0.9rem;
    color: var(--white);
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon-wrap i {
    color: var(--purple-dark);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.contact-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.contact-value {
    font-size: 0.82rem;
    color: var(--white);
    font-weight: 500;
    line-height: 1.45;
}

.contact-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media(max-width: 576px) {
    .contact-grid-row {
        grid-template-columns: 1fr;
    }
}

.contact-profile-card .social-links {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-profile-card .social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-profile-card .social-icon:hover {
    background: var(--white);
    color: var(--purple-dark);
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom Marker Styling */
.custom-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-map-marker-pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--purple);
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(94, 45, 138, 0.4);
    position: relative;
}

.custom-map-marker-pin::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--purple-light);
    animation: mapPinPulse 1.8s infinite ease-in-out;
    opacity: 0;
}

@keyframes mapPinPulse {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Responsive adjustments for maps section */
@media(max-width: 992px) {
    .map-contact-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-profile-card {
        padding-top: 4.5rem;
    }

    .map-container {
        min-height: 220px;
    }
}