
        /* KONFIGURASI TEMA TERPUSAT */
        :root {
            /* Base Colors */
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-soft: #dbeafe;
            --secondary: #14b8a6;
            --accent: #f59e0b;

            /* Light Mode Colors */
            --text: #0f172a;
            --muted: #64748b;
            --line: rgba(226, 232, 240, 0.9);
            --bg-main: #f8fafc;
            --nav-bg: rgba(241, 245, 249, 0.85);
            --card-bg: rgba(255, 255, 255, 0.84);
            --card-solid: #ffffff;

            --input-bg: #f8fafc;
            --field-bg: #f8fafc;
            --field-focus: #ffffff;

            --hover-bg: #f1f5f9;
            --icon-bg: #eff6ff;
            --btn-secondary-bg: #e2e8f0;
            --btn-secondary-text: #334155;
            --btn-secondary-hover: #cbd5e1;
            --btn-ghost-bg: #ffffff;
            --modal-bg: #ffffff;
            --toast-bg: #0f172a;
            --toast-text: #ffffff;
            --success-bg: #dcfce7;
            --success-text: #166534;
            --error-bg: #fee2e2;
            --error-text: #991b1b;
            --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
            --blob-opacity: 0.35;

            color-scheme: light;
            --radius-lg: 14px;
            --radius-md: 9px;
            --radius-sm: 6px;
        }

        /* Override untuk Dark Mode */
        :root.dark {
            --primary: #3b82f6;
            --primary-dark: #60a5fa;
            --primary-soft: #1e3a8a;
            --text: #f1f5f9;
            --muted: #94a3b8;
            --line: #475569;
            --bg-main: #0f172a;
            --nav-bg: rgba(20, 28, 43, 0.85);
            --card-bg: rgba(30, 41, 59, 0.75);
            --card-solid: #1e293b;

            --input-bg: #0f172a;
            --field-bg: #334155;
            --field-focus: #475569;

            --hover-bg: #334155;
            --icon-bg: #1e3a8a;
            --btn-secondary-bg: #334155;
            --btn-secondary-text: #f1f5f9;
            --btn-secondary-hover: #475569;
            --btn-ghost-bg: transparent;
            --modal-bg: #1e293b;
            --toast-bg: #f8fafc;
            --toast-text: #0f172a;
            --success-bg: #064e3b;
            --success-text: #34d399;
            --error-bg: #7f1d1d;
            --error-text: #fca5a5;
            --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
            --blob-opacity: 0.15;

            color-scheme: dark;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent
        }

        html {}

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg-main);
            color: var(--text);
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .main-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: smooth;
            scroll-padding-top: 85px;
        }

        a {
            text-decoration: none;
            color: inherit
        }

        button,
        input,
        select {
            font: inherit
        }

        button {
            cursor: pointer;
            border: 0;
            outline: 0
        }

        @property --scrollbar-opacity {
            syntax: '<number>';
            inherits: true;
            initial-value: 0;
        }

        /* --- Kustomisasi Global Scrollbar --- */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background-color: rgba(100, 116, 139, calc(0.35 * var(--scrollbar-opacity)));
            border-radius: 10px;
        }

        /* Saat kursor berada langsung di atas scrollbar, biarkan tetap muncul tebal */
        ::-webkit-scrollbar-thumb:hover {
            background-color: rgba(100, 116, 139, 0.7) !important;
        }

        /* Dark mode */
        .dark ::-webkit-scrollbar-thumb {
            background-color: rgba(148, 163, 184, calc(0.35 * var(--scrollbar-opacity)));
        }

        .dark ::-webkit-scrollbar-thumb:hover {
            background-color: rgba(148, 163, 184, 0.7) !important;
        }

        /* Logic for fading scrollbar custom property */
        html,
        body,
        * {
            --scrollbar-opacity: 0;
        }

        html,
        body,
        *,
        .scrolling {
            transition: --scrollbar-opacity 10s ease;
        }

        html.scrolling,
        body.scrolling,
        .scrolling,
        html:hover,
        body:hover,
        *:hover {
            --scrollbar-opacity: 1;
            transition: none;
        }


        .page-bg {
            position: fixed;
            inset: 0;
            z-index: -1;
            overflow: hidden;
        }

        .blob {
            display: none;
        }

        .blob.one {
            background: #60a5fa;
            top: -110px;
            right: -80px
        }

        .blob.two {
            background: #2dd4bf;
            bottom: 8%;
            left: -130px
        }

        .blob.three {
            background: #fbbf24;
            top: 42%;
            right: 12%;
            width: 180px;
            height: 180px;
            opacity: calc(var(--blob-opacity) / 2)
        }

        .container {
            width: min(1180px, calc(100% - 40px));
            margin: auto
        }

        .navbar {
            position: sticky;
            top: 0;
            z-index: 50;
            backdrop-filter: blur(18px);
            background: var(--nav-bg);
            border-bottom: 1px solid var(--line);
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .nav-inner {
            min-height: 78px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 900;
            letter-spacing: -.03em;
            font-size: 1.35rem;
        }

        .brand-logo {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-md);
            display: grid;
            place-items: center;
            color: white;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            box-shadow: 0 14px 30px rgba(37, 99, 235, .25);
            font-weight: 900;
        }

        .theme-logo {
            content: url("../img/LogoPintaKlik2.webp");
        }

        :root.dark .theme-logo {
            content: url("../img/LogoPintarKlik2_White.webp");
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-links a {
            color: var(--muted);
            font-weight: 700;
            padding: 10px 14px;
            border-radius: 999px;
            transition: .2s ease;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary)
        }

        .nav-actions {
            display: flex;
            gap: 10px;
            align-items: center
        }

        .btn {
            min-height: 44px;
            padding: 0 18px;
            border-radius: var(--radius-md);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 600;
            transition: .2s ease;
            white-space: nowrap;
        }

        .btn i,
        .btn svg {
            width: 18px;
            height: 18px;
            stroke-width: 2.25px;
            flex-shrink: 0;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-1px)
        }

        .dark .btn-primary {
            background: rgba(59, 130, 246, 0.12);
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .dark .btn-primary:hover {
            background: rgba(59, 130, 246, 0.22);
            color: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-1px);
        }

        .dark .btn-soft {
            background: rgba(148, 163, 184, 0.12);
            color: var(--muted);
            border: 1px solid var(--muted);
        }

        .dark .btn-soft:hover {
            background: rgba(148, 163, 184, 0.18);
            color: #cbd5e1;
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

        .dark .btn-ghost {
            background: rgba(148, 163, 184, 0.12);
            color: var(--muted);
            border: 1px solid var(--muted);
        }

        .dark .btn-ghost:hover {
            background: rgba(148, 163, 184, 0.18);
            color: #cbd5e1;
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

        .dark .btn-danger {
            background: rgba(239, 68, 68, 0.12);
            color: #fca5a5;
            border: 1px solid #ef4444;
        }

        .dark .btn-danger:hover {
            background: rgba(239, 68, 68, 0.22);
            color: #f87171;
            border-color: #f87171;
            transform: translateY(-1px);
        }

        .dark .btn-warning {
            background: rgba(245, 158, 11, 0.15);
            color: #fcd34d;
            border: 1px solid var(--accent);
        }

        .dark .btn-warning:hover {
            background: rgba(245, 158, 11, 0.25);
            color: #fbbf24;
            border-color: #fbbf24;
            transform: translateY(-1px);
        }

        .btn-soft {
            background: var(--btn-secondary-bg);
            color: var(--btn-secondary-text);
        }

        .btn-soft:hover {
            background: var(--btn-secondary-hover);
        }

        .btn-ghost {
            background: var(--btn-secondary-bg);
            border: 1px solid transparent;
            color: var(--btn-secondary-text);
        }

        .btn-ghost:hover {
            background: var(--btn-secondary-hover);
            color: var(--btn-secondary-text);
            border-color: transparent;
        }

        .btn-danger {
            background: #ef4444;
            color: #ffffff;
            border: 1px solid #ef4444;
        }

        .btn-danger:hover {
            background: #dc2626;
            border-color: #dc2626;
            transform: translateY(-1px);
        }

        .btn-warning {
            background: var(--accent);
            color: #ffffff;
            border: 1px solid var(--accent);
        }

        .btn-warning:hover {
            background: #d97706;
            border-color: #d97706;
            transform: translateY(-1px);
        }

        .hamburger {
            display: none;
            width: 44px;
            height: 44px;
            border-radius: var(--radius-md);
            background: transparent;
            border: none;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 5px;
            transition: transform 0.2s ease;
        }

        .hamburger:hover {
            transform: scale(1.05);
        }

        .hamburger:hover span {
            background: var(--primary);
        }

        .theme-toggle {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-md);
            background: transparent;
            border: none;
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .theme-toggle:hover {
            color: var(--primary);
            transform: scale(1.05);
        }

        .theme-dropdown-wrapper {
            position: relative;
        }

        .theme-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: auto;
            margin-top: 8px;
            background: var(--card-solid);
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
            min-width: 140px;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            transition: .2s ease;
            z-index: 100;
        }

        .theme-dropdown-menu.open {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .theme-dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            color: var(--text);
            font-size: 0.9rem;
            font-weight: 500;
            transition: .2s ease;
            border: none;
            background: transparent;
            text-align: left;
            width: 100%;
        }

        .theme-dropdown-item:hover,
        .theme-dropdown-item.active {
            background: var(--hover-bg);
            color: var(--primary);
        }

        .theme-dropdown-menu.mobile-theme-menu {
            bottom: 100%;
            top: auto;
            right: 0;
            left: auto;
            margin-bottom: 8px;
            margin-top: 0;
            transform: translateY(10px);
        }

        .theme-dropdown-menu.mobile-theme-menu.open {
            transform: translateY(0);
        }

        @media (min-width: 761px) {

            /* HOVER DROPDOWN FOR DESKTOP */
            .theme-dropdown-wrapper:hover .theme-dropdown-menu {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
            }

            /* Bridge the 8px margin gap for smooth hover transitions */
            .theme-dropdown-menu::before {
                content: "";
                position: absolute;
                top: -12px;
                left: 0;
                right: 0;
                height: 12px;
                background: transparent;
            }
        }

        /* ACTIVE DROPDOWN TRIGGERS (WHEN OPENED BY CLICK) */
        .theme-dropdown-wrapper:has(.theme-dropdown-menu.open) .theme-toggle {
            color: var(--primary);
            transform: scale(1.05);
        }

        .hamburger span {
            width: 20px;
            height: 2px;
            background: var(--text);
            border-radius: 999px;
            transition: .2s ease
        }

        .mobile-menu {
            display: none;
        }

        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            z-index: 10001;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .mobile-menu-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px 20px 0px 20px;
            margin: -24px -20px 12px -20px;
            border-bottom: 1px solid var(--muted);
        }

        .mobile-menu-header .brand {
            font-size: 1.25rem !important;
        }

        .mobile-menu-links {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .mobile-menu-links a,
        .mobile-menu-links button {
            width: 100%;
            display: flex;
            justify-content: flex-start;
            gap: 10px;
            align-items: center;
            padding: 10px 12px;
            margin-bottom: 8px;
            background: rgba(128, 128, 128, 0.04);
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            color: var(--text);
            font-size: 0.92rem;
            font-weight: 600;
            text-align: left;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
            transition: all 0.2s ease;
        }

        .mobile-menu-links a:hover,
        .mobile-menu-links button:hover {
            background: var(--hover-bg);
        }

        .mobile-menu-links a.active {
            color: var(--primary);
            background: rgba(59, 130, 246, 0.12);
            border-color: var(--primary);
        }

        .hero {
            padding: 58px 0 42px
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.05fr .95fr;
            gap: 38px;
            align-items: center;
        }

        .badge {
            width: max-content;
            max-width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 13px;
            border-radius: 999px;
            background: var(--card-bg);
            border: 1px solid var(--primary-soft);
            color: var(--primary-dark);
            font-weight: 900;
            font-size: .86rem;
            box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
        }

        h1 {
            margin-top: 22px;
            font-size: clamp(2.3rem, 5.4vw, 5.2rem);
            line-height: 1.15;
            letter-spacing: -.04em;
            font-weight: 950;
        }

        .gradient-text {
            background: linear-gradient(-45deg, #000000, #2563eb, #3b82f6, #1d4ed8, #000000);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: colorShift 20s ease infinite;
        }

        @keyframes colorShift {
            0% {
                background-position: 0% 12%;
            }

            14% {
                background-position: 84% 33%;
            }

            28% {
                background-position: 12% 78%;
            }

            43% {
                background-position: 95% 15%;
            }

            57% {
                background-position: 35% 89%;
            }

            71% {
                background-position: 78% 62%;
            }

            85% {
                background-position: 21% 9%;
            }

            100% {
                background-position: 0% 12%;
            }
        }

        .hero-desc {
            margin-top: 22px;
            color: var(--muted);
            font-size: 1.08rem;
            line-height: 1.8;
            max-width: 680px;
        }

        .hero-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 28px
        }

        .trust-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 30px;
            max-width: 700px;
        }

        .trust-card {
            background: var(--card-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 16px;
            box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
        }

        .trust-card strong {
            display: block;
            margin-bottom: 5px;
            font-size: .98rem
        }

        .trust-card span {
            color: var(--muted);
            font-size: .86rem;
            line-height: 1.45
        }

        .login-card {
            background: var(--card-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            padding: 32px;
            position: relative;
            overflow: hidden;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .login-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-top: 8px
        }

        .login-head h2 {
            font-size: 1.55rem;
            letter-spacing: -.04em
        }

        .login-head p {
            color: var(--muted);
            margin-top: 6px;
            line-height: 1.55;
            font-size: .94rem
        }

        .status-pill {
            padding: 8px 10px;
            border-radius: 999px;
            background: var(--success-bg);
            color: var(--success-text);
            font-size: .76rem;
            font-weight: 900;
            white-space: nowrap;
        }

        .form {
            margin-top: 24px;
            display: grid;
            gap: 14px
        }

        .field label {
            display: block;
            font-size: .86rem;
            font-weight: 900;
            margin-bottom: 8px;
            color: var(--text)
        }

        .required-asterisk {
            color: #ef4444;
            margin-left: 2px;
            font-weight: bold;
        }

        .input-wrap {
            position: relative
        }

        .field input,
        .field select,
        .field textarea {
            width: 100%;
            min-height: 50px;
            border: 1px solid var(--line);
            background: var(--field-bg);
            border-radius: var(--radius-md);
            outline: 0;
            padding: 0 46px 0 14px;
            color: var(--text);
            transition: .2s ease;
        }

        .field textarea {
            padding: 12px 14px;
            min-height: 80px;
            resize: vertical;
        }

        .field input[type="date"] {
            line-height: normal;
            font-family: inherit;
        }

        .field input[type="date"]::-webkit-calendar-picker-indicator {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            opacity: 0.7;
            transition: .2s ease;
        }

        .field input[type="date"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
        }

        :root.dark .field input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1) brightness(0.8);
        }

        .field select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
            background-repeat: no-repeat;
            background-position: right 18px center;
            padding-right: 46px;
            padding-left: 14px;
            cursor: pointer;
        }

        /* Custom Checkbox Styling */
        input[type="checkbox"] {
            -webkit-appearance: none;
            appearance: none;
            background-color: var(--field-bg);
            margin: 0;
            margin-right: 6px;
            font: inherit;
            color: var(--text);
            width: 18px;
            height: 18px;
            border: 2px solid var(--muted);
            border-radius: 4px;
            display: inline-grid;
            place-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            vertical-align: middle;
            position: relative;
            top: -1px;
        }

        input[type="checkbox"]:hover {
            border-color: var(--primary);
        }

        input[type="checkbox"]::before {
            content: "";
            width: 10px;
            height: 10px;
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
            transform: scale(0);
            transform-origin: center;
            transition: 120ms transform ease-in-out;
            box-shadow: inset 1em 1em white;
            background-color: white;
        }

        input[type="checkbox"]:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        input[type="checkbox"]:checked::before {
            transform: scale(1);
        }

        .dark input[type="checkbox"] {
            background-color: var(--field-bg);
            border-color: #64748b;
        }

        .dark input[type="checkbox"]:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        :root.dark .field select {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
        }

        .field select:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background: var(--hover-bg);
        }

        /* --- Fix Autofill Background Color --- */
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px var(--field-bg) inset !important;
            -webkit-text-fill-color: var(--text) !important;
            transition: background-color 5000s ease-in-out 0s;
            caret-color: var(--text);
        }

        .field input:focus,
        .field select:focus,
        .field textarea:focus {
            border-color: var(--primary);
            background: var(--field-focus);
        }

        .field input.error-input,
        .field select.error-input,
        .field textarea.error-input,
        .custom-select-trigger.error-input {
            border-color: #ef4444 !important;
            background: #fef2f2 !important;
        }

        input[type="checkbox"].error-input {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3) !important;
        }

        :root.dark .field input.error-input,
        :root.dark .field select.error-input,
        :root.dark .field textarea.error-input,
        :root.dark .custom-select-trigger.error-input {
            background: rgba(127, 29, 29, 0.2) !important;
        }

        /* --- Fix Autofill for Error Input --- */
        .field input.error-input:-webkit-autofill,
        .field input.error-input:-webkit-autofill:hover,
        .field input.error-input:-webkit-autofill:focus,
        .field input.error-input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px #fef2f2 inset !important;
        }

        :root.dark .field input.error-input:-webkit-autofill,
        :root.dark .field input.error-input:-webkit-autofill:hover,
        :root.dark .field input.error-input:-webkit-autofill:focus,
        :root.dark .field input.error-input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px #3f1616 inset !important;
        }

        /* --- Shake Error Animation --- */
        .shake-error {
            animation: shake-error 0.4s ease-in-out;
        }

        @keyframes shake-error {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }

        /* --- Kustomisasi File Input --- */
        .field input[type="file"] {
            padding: 8px 12px;
            cursor: pointer;
            line-height: 32px;
        }

        .field input[type="file"]::file-selector-button {
            background: var(--primary-soft);
            color: var(--primary-dark);
            border: none;
            padding: 0 16px;
            min-height: 32px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            margin-right: 12px;
            transition: all 0.2s ease;
        }

        .field input[type="file"]::file-selector-button:hover {
            background: rgba(37, 99, 235, 0.18);
            color: var(--primary-dark);
        }

        .dark .field input[type="file"]::file-selector-button {
            background: var(--primary-soft);
            color: #ffffff;
        }

        .dark .field input[type="file"]::file-selector-button:hover {
            background: rgba(59, 130, 246, 0.25);
        }

        /* --- KUSTOMISASI CUSTOM SELECT BERPENCARIAN --- */
        .custom-select-container {
            position: relative;
            width: 100%;
        }

        .custom-select-container select {
            display: none;
        }

        .custom-select-trigger {
            position: relative;
            min-height: 50px;
            border: 1px solid var(--line);
            background: var(--field-bg);
            border-radius: var(--radius-md);
            padding: 12px 46px 12px 14px;
            color: var(--text);
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: .2s ease;
            font-size: 0.95rem;
            user-select: none;
            max-width: 100%;
        }

        .custom-select-trigger span {
            display: block;
            width: 100%;
            min-width: 0;
            white-space: normal;
            word-break: break-word;
            line-height: 1.4;
        }

        .custom-select-trigger::after {
            content: "";
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-25%);
            border: 5px solid transparent;
            border-top-color: var(--muted);
            transition: .2s ease;
        }

        .custom-select-trigger.open {
            border-color: var(--primary);
            background: var(--field-focus);
        }

        .custom-select-trigger.open::after {
            transform: translateY(-75%) rotate(180deg);
        }

        .custom-select-container.disabled .custom-select-trigger {
            background: var(--hover-bg);
            opacity: 0.6;
            cursor: not-allowed;
        }

        .custom-select-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: var(--modal-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
            z-index: 999;
            display: none;
            flex-direction: column;
            overflow: hidden;
            animation: pop .18s ease;
        }

        .dark .custom-select-dropdown {
            box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
        }

        .custom-select-dropdown.open {
            display: flex;
        }

        .custom-select-search {
            padding: 10px;
            border-bottom: 1px solid var(--line);
            background: var(--modal-bg);
            position: sticky;
            top: 0;
        }

        .custom-select-search input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: var(--field-bg);
            color: var(--text);
            outline: none;
            font-size: 0.9rem;
            transition: .2s ease;
        }

        .custom-select-search input:focus {
            border-color: var(--primary);
            background: var(--field-focus);
        }

        .custom-select-options {
            max-height: 200px;
            overflow-y: auto;
            padding: 6px;
        }

        .custom-option {
            padding: 10px 12px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            margin-bottom: 2px;
            font-size: 0.9rem;
            color: var(--text);
            transition: .2s ease;
        }

        .custom-option:hover,
        .custom-option.selected {
            background: var(--hover-bg);
            color: var(--primary);
            font-weight: 600;
        }

        .custom-option-empty {
            padding: 14px;
            color: var(--muted);
            text-align: center;
            font-size: 0.9rem;
        }

        /* --- END KUSTOMISASI CUSTOM SELECT --- */

        input::-ms-reveal,
        input::-ms-clear {
            display: none;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            color: var(--muted);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: .2s ease;
            padding: 0;
        }

        .password-toggle:hover {
            color: var(--primary)
        }

        .input-prefix {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 46px;
            color: var(--muted);
            font-weight: 700;
            font-size: 0.95rem;
            pointer-events: none;
            border-right: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
        }

        :root.dark .input-prefix {
            border-right-color: #475569;
        }

        .input-wrap:focus-within .input-prefix {
            border-right-color: var(--primary);
        }

        :root.dark .input-wrap:focus-within .input-prefix {
            border-right-color: var(--primary);
        }

        .form-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            font-size: .88rem;
            flex-wrap: wrap
        }

        .remember {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--muted);
            font-weight: 700
        }

        .remember input {
            width: 17px;
            height: 17px;
            accent-color: var(--primary)
        }

        .link-btn {
            background: transparent;
            color: var(--primary);
            font-weight: 600;
            padding: 0;
            transition: .2s ease;
        }

        .link-btn:hover {
            opacity: 0.8;
        }

        .login-message {
            display: none;
            border-radius: 14px;
            padding: 12px 14px;
            font-size: .9rem;
            font-weight: 800;
            line-height: 1.45
        }

        .login-message.show {
            display: block
        }

        .login-message.success {
            background: var(--success-bg);
            color: var(--success-text)
        }

        .login-message.error {
            background: var(--error-bg);
            color: var(--error-text)
        }

        .or {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 12px;
            color: var(--muted);
            font-weight: 900;
            font-size: .78rem;
            margin: 4px 0
        }

        .or::before,
        .or::after {
            content: "";
            height: 1px;
            background: var(--line)
        }

        .alt-login {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px
        }

        .register-text {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--line);
            text-align: center;
        }

        .register-text p {
            font-size: 0.88rem;
            color: var(--muted);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .register-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .register-links .link-btn {
            font-size: 0.88rem;
        }

        .register-links .dot {
            color: var(--muted);
            opacity: 0.6;
            font-size: 0.8rem;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .form-category {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 12px;
            margin: 16px 0 6px 0;
            color: var(--muted);
            font-weight: 900;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .form-category::before,
        .form-category::after {
            content: "";
            height: 1px;
            background: var(--line);
        }

        .form-category:first-child {
            margin-top: 4px;
        }

        .section {
            padding: 54px 0
        }

        .section-head {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 24px
        }

        .section-title {
            font-size: clamp(1.7rem, 3vw, 2.5rem);
            letter-spacing: -.05em;
            font-weight: 950
        }

        .section-subtitle {
            color: var(--muted);
            line-height: 1.7;
            max-width: 900px;
            margin-top: 10px
        }

        .features {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 22px;
            box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
            transition: .2s ease;
        }

        .feature-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 55px rgba(15, 23, 42, .1)
        }

        .feature-icon {
            width: 46px;
            height: 46px;
            border-radius: var(--radius-md);
            display: grid;
            place-items: center;
            background: var(--icon-bg);
            color: var(--primary);
            font-weight: 950;
            margin-bottom: 16px;
        }

        .feature-card h3 {
            font-size: 1.05rem;
            margin-bottom: 8px;
            letter-spacing: -.02em
        }

        .feature-card p {
            color: var(--muted);
            line-height: 1.6;
            font-size: .92rem
        }

        .roles-panel {
            background: var(--card-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            box-shadow: none;
            overflow: hidden;
        }

        .role-toolbar {
            display: flex;
            gap: 12px;
            padding: 18px;
            border-bottom: 1px solid var(--line);
            align-items: center;
            justify-content: space-between
        }

        .role-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary-soft), var(--icon-bg));
            color: var(--primary-dark);
            border-radius: var(--radius-md);
            padding: 8px 14px;
            font-weight: 800;
            font-size: .86rem;
            white-space: nowrap;
            border: 1px solid var(--primary-soft);
            box-shadow: none;
            letter-spacing: 0.02em;
        }

        .roles-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            padding: 18px;
            max-height: 520px;
            overflow: auto
        }

        .role-item {
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            padding: 16px;
            background: var(--card-solid);
            transition: .2s ease;
            display: flex;
            gap: 12px;
            align-items: flex-start;
            outline: 0
        }

        .role-item:hover,
        .role-item:focus {
            border-color: var(--primary);
            box-shadow: 0 12px 30px rgba(37, 99, 235, .08);
            transform: translateY(-2px)
        }

        .role-avatar {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            display: grid;
            place-items: center;
            background: var(--icon-bg);
            font-weight: 950;
            color: var(--primary-dark);
            flex: 0 0 auto
        }

        .role-item strong {
            display: block;
            font-size: .94rem;
            margin-bottom: 5px;
            color: var(--text)
        }

        .role-item span {
            display: block;
            color: var(--muted);
            font-size: .8rem;
            line-height: 1.45
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            align-items: stretch;
        }

        .pricing-card {
            background: var(--card-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 36px 28px;
            box-shadow: 0 14px 40px rgba(15, 23, 42, .04);
            display: flex;
            flex-direction: column;
            position: relative;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .pricing-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
        }

        .pricing-card.featured {
            border: 2px solid var(--primary);
            box-shadow: 0 20px 50px rgba(99, 102, 241, 0.1);
        }

        .pricing-badge {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--primary);
            color: #fff;
            padding: 4px 12px;
            border-radius: 99px;
            font-size: 0.74rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .dark .pricing-badge {
            background: linear-gradient(0deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.22)), var(--card-solid);
            color: var(--primary-dark);
            border: 2px solid var(--primary);
        }

        .pricing-name {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 8px;
        }

        .pricing-desc {
            font-size: 0.88rem;
            color: var(--muted);
            line-height: 1.5;
            margin-bottom: 24px;
            min-height: 42px;
        }

        .pricing-price-box {
            margin-bottom: 28px;
            display: flex;
            align-items: baseline;
            gap: 4px;
        }

        .pricing-amount {
            font-size: 2.2rem;
            font-weight: 900;
            color: var(--text);
            letter-spacing: -0.03em;
        }

        .pricing-period {
            font-size: 0.9rem;
            color: var(--muted);
            font-weight: 600;
        }

        .pricing-features-list {
            list-style: none;
            padding: 0;
            margin: 0 0 32px 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex-grow: 1;
        }

        .pricing-feature-item {
            display: flex;
            align-items: start;
            gap: 10px;
            font-size: 0.9rem;
            color: var(--text);
            font-weight: 500;
            line-height: 1.4;
        }

        .pricing-feature-item svg {
            width: 18px;
            height: 18px;
            color: #22c55e;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .pricing-btn {
            width: 100%;
            margin-top: auto;
        }

        /* --- PREMIUM MODERN FOOTER STYLING --- */
        .footer {
            padding: 64px 0 32px 0;
            border-top: 1px solid var(--line);
            background: var(--nav-bg);
            color: var(--muted);
            font-size: 0.92rem;
            position: relative;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            margin-bottom: 48px;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .footer-col.brand-col {
            gap: 6px;
        }

        .footer-brand-logo {
            height: 95px;
            width: auto;
            align-self: flex-start;
            margin-left: -20px;
            margin-top: -12px;
            margin-bottom: -22px;
        }

        .footer-desc {
            line-height: 1.6;
            color: var(--muted);
            font-size: 0.88rem;
        }

        .footer-socials {
            display: flex;
            gap: 12px;
            margin-top: 8px;
        }

        .footer-social-link {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--card-bg);
            border: 1px solid var(--line);
            display: grid;
            place-items: center;
            color: var(--text);
            transition: all 0.2s ease;
        }

        .footer-social-link:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-3px);
        }

        .dark .footer-social-link:hover {
            background: rgba(59, 130, 246, 0.22);
            color: var(--primary-dark);
            border-color: var(--primary-dark);
        }

        .footer-col h4 {
            color: var(--text);
            font-weight: 800;
            font-size: 1rem;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
            position: relative;
            padding-bottom: 8px;
        }

        .footer-col h4::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 36px;
            height: 2.5px;
            background: var(--primary);
            border-radius: 99px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-links a {
            color: var(--muted);
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

        .footer-contact-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            line-height: 1.5;
            color: var(--muted);
        }

        .footer-contact-item svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            margin-top: 3px;
        }

        .footer-bottom {
            padding-top: 32px;
            border-top: 1px solid var(--line);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 0.86rem;
        }

        .footer-bottom-links {
            display: flex;
            gap: 20px;
        }

        .footer-bottom-links a {
            color: var(--muted);
            transition: color 0.2s ease;
        }

        .footer-bottom-links a:hover {
            color: var(--primary);
        }

        @media (max-width: 992px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 32px;
            }
        }

        @media (max-width: 576px) {
            .footer {
                padding: 48px 0 24px 0;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 28px;
                margin-bottom: 32px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
                gap: 16px;
            }

            .footer-bottom-links {
                justify-content: center;
                flex-wrap: wrap;
                gap: 12px;
            }
        }

        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .6);
            backdrop-filter: blur(8px);
            z-index: 20000 !important;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px
        }

        .modal-backdrop.open {
            display: flex
        }

        /* --- PERUBAHAN UTAMA MODAL: Flexbox & Overflow Hidden --- */
        .modal {
            width: min(480px, 100%);
            max-height: 90vh;
            background: var(--modal-bg);
            border-radius: var(--radius-lg);
            box-shadow: 0 30px 100px rgba(0, 0, 0, .3);
            animation: pop .18s ease;
            border: 1px solid var(--line);

            /* Mengubah menjadi kolom flex dan mengunci isi yang keluar batas */
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .modal-lg {
            width: min(780px, 100%);
        }

        /* --- KUSTOMISASI LAYOUT MODAL UJIAN --- */
        .exam-modal-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
            align-items: start;
        }

        .exam-modal-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: var(--muted);
            font-size: 0.8rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .exam-modal-divider .divider-line {
            flex: 1;
            height: 1px;
            background: var(--line);
        }

        @media (min-width: 768px) {
            .exam-modal-grid {
                grid-template-columns: 1fr auto 1fr;
                gap: 32px;
            }

            .exam-modal-divider {
                flex-direction: column;
                height: 100%;
                width: 1px;
                min-height: 180px;
                align-self: center;
            }

            .exam-modal-divider .divider-line {
                width: 1px;
                height: 100%;
                flex: 1;
            }
        }

        .sitemap-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }

        @media (min-width: 768px) {
            .sitemap-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }
        }

        /* --- HEADER MODAL: Tanpa posisi absolute/sticky, statis di atas --- */
        .modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding: 12px 24px;
            border-bottom: 1px solid var(--line);
            background: var(--modal-bg);
            flex-shrink: 0;
            /* Mencegah header menyusut */
        }

        /* --- BODY MODAL: Wrapper baru untuk area yang bisa di-scroll --- */
        .modal-body {
            padding: 14px 24px 24px 24px !important;
            overflow-y: auto;
            /* Scrollbar hanya aktif di sini */
            flex: 1;
            /* Mengisi sisa ruang */
        }

        /* Tambahan grid responsive untuk form modal dekstop */
        @media (min-width: 768px) {
            .form.modal-form-grid {
                grid-template-columns: 1fr 1fr;
                gap: 16px 20px;
                align-items: start;
            }

            .form.modal-form-grid .form-category,
            .form.modal-form-grid .full-width,
            .form.modal-form-grid>button {
                grid-column: 1 / -1;
            }

            .form.modal-form-grid .form-category {
                margin: 8px 0 0 0;
            }
        }

        .captcha-wrapper {
            display: flex;
            gap: 8px;
            align-items: center;
            width: 100%;
        }

        .captcha-wrapper canvas {
            width: 120px;
            height: 42px;
        }

        @media (max-width: 576px) {
            .captcha-wrapper {
                flex-wrap: wrap;
                gap: 8px;
            }

            .captcha-wrapper canvas {
                width: calc(100% - 100px) !important;
                height: 42px;
            }

            .captcha-wrapper .input-wrap {
                flex: 1 1 100% !important;
                width: 100% !important;
                order: 2;
            }

            .captcha-wrapper button {
                flex: 0 0 42px;
                order: 1;
            }
        }

        @keyframes pop {
            from {
                transform: scale(.96);
                opacity: 0
            }

            to {
                transform: scale(1);
                opacity: 1
            }
        }

        @keyframes spinner-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .btn-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid currentColor;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spinner-spin 0.6s linear infinite;
            flex-shrink: 0;
        }

        .btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            pointer-events: none;
        }

        .modal h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -.02em;
            color: var(--text);
            margin: 0;
            line-height: 1.2;
            display: inline-flex;
            align-items: center;
        }

        .modal .field label {
            font-weight: 500;
        }

        .modal .form-category {
            font-weight: 500;
        }

        .modal p strong {
            font-weight: 500;
        }

        .modal .btn {
            font-weight: 600;
        }

        .modal p {
            color: var(--muted);
            line-height: 1.65;
            margin: 0 0 20px 0;
            font-size: .94rem;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            background: transparent;
            font-weight: 500;
            font-size: 1.5rem;
            color: var(--muted);
            transition: .2s ease;
            line-height: 1;
            padding: 0 0 2px 0;
            border: none;
            cursor: pointer;
        }

        .modal-close:hover {
            color: #ef4444;
            transform: scale(1.15);
        }

        #closeMobileMenuBtn {
            width: 44px;
            height: 44px;
            padding: 0;
            border-radius: var(--radius-sm);
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            cursor: pointer;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        #closeMobileMenuBtn:hover {
            color: #ef4444;
            transform: scale(1.15);
        }

        .token-result {
            display: none;
            margin-top: 12px;
            background: var(--success-bg);
            color: var(--success-text);
            border-radius: var(--radius-md);
            padding: 12px 14px;
            font-weight: 500;
            line-height: 1.45
        }

        .token-result.show {
            display: block
        }

        .toast-container {
            position: fixed;
            right: 20px;
            top: 20px;
            z-index: 99999;
            pointer-events: none;
        }

        .toast {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            color: var(--text);
            border-radius: var(--radius-md);
            padding: 0;
            box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
            transform-origin: top center;
            transform: translateY(-20px) scale(0.95);
            opacity: 0;
            pointer-events: auto;
            transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
            width: 500px;
            max-width: calc(100vw - 40px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--line);
        }

        .toast.show:nth-child(1) {
            z-index: 3;
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        .toast.show:nth-child(2) {
            z-index: 2;
            transform: translateY(14px) scale(0.96);
            opacity: 0.9;
        }

        .toast.show:nth-child(3) {
            z-index: 1;
            transform: translateY(28px) scale(0.92);
            opacity: 0.7;
        }

        .toast.show:nth-child(n+4) {
            z-index: 0;
            transform: translateY(42px) scale(0.88);
            opacity: 0;
            pointer-events: none;
        }

        .toast.leaving {
            transform: translateY(-20px) scale(0.95) !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .toast-content {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            gap: 14px;
        }

        .toast-icon {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .toast-icon svg {
            width: 18px;
            height: 18px;
        }

        .toast.toast-success .toast-icon {
            background: #dcfce7;
            color: #16a34a;
        }

        .dark .toast.toast-success .toast-icon {
            background: rgba(34, 197, 94, 0.15);
            color: #4ade80;
        }

        .toast.toast-error .toast-icon {
            background: #fee2e2;
            color: #ef4444;
        }

        .dark .toast.toast-error .toast-icon {
            background: rgba(239, 68, 68, 0.15);
            color: #f87171;
        }

        .toast-text {
            flex: 1;
            font-size: 0.92rem;
            font-weight: 500;
            line-height: 1.55;
            letter-spacing: 0.01em;
            word-break: break-word;
        }

        .toast-close {
            background: transparent;
            border: none;
            color: var(--muted);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
        }

        .toast-close svg {
            width: 18px;
            height: 18px;
        }

        .toast-close:hover {
            color: var(--text);
        }

        .toast-progress-bg {
            height: 4px;
            background: var(--line);
            width: 100%;
        }

        .toast-progress {
            height: 100%;
            width: 100%;
            transition: width 3s linear;
        }

        .toast.toast-success .toast-progress {
            background: #22c55e;
        }

        .toast.toast-error .toast-progress {
            background: #ef4444;
        }

        @media (max-width:1024px) {
            .hero-grid {
                grid-template-columns: 1fr
            }

            .features,
            .roles-grid,
            .pricing-grid {
                grid-template-columns: repeat(2, 1fr)
            }

            .login-card {
                max-width: 720px;
                margin: auto
            }
        }

        @media (max-width:760px) {

            /* Sembunyikan scrollbar di mobile untuk tampilan bersih */
            ::-webkit-scrollbar {
                display: none !important;
                width: 0 !important;
                height: 0 !important;
            }

            * {
                -ms-overflow-style: none !important;
                scrollbar-width: none !important;
            }

            .container {
                width: min(100% - 28px, 1180px)
            }

            .nav-inner {
                min-height: 70px
            }

            .nav-links,
            .nav-actions {
                display: none
            }

            .hamburger {
                display: flex
            }

            .brand {
                font-size: 1.12rem
            }

            .mobile-menu {
                display: flex !important;
                flex-direction: column;
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                width: 280px;
                background: var(--nav-bg);
                backdrop-filter: blur(18px);
                -webkit-backdrop-filter: blur(18px);
                z-index: 10002;
                padding: 24px 20px;
                border-right: 1px solid var(--line);
                border-top: none;
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
            }

            .mobile-menu.open {
                transform: translateX(0);
            }

            .brand-logo {
                width: 40px;
                height: 40px;
                border-radius: var(--radius-md)
            }

            .hero {
                padding: 34px 0 30px
            }

            .hero-grid {
                gap: 24px
            }

            .badge {
                font-size: .78rem
            }

            h1 {
                font-size: 2.45rem;
                line-height: 1.03
            }

            .hero-desc {
                font-size: .98rem;
                line-height: 1.7
            }

            .hero-actions .btn {
                width: 100%
            }

            .trust-row,
            .features,
            .roles-grid,
            .pricing-grid {
                grid-template-columns: 1fr
            }

            .login-card {
                border-radius: var(--radius-lg);
                padding: 24px 20px
            }

            .login-head {
                flex-direction: column
            }

            .status-pill {
                width: max-content
            }

            .alt-login {
                grid-template-columns: 1fr
            }

            .section {
                padding: 38px 0
            }

            .section-head {
                display: block
            }

            .role-toolbar {
                display: grid;
                grid-template-columns: 1fr
            }

            .role-count {
                text-align: center
            }

            .roles-grid {
                max-height: 430px
            }

            .footer-inner {
                justify-content: center;
                text-align: center
            }

            .toast-container {
                right: 14px;
                left: 14px;
                top: 14px;
            }

            .toast {
                left: 0;
                right: 0;
                margin: 0 auto;
                width: auto;
                max-width: none;
                min-width: 0;
            }
        }

        @media (max-width:400px) {

            .grid-2,
            .grid-3 {}
        }

        /* STYLE COOKIE CONSENT BANNER */
        .cookie-banner-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            left: 24px;
            z-index: 9999;
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 16px 20px;
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
            animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            max-width: 900px;
            margin: 0 auto;
        }

        .cookie-banner-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .cookie-banner-text-col {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            flex: 1;
        }

        .cookie-banner-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            background: var(--icon-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .cookie-banner-text {
            font-size: 0.82rem;
            line-height: 1.5;
            color: var(--text);
        }

        .cookie-banner-text strong {
            display: block;
            font-size: 0.9rem;
            margin-bottom: 4px;
            font-weight: 700;
        }

        .cookie-banner-text p {
            color: var(--muted);
            margin: 0;
        }

        .cookie-banner-actions {
            display: flex;
            gap: 10px;
            flex-shrink: 0;
            align-items: center;
        }

        @keyframes slideUpCookie {
            from {
                transform: translateY(120%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @media (max-width: 768px) {
            .cookie-banner-container {
                bottom: 16px;
                right: 16px;
                left: 16px;
                padding: 14px 16px;
                max-width: calc(100% - 32px);
            }

            .cookie-banner-content {
                flex-direction: column;
                align-items: stretch;
                gap: 14px;
            }

            .cookie-banner-actions {
                display: flex;
                justify-content: flex-end;
            }

            .cookie-banner-actions button {
                width: 100%;
            }
        }

        /* === CUSTOM EMAIL AUTOCOMPLETE DROPDOWN === */
        .email-suggestions-list {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: var(--modal-bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
            z-index: 999;
            max-height: 200px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            padding: 6px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            transition: .25s ease;
        }

        .dark .email-suggestions-list {
            box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
        }

        .email-suggestions-list.active {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }



        .email-suggestion-item {
            padding: 10px 12px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            margin-bottom: 2px;
            color: var(--text);
            font-size: 0.9rem;
            transition: .2s ease;
            text-align: left;
            display: flex;
            align-items: center;
        }

        .email-suggestion-item:hover,
        .email-suggestion-item.selected {
            background: var(--hover-bg);
            color: var(--primary);
            font-weight: 600;
        }
    


@media (max-width: 940px) {
  html {
    height: auto;
    scroll-padding-top: 85px;
  }

  body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    display: block;
  }

  .main-content {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .navbar {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 760px) {
  .mobile-menu-overlay {
    z-index: 10001;
    transition: opacity .14s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-menu {
    width: min(280px, 88vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(-100%, 0, 0);
    transition: transform .18s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .mobile-menu.open {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-overlay {
    transition-duration: .01ms !important;
  }
}

@keyframes scaleBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
#harga .pricing-grid.dynamic-pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 1180px;
  margin-inline: auto;
  align-items: stretch;
}
#harga .pricing-grid.dynamic-pricing-grid .pricing-card {
  width: 100%;
  max-width: 460px;
  min-width: 0;
  justify-self: center;
}
@media (max-width: 760px) {
  #harga .pricing-grid.dynamic-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #harga .pricing-grid.dynamic-pricing-grid .pricing-card {
    max-width: 520px;
  }
}