:root {
            --primary: #38BDF8;
            --primary-dark: #0088CC;
            --bg-base: #020617;
            --surface: rgba(30, 41, 59, 0.7);
            --surface-border: rgba(255, 255, 255, 0.1);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body,
        html {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-base);
            color: #FFFFFF;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        main {
            animation: pageEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            flex: 1;
        }
        body.page-exit main {
            opacity: 0 !important;
            transform: translateY(-15px) !important;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes pageEnter {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .ambient-glow {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate3d(-50%, -50%, 0);
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(2, 6, 23, 0) 65%);
            z-index: 0;
            pointer-events: none;
            filter: blur(60px);
        }
        header {
            width: 100%;
            padding: 40px 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 100;
        }
        .logo {
            height: 76px;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }
        @media (min-width: 768px) {
            .logo {
                height: 96px;
            }
        }
        @media (min-width: 1024px) {
            .logo {
                height: 120px;
            }
        }
        .main-wrapper {
            flex: 1;
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding: 24px 24px 64px;
        }
        .form-card {
            width: 100%;
            max-width: 600px;
            background: var(--surface);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--surface-border);
            border-radius: 24px;
            padding: 32px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
        }
        .form-header {
            text-align: center;
            margin-bottom: 32px;
        }
        .form-header h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
            background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .form-header p {
            color: #94A3B8;
            font-size: 14px;
            line-height: 1.5;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #E2E8F0;
        }
        .form-label span {
            color: #EF4444; 
        }
        .form-control {
            width: 100%;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #FFFFFF;
            padding: 14px 16px;
            border-radius: 12px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 15px;
            transition: all 0.2s ease;
        }
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
            background: rgba(15, 23, 42, 0.8);
        }
        .form-control::placeholder {
            color: #64748B;
        }
        select.form-control {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 16px;
            padding-right: 40px;
        }
        select.form-control option {
            background-color: #0F172A;
            color: #FFFFFF;
        }
        .kategori-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .kategori-chip {
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }
        .kategori-chip input[type="checkbox"] {
            display: none;
        }
        .kategori-chip span {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 100px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(15, 23, 42, 0.5);
            color: #94A3B8;
            font-size: 13px;
            font-weight: 500;
            font-family: inherit;
            transition: all 0.2s ease;
        }
        .kategori-chip span:hover {
            border-color: rgba(56, 189, 248, 0.3);
            color: #E2E8F0;
        }
        .kategori-chip input[type="checkbox"]:checked + span {
            background: rgba(56, 189, 248, 0.15);
            border-color: var(--primary);
            color: #FFFFFF;
            box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
        }
        input[type="file"] {
            padding: 10px;
            font-size: 14px;
            color: #94A3B8;
        }
        input[type="file"]::file-selector-button {
            margin-right: 16px;
            padding: 8px 16px;
            border-radius: 8px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-family: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        input[type="file"]::file-selector-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .btn-submit {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px;
            margin-top: 32px;
            border-radius: 12px;
            border: none;
            background: var(--primary);
            color: var(--bg-base);
            font-size: 16px;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
        }
        .btn-submit:hover {
            background: #7DD3FC;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
        }
        .btn-submit:disabled {
            background: #475569;
            color: #94A3B8;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .hidden {
            display: none !important;
        }
        .alert {
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 24px;
            font-size: 14px;
            font-weight: 500;
            display: none;
        }
        .alert.success {
            display: block;
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.3);
            color: #4ADE80;
        }
        .alert.error {
            display: block;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #F87171;
        }
        .info-box {
            background: rgba(56, 189, 248, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.25);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 24px;
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }
        .info-box svg {
            width: 20px;
            height: 20px;
            color: var(--primary);
            flex-shrink: 0;
            margin-top: 2px;
        }
        .info-box p {
            font-size: 13px;
            color: #E2E8F0;
            line-height: 1.6;
            margin: 0;
        }
        .info-box b {
            color: #FFFFFF;
            font-weight: 700;
        }
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 999999;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .modal-overlay.active {
            display: flex;
        }
        body.modal-open {
            overflow: hidden !important;
        }
        @keyframes modalSlideUp {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .modal-content {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 1));
            border: 1px solid rgba(34, 211, 238, 0.2);
            border-radius: 24px;
            padding: 48px 32px 36px;
            max-width: 400px;
            width: 100%;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 211, 238, 0.08);
            animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        .modal-content::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
            pointer-events: none;
        }
        .modal-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
            border: 2px solid rgba(34, 197, 94, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            position: relative;
        }
        .modal-overlay.active .modal-icon {
            animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
        }
        @keyframes iconPop {
            from { transform: scale(0); }
            to { transform: scale(1); }
        }
        .modal-icon::after {
            content: '';
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 2px solid rgba(34, 197, 94, 0.15);
            animation: iconRing 2s ease-in-out infinite;
        }
        @keyframes iconRing {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.15); opacity: 0.4; }
        }
        .modal-icon svg {
            width: 38px;
            height: 38px;
            color: #22C55E;
            filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
        }
        .modal-overlay.active .modal-icon svg {
            animation: checkDraw 0.5s ease 0.5s both;
        }
        @keyframes checkDraw {
            from { stroke-dashoffset: 30; opacity: 0; }
            to { stroke-dashoffset: 0; opacity: 1; }
        }
        .modal-content h3 {
            font-size: 22px;
            font-weight: 800;
            color: #FFFFFF;
            margin-bottom: 8px;
            letter-spacing: -0.3px;
        }
        .modal-content .modal-subtitle {
            font-size: 13px;
            color: #22C55E;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-bottom: 20px;
        }
        .modal-content p {
            font-size: 14px;
            color: #94A3B8;
            line-height: 1.7;
            margin-bottom: 28px;
        }
        .modal-content p b {
            color: #E2E8F0;
            font-weight: 600;
        }
        .modal-divider {
            width: 40px;
            height: 3px;
            background: #22C55E;
            border-radius: 3px;
            margin: 0 auto 20px;
        }
        .modal-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--primary), #06B6D4);
            color: #0F172A;
            font-weight: 700;
            font-size: 14px;
            padding: 14px 28px;
            border-radius: 14px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
        }
        .modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(34, 211, 238, 0.4);
        }
        .modal-btn:active {
            transform: translateY(0);
        }
        .modal-btn svg {
            width: 18px;
            height: 18px;
        }
        .confetti {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 2px;
            top: 0;
            opacity: 0;
        }
        .modal-overlay.active .confetti {
            animation: confettiFall 1.5s ease 0.4s forwards;
        }
        @keyframes confettiFall {
            0% { top: -10px; opacity: 1; transform: rotate(0deg) translateX(0); }
            100% { top: 100%; opacity: 0; transform: rotate(720deg) translateX(var(--drift)); }
        }
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #94A3B8;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 24px;
            transition: color 0.2s;
        }
        .back-link:hover {
            color: #FFFFFF;
        }
        .upload-area {
            display: flex;
            gap: 10px;
            align-items: stretch;
        }
        .upload-area .form-control {
            flex: 1;
            min-width: 0;
        }
        .btn-camera {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 14px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(56, 189, 248, 0.1);
            color: var(--primary);
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .btn-camera:hover {
            background: rgba(56, 189, 248, 0.2);
            border-color: var(--primary);
        }
        .btn-camera svg {
            width: 18px;
            height: 18px;
        }
        .camera-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 999999;
            background: #000;
            flex-direction: column;
        }
        .camera-modal.active {
            display: flex;
        }
        .camera-top-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 30;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            padding-top: calc(16px + env(safe-area-inset-top, 0px));
            background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
        }
        .camera-top-bar .cam-title {
            color: #FFFFFF;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 0.3px;
        }
        .btn-close-cam {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.15);
            color: #FFFFFF;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .btn-close-cam:hover {
            background: rgba(255,255,255,0.25);
        }
        .btn-close-cam svg {
            width: 20px;
            height: 20px;
        }
        .camera-video-wrapper {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
            overflow: hidden;
        }
        .camera-video-wrapper video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .camera-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .guide-frame {
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
            position: relative;
        }
        .camera-overlay.ktp .guide-frame {
            width: 88%;
            max-width: 380px;
            aspect-ratio: 1.586 / 1;
            border-radius: 14px;
            border: 2px solid rgba(255,255,255,0.35);
        }
        .ktp-corner {
            position: absolute;
            width: 28px;
            height: 28px;
            border-color: #38BDF8;
            border-style: solid;
            border-width: 0;
        }
        .ktp-corner.tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; border-radius: 14px 0 0 0; }
        .ktp-corner.tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 14px 0 0; }
        .ktp-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 14px; }
        .ktp-corner.br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 14px 0; }
        .camera-overlay.selfie .guide-frame {
            width: 240px;
            height: 320px;
            border-radius: 50%;
            border: 3px solid rgba(255,255,255,0.6);
        }
        .selfie-ring {
            position: absolute;
            inset: -8px;
            border-radius: 50%;
            border: 2px solid rgba(56, 189, 248, 0.35);
        }
        .camera-instruction {
            position: absolute;
            bottom: 140px;
            left: 0;
            width: 100%;
            text-align: center;
            z-index: 11;
            padding: 0 24px;
        }
        .camera-instruction span {
            display: inline-block;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #FFFFFF;
            font-size: 14px;
            font-weight: 600;
            padding: 10px 20px;
            border-radius: 100px;
            letter-spacing: 0.2px;
        }
        .camera-bottom-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 30;
            display: flex;
            align-items: center;
            justify-content: space-evenly;
            padding: 32px 40px;
            padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
        }
        .btn-shutter {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            border: 4px solid rgba(255,255,255,0.3);
            background: transparent;
            cursor: pointer;
            transition: all 0.15s;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        .btn-shutter::after {
            content: '';
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #FFFFFF;
            transition: all 0.15s;
        }
        .btn-shutter:active::after {
            transform: scale(0.85);
            background: #CBD5E1;
        }
        .btn-flip-cam {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.15);
            color: #FFFFFF;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .btn-flip-cam:active {
            transform: rotate(180deg);
        }
        .btn-flip-cam svg {
            width: 22px;
            height: 22px;
        }
        .preview-thumb {
            margin-top: 10px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.1);
            display: none;
        }
        .preview-thumb.active {
            display: block;
        }
        .preview-thumb img {
            width: 100%;
            max-height: 200px;
            object-fit: cover;
            display: block;
        }
        .preview-thumb .preview-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: rgba(15, 23, 42, 0.8);
            font-size: 12px;
            color: #4ADE80;
            font-weight: 600;
        }
        .preview-thumb .preview-label button {
            background: none;
            border: none;
            color: #F87171;
            cursor: pointer;
            font-family: inherit;
            font-size: 12px;
            font-weight: 600;
        }
        @media (max-width: 640px) {
            .form-card {
                padding: 24px 20px;
                border-radius: 20px;
            }
            header {
                padding: 16px;
            }
            .upload-area {
                flex-direction: column;
            }
            .btn-camera {
                padding: 12px;
                border-radius: 12px;
                justify-content: center;
            }
        }
