/* ==========================================
   1. RESET & GLOBAL STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #070f1e 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    gap: 16px;
    color: #1e293b;
    overflow-x: hidden;
}

body.modal-open .login-container {
    filter: blur(8px);
    pointer-events: none;
}

/* ==========================================
   2. BACKGROUND VIDEO
   ========================================== */
#bg-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   3. PAGE TRANSITIONS (SPA ROOT)
   ========================================== */
#page-app-root {
    width: 100%;
    /*max-width: 1100px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

#page-app-root.page-exit {
    opacity: 0;
    transform: translateY(-15px);
}

#page-app-root.page-enter {
    opacity: 0;
    transform: translateY(15px);
}

/* ==========================================
   4. LAYOUT MAIN & CONTAINERS
   ========================================== */
.container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: filter 0.3s ease;
    margin-bottom: 20px;
    min-height: 480px;
}

.login-left {
    flex: 1.3;
    background: #f8fafc;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.login-right {
    flex: 1;
    background: #0b1329;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.main-content {
    right: 0;
    left: 286px;
    position: absolute;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 8px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.main-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.3px;
}

.content-body {
    margin-top: 25px;
}

.content-body h3 {
    font-size: 1.25rem;
    color: #151A2D;
    margin-bottom: 15px;
}

.content-body h4 {
    font-size: 1.05rem;
    color: #333333;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ==========================================
   5. SIDEBAR & NAVIGATION
   ========================================== */
.sidebar {
    left: 0;
    position: fixed;
    width: 270px;
    border-radius: 16px;
    background: #151A2D;
    height: calc(100vh - 32px);
    transition: all 0.4s ease;
    z-index: 10;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 85px;
}

.sidebar.collapsed ~ .main-content {
    left: 101px;
}

.sidebar .sidebar-header {
    display: flex;
    position: relative;
    padding: 25px 20px;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .header-logo img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.sidebar-header .toggler {
    height: 35px;
    width: 35px;
    color: #151A2D;
    border: none;
    cursor: pointer;
    display: flex;
    background: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.4s ease;
}

.sidebar-header .sidebar-toggler {
    position: absolute;
    right: 20px;
}

.sidebar-header .menu-toggler {
    display: none;
}

.sidebar.collapsed .sidebar-header .toggler {
    transform: translate(-4px, 65px);
}

.sidebar-header .toggler:hover {
    background: #dde4fb;
}

.sidebar-header .toggler span {
    font-size: 1.75rem;
    transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-header .toggler span {
    transform: rotate(180deg);
}

.sidebar-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0 15px;
    flex-direction: column;
    transform: translateY(15px);
    transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-nav .primary-nav {
    transform: translateY(65px);
}

.sidebar-nav .nav-link {
    color: #fff;
    display: flex;
    gap: 12px;
    white-space: nowrap;
    border-radius: 8px;
    padding: 12px 15px;
    align-items: center;
    text-decoration: none;
    transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-nav .nav-link {
    border-radius: 12px;
}

.sidebar .sidebar-nav .nav-link .nav-label {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-nav .nav-link .nav-label {
    opacity: 0;
    pointer-events: none;
}

.sidebar-nav .nav-link:hover {
    color: #151A2D;
    background: #fff;
}

.sidebar-nav .nav-item {
    position: relative;
}

.sidebar-nav .nav-tooltip {
    position: absolute;
    top: -10px;
    opacity: 0;
    color: #151A2D;
    display: none;
    pointer-events: none;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    background: #fff;
    left: calc(100% + 25px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: 0s;
}

.sidebar.collapsed .sidebar-nav .nav-tooltip {
    display: block;
}

.sidebar-nav .nav-item:hover .nav-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(50%);
    transition: all 0.4s ease;
}

/* Header Component */
.header {
    background: #070f1e;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stepper Component */
.stepper {
    display: flex;
    justify-content: space-between;
    background: #070f1e;
    padding: 0 20px 25px 20px;
    position: relative;
    border-bottom: 1px solid #1e293b;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #334155;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-weight: bold;
    font-size: 0.85rem;
    border: 2px solid #475569;
}

.step-item.active .step-circle {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
}

.step-item.completed .step-circle {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.step-label {
    font-size: 0.72rem;
    color: #94a3b8;
}

.step-item.active .step-label {
    color: #f59e0b;
    font-weight: bold;
}

/* ==========================================
   6. FORMS, BUTTONS & ALERTS
   ========================================== */
.form-content {
    padding: 30px;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #b45309;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.grid-1 {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.login-right .form-group label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #cbd5e1;
    text-transform: uppercase;
}

.form-group label span {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f8fafc;
}

.login-right .form-control {
    padding: 10px 12px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #f59e0b;
    background: #fff;
}

.login-right .form-control:focus {
    border-color: #f59e0b;
    background: #1e293b;
}

.login-right h2 {
    color: #f59e0b;
    font-size: 1.35rem;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.5px;
}

.login-right p {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-next {
    background: linear-gradient(to right, #f59e0b, #d97706);
    border: none;
    color: #000;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, #f59e0b, #d97706);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-edit {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit:hover {
    background: #334155;
}

.btn-top-register {
    position: absolute;
    top: 20px;
    right: 25px;
    background: #00bfff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.4);
    transition: 0.3s;
}

.btn-top-register:hover {
    background: #009acd;
}

.alert {
    background: #ef4444;
    color: white;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-align: center;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #ef4444;
}

.confirm-box {
    background: #fffdf5;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    font-size: 0.88rem;
    color: #334155;
}

.confirm-row {
    display: flex;
    margin-bottom: 6px;
}

.confirm-label {
    width: 140px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.confirm-colon {
    width: 15px;
    color: #64748b;
    text-align: center;
    flex-shrink: 0;
}

.confirm-value {
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.doc-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.88rem;
}

.doc-item-row:last-child {
    border-bottom: none;
}

/* ==========================================
   7. 3D COVERFLOW SLIDESHOW
   ========================================== */
.slideshow-header {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.slideshow-header h3 {
    color: #00bfff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.slideshow-header p {
    color: #64748b;
    font-size: 0.85rem;
}

.coverflow-container {
    width: 100%;
    height: 360px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: pan-y;
    cursor: grab;
}

.coverflow-container:active {
    cursor: grabbing;
}

.coverflow-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-slider input[type="radio"] {
    display: none;
}

.items {
    position: absolute;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-item {
    position: absolute;
    width: 220px;
    height: 290px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, z-index 0.5s;
    cursor: pointer;
    background: #000;
    left: 50%;
    margin-left: -110px;
    user-select: none;
}

.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.coverflow-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    backdrop-filter: blur(10px);
}

.coverflow-item .caption h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.coverflow-item .caption span {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.2;
    display: block;
}

/* 3D Coverflow Slide Transformations */
#slide1:checked ~ .items .item1 { transform: translateX(0) scale(1) rotateY(0deg); z-index: 5; opacity: 1; }
#slide1:checked ~ .items .item2 { transform: translateX(120px) scale(0.85) rotateY(-35deg); z-index: 4; opacity: 0.9; }
#slide1:checked ~ .items .item3 { transform: translateX(200px) scale(0.7) rotateY(-45deg); z-index: 3; opacity: 0.7; }
#slide1:checked ~ .items .item4 { transform: translateX(-200px) scale(0.7) rotateY(45deg); z-index: 2; opacity: 0.5; }
#slide1:checked ~ .items .item5 { transform: translateX(-120px) scale(0.85) rotateY(35deg); z-index: 3; opacity: 0.7; }

#slide2:checked ~ .items .item2 { transform: translateX(0) scale(1) rotateY(0deg); z-index: 5; opacity: 1; }
#slide2:checked ~ .items .item3 { transform: translateX(120px) scale(0.85) rotateY(-35deg); z-index: 4; opacity: 0.9; }
#slide2:checked ~ .items .item4 { transform: translateX(200px) scale(0.7) rotateY(-45deg); z-index: 3; opacity: 0.7; }
#slide2:checked ~ .items .item5 { transform: translateX(-200px) scale(0.7) rotateY(45deg); z-index: 2; opacity: 0.5; }
#slide2:checked ~ .items .item1 { transform: translateX(-120px) scale(0.85) rotateY(35deg); z-index: 4; opacity: 0.9; }

#slide3:checked ~ .items .item3 { transform: translateX(0) scale(1) rotateY(0deg); z-index: 5; opacity: 1; }
#slide3:checked ~ .items .item4 { transform: translateX(120px) scale(0.85) rotateY(-35deg); z-index: 4; opacity: 0.9; }
#slide3:checked ~ .items .item5 { transform: translateX(200px) scale(0.7) rotateY(-45deg); z-index: 3; opacity: 0.7; }
#slide3:checked ~ .items .item1 { transform: translateX(-200px) scale(0.7) rotateY(45deg); z-index: 2; opacity: 0.5; }
#slide3:checked ~ .items .item2 { transform: translateX(-120px) scale(0.85) rotateY(35deg); z-index: 4; opacity: 0.9; }

#slide4:checked ~ .items .item4 { transform: translateX(0) scale(1) rotateY(0deg); z-index: 5; opacity: 1; }
#slide4:checked ~ .items .item5 { transform: translateX(120px) scale(0.85) rotateY(-35deg); z-index: 4; opacity: 0.9; }
#slide4:checked ~ .items .item1 { transform: translateX(200px) scale(0.7) rotateY(-45deg); z-index: 3; opacity: 0.7; }
#slide4:checked ~ .items .item2 { transform: translateX(-200px) scale(0.7) rotateY(45deg); z-index: 2; opacity: 0.5; }
#slide4:checked ~ .items .item3 { transform: translateX(-120px) scale(0.85) rotateY(35deg); z-index: 4; opacity: 0.9; }

#slide5:checked ~ .items .item5 { transform: translateX(0) scale(1) rotateY(0deg); z-index: 5; opacity: 1; }
#slide5:checked ~ .items .item1 { transform: translateX(120px) scale(0.85) rotateY(-35deg); z-index: 4; opacity: 0.9; }
#slide5:checked ~ .items .item2 { transform: translateX(200px) scale(0.7) rotateY(-45deg); z-index: 3; opacity: 0.7; }
#slide5:checked ~ .items .item3 { transform: translateX(-200px) scale(0.7) rotateY(45deg); z-index: 2; opacity: 0.5; }
#slide5:checked ~ .items .item4 { transform: translateX(-120px) scale(0.85) rotateY(35deg); z-index: 4; opacity: 0.9; }

.coverflow-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: -5px;
    z-index: 10;
}

.coverflow-dots label {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

#slide1:checked ~ .coverflow-dots label[for="slide1"],
#slide2:checked ~ .coverflow-dots label[for="slide2"] {
    background: #00bfff;
    width: 20px;
    border-radius: 8px;
}

/* ==========================================
   8. LAYANAN PENDAFTARAN SECTION
   ========================================== */
.layanan-section-outer {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    margin-bottom: 20px;
}

.layanan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid #1e293b;
    background: #0b1329;
    padding: 8px 12px;
    border-radius: 6px;
}

.layanan-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #00bfff #ffffff;
}

.layanan-scroll::-webkit-scrollbar {
    height: 6px;
}

.layanan-scroll::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.layanan-scroll::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 3px;
}

.layanan-section-container {
    margin: 30px 0;
    background: #0b1329;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.layanan-section-title {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
}

.layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.layanan-card {
    min-width: 165px;
    max-width: 165px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #cbd5e1;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.layanan-grid .layanan-card {
    min-width: auto;
    max-width: none;
    padding: 12px;
}

.layanan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 191, 255, 0.2);
}

.layanan-card.registered {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.25) !important;
}

.layanan-card.registered .layanan-badge {
    background: #10b981 !important;
    color: #fff !important;
}

.layanan-card.registered h5 {
    color: #065f46 !important;
}

.layanan-card.registered p {
    color: #047857 !important;
}

.layanan-card.registered .icon-wrapper {
    color: #10b981 !important;
}

.layanan-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.layanan-grid .layanan-badge {
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
}

.layanan-card .icon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-left: 22px;
}

.layanan-card .icon-wrapper {
    width: 32px;
    height: 32px;
    margin: 2px auto 4px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1329;
    flex-shrink: 0;
}

.layanan-grid .layanan-card .icon-wrapper {
    margin: 0;
}

.layanan-card .icon-wrapper svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.layanan-grid .layanan-card .icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.layanan-card h5 {
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.layanan-grid .layanan-card h5 {
    font-size: 0.85rem;
    text-align: left;
    white-space: normal;
}

.layanan-card p {
    color: #475569;
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 6px;
    height: 25px;
    overflow: hidden;
}

.layanan-grid .layanan-card p {
    font-size: 0.72rem;
    line-height: 1.3;
    margin-bottom: 12px;
    height: max-content;
    font-weight: normal;
    text-align: left;
}

.btn-daftar-card {
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: #000;
    text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    transition: 0.2s;
}

.layanan-grid .btn-daftar-card {
    font-size: 0.75rem;
    padding: 6px;
}

.btn-daftar-card:hover {
    opacity: 0.9;
}

.btn-registered-card {
    background: #10b981;
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 6px;
    border-radius: 4px;
    display: block;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.btn-registered-card:hover {
    background: #059669;
}

.btn-registered-card .text-hover {
    display: none;
}

.btn-registered-card:hover .text-default {
    display: none;
}

.btn-registered-card:hover .text-hover {
    display: inline;
}

/* ==========================================
   9. DATA TABLES & LINKS
   ========================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid #eaeaea;
}

.data-table th {
    background-color: #151A2D;
    color: #ffffff;
    font-weight: 600;
    width: 35%;
}

.data-table td {
    color: #444444;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: #f8fafc;
}

.file-link {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

/* ==========================================
   10. MODAL POPUP STYLES
   ========================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 15, 30, 0.75);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    position: relative;
    background: #0f172a;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content-wrapper {
    transform: scale(1);
}

.modal-img-container {
    width: 100%;
    max-height: 72vh;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
    cursor: zoom-in;
    user-select: none;
}

.modal-img-container.zoomed {
    cursor: zoom-out;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px;
}

.modal-img-container img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
    pointer-events: none;
}

.modal-img-container.zoomed img {
    transform: scale(2);
    max-width: none;
    max-height: none;
}

.modal-caption {
    padding: 12px 20px;
    background: #0f172a;
    width: 100%;
    color: #fff;
    text-align: center;
    border-top: 1px solid #1e293b;
    z-index: 10;
}

.modal-caption h3 {
    color: #00bfff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.modal-caption p {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.modal-caption .zoom-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal:hover {
    color: #f59e0b;
    background: rgba(0, 0, 0, 0.8);
}

/* ==========================================
   11. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================== */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        overflow: auto;
    }

    .sidebar {
        position: relative;
        width: 100%;
        margin: 0;
        height: auto;
        max-height: 64px;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.menu-active {
        max-height: 600px;
    }

    .sidebar .sidebar-header {
        position: relative;
        padding: 12px;
        border-radius: 16px;
        background: #151A2D;
    }

    .sidebar-header .header-logo img {
        width: 38px;
        height: 38px;
    }

    .sidebar-header .sidebar-toggler,
    .sidebar-nav .nav-item:hover .nav-tooltip {
        display: none;
    }

    .sidebar-header .menu-toggler {
        display: flex;
        height: 35px;
        width: 35px;
    }

    .sidebar-header .menu-toggler span {
        font-size: 1.5rem;
    }

    .sidebar .sidebar-nav {
        padding-bottom: 15px;
    }

    .sidebar .sidebar-nav .nav-list {
        padding: 0 10px;
        transform: translateY(10px);
    }

    .sidebar-nav .nav-link {
        gap: 10px;
        padding: 10px 12px;
        font-size: 0.94rem;
    }

    .sidebar-nav .nav-link .nav-icon {
        font-size: 1.37rem;
    }

    .main-content {
        position: relative;
        left: 0 !important;
        padding: 24px 20px;
        border-radius: 16px;
        height: auto;
        min-height: auto;
        width: 100%;
        max-height: none;
    }

    .main-content h1 {
        font-size: 1.75rem;
    }

    .main-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .login-left {
        padding: 20px 10px;
    }

    .coverflow-container {
        height: 300px;
    }

    .coverflow-item {
        width: 180px;
        height: 240px;
        margin-left: -90px;
    }

    .items {
        height: 250px;
    }

    .btn-top-register {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .confirm-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .stepper {
        padding: 0 10px 20px 10px;
        overflow-x: auto;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .form-content {
        padding: 15px;
    }
}

.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.admin-tab-btn { padding: 10px 20px; border-radius: 8px; background: #e2e8f0; color: #475569; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.admin-tab-btn.active { background: #2563eb; color: #ffffff; }
.card-box { background: #ffffff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow-x: auto; margin-bottom: 30px; }
table.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
table.admin-table th, table.admin-table td { padding: 12px 15px; border-bottom: 1px solid #e2e8f0; text-align: left; }
table.admin-table th { background: #f1f5f9; color: #334155; font-weight: 600; }
table.admin-table tr:hover { background: #f8fafc; }
.btn-action { padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; text-decoration: none; font-weight: 500; display: inline-block; margin-right: 5px; }
.btn-edit { background: #f59e0b; color: #fff; }
.btn-delete { background: #ef4444; color: #fff; }
.form-edit-container { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; color: #334155; }
.form-control { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.95rem; box-sizing: border-box; }
.btn-submit { background: #2563eb; color: #fff; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }


      #step-loading-overlay {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(7, 15, 30, 0.85);
          backdrop-filter: blur(5px);
          z-index: 999999;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          color: #fff;
          opacity: 0;
          visibility: hidden;
          transition: opacity 0.3s ease, visibility 0.3s ease;
      }
      #step-loading-overlay.active {
          opacity: 1;
          visibility: visible;
      }
      .spinner-box {
          width: 50px;
          height: 50px;
          border: 4px solid rgba(255, 255, 255, 0.1);
          border-top-color: #f59e0b;
          border-radius: 50%;
          animation: spin 0.8s linear infinite;
          margin-bottom: 15px;
      }
      @keyframes spin {
          to { transform: rotate(360deg); }
      }

      /* Styling untuk Blok Pembayaran & Animasi Transisi */
        .payment-section-wrapper {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
            transform: translateY(20px);
        }

        .payment-section-wrapper.show-payment {
            max-height: 9999999999999999999999999999999999999999999999999999px;
            opacity: 1;
            transform: translateY(0);
            margin-top: 20px;
        }

        .payment-card {
            background: #fffdf5;
            border: 1px solid #fef3c7;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .payment-grid {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 20px;
            align-items: center;
            text-align: center;
            margin-bottom: 15px;
        }

        @media (max-width: 768px) {
            .payment-grid {
                grid-template-columns: 1fr;
            }
            .payment-divider {
                display: none;
            }
        }

        .payment-divider {
            width: 1px;
            height: 70px;
            border-left: 2px dashed #cbd5e1;
            margin: 0 auto;
        }

        /* Animasi Tombol Submit Muncul dari Samping */
        .final-submit-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }

        #btnFinalSubmitContainer {
            opacity: 0;
            transform: translateX(40px);
            transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        #btnFinalSubmitContainer.slide-in {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        @media (max-width: 768px) {
            .payment-grid {
                grid-template-columns: 1fr !important;
            }
        }