:root {
    --accent: rgb(0, 70, 50);
    --dark-bg: #000000;
    --light-bg: #ffffff;
    --text-dark: #000000;
    --text-light: #f2f2f2;
    --muted: #888;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* transition: background .3s ease, color .3s ease, border-color .3s ease */
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* agar card tidak center secara vertikal */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start !important;
    padding-top: 0px;
}

body {
    font-family: 'Trebuchet MS';
}

/* body.light::before,
body.dark::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    animation: gradientMove 20s ease infinite
} */

body.light::before {
    background: rgb(255, 255, 255);
    background-size: 800% 800%
}

body.dark::before {
    background: #000000;
    background-size: 800% 800%
}

body.light {
    color: black;
    background: white;
}

body.dark {
    color: white;
    background: black;
}


/* ==========================================================
    BACKROUND GLOBAL: MODERN BLOBS (ANTI-GLITCH VERSION)
========================================================== */

/* 1. Atur Body agar bersih dari scrollbar tumpahan */
body.light {
    background-color: #fdf6ff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Potong tumpahan kanan-kiri */
    width: 100vw;
    min-height: 100vh;
}

/* 2. Container Blobs (Kunci utama anti-glitch) */
.blob-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Di bawah semua konten */
    overflow: hidden; /* Potong tumpahan atas-bawah */
    pointer-events: none; /* Biar nggak bisa disentuh */
    /* Akselerasi Hardware */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 3. Pengaturan Blob Individu */
.blob-ungu, .blob-gold {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px); /* Efek blur halus */
    will-change: transform;
    opacity: 0.8;
}

/* BLOB UNGU (Kanan Atas) */
.blob-ungu {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #e0c3fc 0%, #8ec5fc 100%);
    top: -150px;
    right: -100px;
}

/* BLOB GOLD/PINK (Kiri Bawah) */
.blob-gold {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #fbda61 0%, #ff5acd 100%);
    bottom: -200px;
    left: -150px;
}


/* ======================================================================= */

.wrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative
}

.card {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    position: relative;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(20px);
    /* box-shadow: 0 18px 50px rgba(0, 0, 0, .35) */
}

body.dark .card {
    background: rgba(8, 8, 8, .48)
}

/* .card{overflow-y:auto;overflow-x:hidden}.invisible-scrollbar{scrollbar-width:none!important;-ms-overflow-style:none!important}.invisible-scrollbar::-webkit-scrollbar{display:none!important} */

.panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1;
}

.panel.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 100; /* Tambahkan ini agar panel yang aktif selalu di depan */
}

.panel-inner {
    width: 480px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(6px);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, .18); */
}

body.dark .panel-inner {
    background: rgba(255, 255, 255, .03)
}

#panelLogin .panel-inner {
    width: 420px;
    max-width: 92%
}

#loginWrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center
}

#panelRegister {
    position: absolute;
    inset: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    /* beri nafas */
    /* min-height: 140vh; */
}

#panelRegister .panel-inner {
    width: 960px;
    margin-top: 30px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 18px;
    overflow: visible;
    /* jangan auto, biarkan parent yang scroll */
}

@media(max-width: 1100px) {
    #panelRegister .panel-inner {
        width: 100%;
    }
}

/* PEMBAGIAN GRID KIRI DAN KANAN PANEL REGISTER */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Mode HP otomatis jadi 1 kolom */
@media (max-width: 820px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.input-group {
    position: relative;
    margin-bottom: 12px
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 12px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .4);
    color: inherit;
    outline: none
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, .25)
}

.input-group label {
    position: absolute;
    left: 14px;
    top: 8px;
    font-size: 13px;
    color: var(--muted);
    pointer-events: none;
    transition: .25s
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group select:focus+label,
.input-group select:not([value=""])+label {
    top: -10px;
    left: 10px;
    background: rgba(35, 35, 35, .4);
    padding: 0 4px;
    border-radius: 4px;
    font-size: 9px;
    color: #fff
}

.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    position: relative;
    overflow: hidden
}

.btn:disabled {
    background: #666
}

.btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .6);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0
}

.btn.ripple::after {
    animation: ripple .6s ease-out
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: .7
    }

    100% {
        transform: scale(20);
        opacity: 0
    }
}

#loaderOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99900;
    backdrop-filter: blur(4px)
}

.dots {
    display: flex;
    gap: 8px
}

.dots div {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: bounce .6s infinite alternate
}

.dots div:nth-child(2) {
    animation-delay: .2s
}

.dots div:nth-child(3) {
    animation-delay: .4s
}

@keyframes bounce {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-12px)
    }
}

.pw-wrapper {
    position: relative
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 15px;
    opacity: .9;
    user-select: none
}

.pw-strength {
    height: 6px;
    border-radius: 4px;
    margin-top: 6px;
    background: #ddd;
    overflow: hidden
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    transition: width .3s
}

.popup-form {
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px
}

.popup-form .formRow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.popup-form .formRow label {
    width: 160px;
    flex: 0 0 160px;
    font-weight: 700;
    font-size: .95rem;
    color: inherit
}

.popup-form .formRow input,
.popup-form .formRow select,
.popup-form .formRow textarea {
    flex: 1 1 auto;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .03);
    outline: none;
    font-size: .95rem;
    color: inherit
}

.popup-form .popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px
}

.popup-form .scroll {
    max-height: 68vh;
    overflow-y: auto;
    padding-right: 6px
}

#popupKotak {
    background: #fff;
    color: #222;
    border-radius: 18px;
    padding: 20px;
    width: 95%;
    max-width: 780px;
    /* box-shadow: 0 10px 35px rgba(0, 0, 0, .25) */
}

body.dark #popupKotak {
    background: #1e1f22;
    color: #f2f2f2
}

.dashboard-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    /* z-index: 999999; */
    position: relative;
}

.panel-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap
}

.dbox {
    width: 360px;
    padding: 12px;
    background: rgba(255, 255, 255, .06);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}


body.dark .dbox {
    background: rgba(255, 255, 255, .04);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 255, 165, .10), inset 0 0 8px rgba(0, 255, 165, .08); */
}

#imagePreviewOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    cursor: pointer
}

#imagePreviewOverlay img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5)
}

@media(max-width:820px) {
    .panel-inner {
        width: 92%;
        padding: 14px
    }

    .dbox {
        width: 100%
    }
}

#topRightMenu .miniBtn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: .25s;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, .15) */
}

.dark-mode #topRightMenu .miniBtn {
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .15)
}

#topRightMenu .miniBtn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .25)
}

#topRightMenu .miniBtn:active {
    transform: scale(.92);
}

body.light #popupBox {
    max-width: 600px !important;
}

body.dark #popupBox {
    max-width: 600px !important;
}

body.dark #popupBox {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--text-light) !important;
}

/* buat input/textarea di popupKotak selalu penuh dan rapi */
#popupBox input[type="text"],
#popupBox input[type="password"],
#popupBox input[type="email"],
#popupBox textarea,
#popupBox select {
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: inherit;
    color: inherit;
}

/* TOMBOL TEMA */
#topRightMenu {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999999
}

#darkVariantBtn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 17px;
    transition: .25s
}

body.dark #darkVariantBtn {
    background: rgba(0, 0, 0, .25);
    /* border: 1px solid rgba(255, 255, 255, .15) */
}

#darkVariantBtn:hover {
    transform: translateY(-2px) scale(1.05);
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, .25) */
}

#darkVariantPanel {
    position: absolute;
    top: 58px;
    right: 10px;
    width: 220px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, .25); */
    display: none;
    flex-direction: column;
    gap: 8px;
    animation: slideDown .25s ease;
    max-height: 260px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 6px !important;
    scrollbar-width: thin
}

#darkVariantPanel::-webkit-scrollbar {
    width: 6px
}

#darkVariantPanel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .2);
    border-radius: 8px
}

#darkVariantPanel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .35);
    border-radius: 8px
}

body.dark #darkVariantPanel {
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .12)
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.variantOption {
    width: 100%;
    padding: 8px 8px !important;
    border-radius: 5px !important;
    font-size: .68rem !important;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(3px);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .22);
    text-align: center;
    font-weight: 600;
    margin: 2px 0 !important;
    overflow: visible !important
}

.variantOption:hover {
    background: rgba(255, 255, 255, .35)
}

body.dark::before {
    background: var(--dark-gradient, linear-gradient(270deg, #0c0c0c, #1a1a1a, #333, #444));
    background-size: 800% 800%;
    animation: gradientMove 20s ease infinite
}

.preview-frame {
    margin-top: 12px;
    text-align: center
}

.preview-img {
    width: 100%;
    max-width: 180px;
    border-radius: 10px;
    /* box-shadow: 0 4px 14px rgba(0, 0, 0, .35); */
    transition: opacity .4s ease;
    opacity: 1
}

.grid-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px
}

.grid-left {
    flex: 1
}

.grid-preview {
    width: 170px;
    min-width: 170px;
    display: flex;
    justify-content: center;
    align-items: start
}

.preview-img {
    width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 5px 14px rgba(0, 0, 0, .35); */
    transition: opacity .4s ease;
    opacity: 1
}

@media(max-width:820px) {
    .grid-wrapper {
        flex-direction: column;
        align-items: center
    }

    .grid-preview {
        width: 70%;
        min-width: unset
    }
}

/* ANIMASI APA ITU LENS BOX */
.btnLensInfo-bounce {
    animation: btnInfoBounce 3s ease-in-out infinite;
}

@keyframes btnInfoBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

.previewBox {
    width: auto;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    cursor: pointer;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.previewBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* default: hidden kalau kosong */
    pointer-events: none;
}

/* MENGATUR WARNA DISBLED DI EDIT PROFIL */
input:disabled {
    background: #444 !important;
    color: #bbb !important;
    opacity: 1 !important;
}

/* Popup Overlay Baru */
.popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

/* Kotak di tengah */
.popupBox {
    background: rgba(254, 254, 254, 0.90);
    padding: 20px;
    border-radius: 15px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: popupZoom 0.2s ease;
}

@keyframes popupZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* TOMBOL INFO */
.btnClosePopup {
    margin-top: 15px;
    padding: 8px 20px;
    background: #333;
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.btnInfoLensBox {
    color: #333;
}

.dark .btnInfoLensBox {
    color: #fff;
}

#neonPopup {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-family: 'Trebuchet MS';
  opacity: 0;
  transition: all .35s ease;
  z-index: 9999999;
  backdrop-filter: blur(10px);
}

/* WARNA */
.neon-success { background:#005f3a; color:#003320; }
.neon-info    { background:#004bb3; color:#002833; }
.neon-warning { background:#797500; color:#332200; }
.neon-error   { background:#8f0000; color:#330000; }


/* ================================== */
/* PANEL PEMILIHAN DEVICE*/
.device-chooser-container { text-align: center; animation: fadeInUp 0.8s ease; }
.modern-title { font-family: 'Trebuchet MS'; margin-bottom: 40px; font-weight: 800; letter-spacing: -1px; }

.device-options { display: flex; gap: 1px; justify-content: center; }
.device-box { 
    cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; flex-direction: column; align-items: center;
    width: 160px;
}

.device-box:hover { transform: translateY(-5px); }
.device-box span { font-weight: 900; margin-top: 15px; }
.device-box p { font-size: 12px; opacity: 0.6; }


/* --- BENTUK TABLET (LANDSCAPE) --- */
.tablet {
    width: 110px;
    height: 75px;
    margin-bottom: 5px;
    background: #333;
    border-radius: 10px;
    border: 4px solid #1a1a1a;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Layar Tablet */
.tablet::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: #222;
    border-radius: 4px;
}

/* Tombol Home Tablet */
.tablet::before {
    content: "";
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 15px;
    background: #ffffff;
    border-radius: 2px 0 0 2px;
}

/* --- BENTUK SMARTPHONE (PORTRAIT) --- */
.smartphone {
    width: 55px;
    height: 100px;
    background: #333; /* Warna Frame */
    border-radius: 12px;
    border: 3px solid #1a1a1a;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Layar HP */
.smartphone::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #222;
    border-radius: 8px;
}

/* Lubang Speaker HP */
.smartphone::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: #ffffff;
    border-radius: 5px;
    z-index: 2;
}

/* --- EFEK HOVER --- */
.device-icon-wrapper {
    height: 120px; 
    display: flex;
    align-items: flex-end; /* Paksa icon nempel ke DASAR wadah */
    justify-content: center;
    width: 100%;
    margin-bottom: 15px; /* Jarak antara icon ke teks label */
}

.device-box:hover .tablet, 
.device-box:hover .smartphone {
    border-color: rgb(148, 148, 0); /* Warna frame berubah ikut tema pas di-hover */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(116, 116, 116, 0.4);
}

.device-box span { 
    display: block;
    font-weight: 900;
    margin-top: 0;    
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.2;
}


/* ===============================
   PANEL LANDING — MODERN GRID
   =============================== */
#panelLanding {
  background: transparent;
}

#panelLanding .landing-panel {
  width: 100%;
  max-width: 560px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}

.landing-item {
  padding: 22px 16px;
  border-radius: 0px;
  cursor: pointer;
  transition: .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  color: #111;
  border-radius: 20px;
}

body.dark .landing-item {
  color: #fff;
}

.landing-item:hover {
  /* background: rgba(0,0,0,.05); */
  transform: translateY(-6px);
}

body.light .landing-item:hover {
  background: rgb(255, 255, 255);
}

body.dark .landing-item:hover {
  box-shadow: 0 15px 30px rgba(116, 116, 116, 0.4);
}


/* ICON LANDING */
.landing-item svg {
  width: 64px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.landing-item span {
  font-size: 12px;
  font-weight: 900;
}


/* ===============================
   RESPONSIVE — DEVICE & LANDING
   =============================== */

/* PANEL DEVICE */
@media (max-width: 820px) {
  #panelDevice .device-panel {
    /* flex-direction: column; */
    gap: 0px;
  }

  .device-option {
    width: 100%;
    max-width: 260px;
    height: 140px;
  }
}

/* PANEL LANDING */
@media (max-width: 820px) {
  #panelLanding .landing-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  #panelLanding .landing-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ============================ */
/* RAPATKAN DEVICE OPTION */
.device-option {
  gap: 0px;
  padding: 0px 0px;
}

/* RAPATKAN LANDING ITEM */
.landing-item {
  padding: 16px 10px;
  gap: 2px;
}

/* ===============================
   PANEL ANIMATION — FADE UP
   =============================== */

@keyframes panelFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel.active .panel-inner,
.panel.active .device-panel,
.panel.active .landing-panel,
.panel.active .dashboard-container,
.panel.active .auth-card,
.panel.active .reg-grid {
  animation: panelFadeUp .45s ease-out both;
}

/* ===============================
   LANDING LOGO — INLINE
   =============================== */

#panelLanding .landing-panel {
  align-content: start;
}

/* LOGO */
.landing-logo {
  grid-column: 1 / -1; /* full row di grid */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.landing-logo img {
  width: 170px;
  max-width: 70%;
  height: auto;
}

/* TAGLINE OPSIONAL */
.landing-tagline {
  font-size: 12px;
  font-weight: 900;
  opacity: .7;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .landing-logo img {
    width: 135px;
  }
}


/* ================================================================= */
/* MODUL AUTH - FINAL REVISION (FLAT, COMPACT, DARK MODE SUPPORT) */
/* ================================================================= */

/* 1. GLOBAL FONT & RESET */
.auth-style, .auth-style * {
    font-family: 'Trebuchet MS', sans-serif !important;
}

.auth-overlay {
    background: transparent !important;
    padding: 0 !important;
}

/* Card Transparan & Flat (Default Light) */
.auth-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 20px !important;
    animation: none !important;
}

/* Batas Lebar */
.auth-card.login-size { max-width: 380px; margin: auto; }
.auth-card.register-size { 
    max-width: 900px; 
    margin: auto; 
    padding-top: 40px !important; 
    padding-bottom: 60px !important; 
}

/* 2. TYPOGRAPHY & ELEMENTS (LIGHT MODE DEFAULT) */
.auth-style h2 {
    font-weight: 800;
    color: #000;
    margin-bottom: 5px;
    font-size: 1.6rem;
}

.auth-style .sub-text {
    color: #555;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-style label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Compact */
.auth-style .input-wrapper { margin-bottom: 12px; }

.auth-style input, 
.auth-style select {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    color: #000;
    outline: none;
    transition: all 0.2s;
}

.auth-style input:focus,
.auth-style select:focus {
    border-color: var(--accent, #0c8a39);
    box-shadow: 0 0 0 2px rgba(12, 138, 57, 0.1);
}

/* Tombol Primary */
.auth-style .btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent, #0c8a39);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}
.auth-style .btn-primary:hover { background: #0a7a32; }

/* Link Footer */
.auth-style .footer-action {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}
.auth-style .footer-action a {
    color: var(--accent, #0c8a39);
    text-decoration: none;
    font-weight: 700;
}

/* 3. LAYOUT REGISTER (GRID & SIDE-BY-SIDE CAMERA) */
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Info Box */
.info-box {
    background: #f4f4f4;
    border-left: 3px solid var(--accent, #0c8a39);
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    margin-bottom: 15px;
}

/* Camera Grid (Side by Side Fix) */
.cam-btn-grid {
    display: flex;
    gap: 15px; /* Jarak antar tombol kiri kanan */
    margin-top: 5px;
}

.cam-btn-item {
    flex: 1; /* Bagi rata lebar 50:50 */
    display: flex;
    flex-direction: column;
}

.btn-cam-trigger {
    background: #fff;
    border: 1px dashed #999;
    color: #555;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}
.btn-cam-trigger:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f0fff4;
}

/* Preview Image di bawah tombol */
.cam-preview-img {
    width: 100%; 
    height: 90px; 
    object-fit: cover; 
    border-radius: 6px; 
    margin-top: 8px; 
    border: 1px solid #ddd;
    display: none; /* Default hidden */
}


/* ========================================================= */
/* 4. DARK MODE OVERRIDES (OTOMATIS AKTIF SAAT BODY.DARK)    */
/* ========================================================= */

body.dark .auth-style h2 { color: #fff; }
body.dark .auth-style .sub-text { color: #bbb; }
body.dark .auth-style label { color: #aaa; }

/* Input Dark */
body.dark .auth-style input, 
body.dark .auth-style select {
    background: rgba(255,255,255,0.08); /* Gelap transparan */
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}
body.dark .auth-style input:focus, 
body.dark .auth-style select:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

/* Info Box Dark */
body.dark .info-box {
    background: rgba(255,255,255,0.1);
    color: #ddd;
}

/* Camera Button Dark */
body.dark .btn-cam-trigger {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
    color: #ccc;
}
body.dark .btn-cam-trigger:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* Footer Link Dark */
body.dark .auth-style .footer-action { color: #888; }
body.dark .auth-style .footer-action a { color: #69f0ae; } /* Hijau terang */

/* Preview Image Border Dark */
body.dark .cam-preview-img { border: 1px solid rgba(255,255,255,0.2); }


/* ========================================================= */
/* RESPONSIVE (MOBILE) */
@media (max-width: 820px) {
    .reg-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Di HP, kasih sedikit background semi-transparan biar teks terbaca */
    .auth-card { 
        background: rgba(255,255,255,0.9) !important; 
        border-radius: 12px !important;
        margin: 10px;
    }
    body.dark .auth-card {
        background: rgba(0,0,0,0.6) !important;
    }
}

/* ======================================================== */
/* FIX BUG COMBOBOX (DARK MODE)                             */
/* ======================================================== */
body.dark .auth-style select option {
    background-color: #1a1a1a; /* Background pilihan jadi gelap */
    color: #ffffff;            /* Teks tetap putih */
}

/* Opsional: Biar pas hover di pilihan warnanya enak */
body.dark .auth-style select option:checked,
body.dark .auth-style select option:hover {
    background-color: var(--accent) !important;
}


/* ======================================= */
/* Animation */
@keyframes authPopUp {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive Register */
@media (max-width: 820px) {
    .reg-grid { grid-template-columns: 1fr; gap: 20px; }
    .auth-card { padding: 25px; }
}

/* ============================================================================================== */
/* =========================
   DASHBOARD SLIDER (FINAL)
   ========================= */

#panelDashboard {
    width: auto; 
    margin: 0 auto;
    overflow: hidden;
}


/* viewport slider */
/* #panelDashboard .dashboard-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
} */

/* track */
/* #panelDashboard .panel-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 2px;
    width: max-content;
} */

/* card */
/* #panelDashboard .dbox {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
} */

/* tablet */


/* hide scrollbar (opsional, premium look) */
#panelDashboard .dashboard-slider::-webkit-scrollbar {
    display: none;
}
#panelDashboard .dashboard-slider {
    scrollbar-width: none;
}


/* ============================================ */
#panelDashboard .grid-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
}

#panelDashboard .grid-left {
    flex: 1 1 auto;
    min-width: 0;
}

#panelDashboard .grid-preview {
    flex: 0 0 100px; /* desktop akan override via container */
    display: flex;
    align-items: center;
    justify-content: center;
}

#panelDashboard .grid-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}


@media (max-width: 600px) {

    /* dashboard full width */
    #panelDashboard {
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }

    /* grid tetap horizontal */
    #panelDashboard .grid-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center;
    }

    /* teks kiri dipadatkan */
    #panelDashboard .grid-left {
        flex: 1 1 auto;
        font-size: 16px;
    }

    /* preview tetap di kanan, diperkecil */
    #panelDashboard .grid-preview {
        flex: 0 0 160px;
    }

    #panelDashboard .grid-preview img {
        max-height: 340px;
    }
}


/* =========================
   DASHBOARD DOT INDICATOR
   ========================= */

.dashboard-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.dashboard-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all .25s ease;
}

body.light .dashboard-dots span {
    background: rgba(0,0,0,0.25);
}

.dashboard-dots span.active {
    width: 18px;
    border-radius: 10px;
    background: var(--accent);
}


/* =========================================
   DASHBOARD — COMPACT MODE (PORTRAIT / HP)
   ========================================= */
@media (max-width: 460px) {

  /* Judul GRID (4 GRID / 6 GRID / 8 GRID) */
  #panelDashboard .dbox h3 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 4px;
  }

  /* Label "Jumlah Sesi" & "Total Harga" */
  #panelDashboard .dbox label {
    font-size: 3.0rem;
    margin-bottom: 4px;
  }

  /* Angka Total Harga */
  #panelDashboard .dbox div[style*="font-size:3.25rem"] {
    font-size: 3.0rem !important;
  }

  /* Range Slider */
  #panelDashboard input[type="range"] {
    margin-top: 4px;
    margin-bottom: 6px;
  }

  /* Select Mode Bayar */
  #panelDashboard select {
    padding: 8px;
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  /* Tombol Bayar */
  #panelDashboard .btn {
    padding: 9px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  /* Jarak antar section dipadatkan */
  #panelDashboard .grid-left > div {
    margin: 6px 0 !important;
  }
}


/* =========================================
   DASHBOARD — EXTRA SIDE SPACE (FOR ARROWS)
   ========================================= */
@media (max-width: 460px) {

  #panelDashboard .dashboard-container {
    padding-left: 36px;
    padding-right: 36px;
  }

}


/* =========================================
   DASHBOARD — ULTRA COMPACT CONTENT (HP)
   ========================================= */
@media (max-width: 460px) {

  /* Card */
  #panelDashboard .dbox {
    padding: 10px;
    border-radius: 12px;
  }

  /* Judul GRID */
  #panelDashboard .dbox h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  /* Label */
  #panelDashboard .dbox label {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  /* Total Harga */
  #panelDashboard .dbox div[style*="font-size:1.25rem"] {
    font-size: 0.95rem !important;
  }

  /* Select */
  #panelDashboard select {
    padding: 7px;
    font-size: 0.75rem;
  }

  /* Button */
  #panelDashboard .btn {
    padding: 8px;
    font-size: 0.75rem;
  }

  /* Vertical spacing super rapat */
  #panelDashboard .grid-left > div {
    margin: 4px 0 !important;
  }
}


/* =========================================
   DASHBOARD SLIDER ARROWS (SAFE & SCOPED)
   ========================================= */

#panelDashboard .dashboard-container {
  position: relative; /* referensi panah */
}

/* Base Arrow */
#panelDashboard .dash-arrow {
  position: absolute;          /* 🔑 PENTING */
  top: 65%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: inherit;

  transition: transform .2s ease, background .2s ease, opacity .2s;
}

body.dark #panelDashboard .dash-arrow {
  background: rgba(0,0,0,0.35);
}

/* Hover */
#panelDashboard .dash-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  /* background: #2e2e2e; */
}

/* Position — keluar dari card */
#panelDashboard .dash-arrow.left {
  left: -16px;
}

#panelDashboard .dash-arrow.right {
  right: -16px;
}

/* Disabled */
#panelDashboard .dash-arrow[disabled] {
  opacity: .3;
  pointer-events: none;
}

/* MEMPERHALUS HIDE PANAH KIRI DAN KANAN SLIDE PAKET */
/* #panelDashboard .dash-arrow {
  transition: opacity .25s ease, transform .2s ease;
} */




/* =========================================
   DASHBOARD COVERFLOW - ANTI GHOSTING MODE
   ========================================= */

#panelDashboard .dashboard-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px; /* Tambah kedalaman 3D */
}

#panelDashboard .coverflow-row {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

#panelDashboard .coverflow-card {
    position: absolute;
    width: 370px;  /*UBAH UKURAN KOTAK*/
    height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(50px);

    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    flex: none !important;
    opacity: 1;

    border: 1px solid rgba(228, 228, 228, 0.564);
    color: #333;
}


/* 1. Judul/Header (PB4, PB6, PB8) */
#panelDashboard .coverflow-card h3, 
#panelDashboard .coverflow-card .card-title {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

/* 2. ELEMEN TENGAH (Gambar atau Ikon) 
      Ini "Biang Kerok" yang akan mendorong konten lain */
#panelDashboard .coverflow-card img, 
#panelDashboard .coverflow-card i,
#panelDashboard .coverflow-card .card-icon {
    margin: auto 0;         /* 🎯 SAKTI: Ini akan mendorong judul ke atas dan tombol ke bawah */
    max-height: 300px;      /* Sesuaikan agar gambar tidak terlalu rakus tempat */
    width: auto;
    object-fit: contain;
}

/* 3. Deskripsi atau Harga */
#panelDashboard .coverflow-card p,
#panelDashboard .coverflow-card .card-info {
    margin-bottom: 15px;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

/* 4. Tombol Pilih (Footer) */
#panelDashboard .coverflow-card button,
#panelDashboard .coverflow-card .btn-pilih {
    width: 100%;
    padding: 15px;
    margin-top: 10px;      /* Jarak sedikit dari teks di atasnya */
    border-radius: 12px;
    flex: 0 0 auto;        /* Pastikan tombol tidak gepeng */
}


/* Kalau Om pakai Mode Dark, sesuaikan warnanya di sini: */
body.dark #panelDashboard .coverflow-card {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}


/* 3. Atur Isi di Dalamnya (Opsional: Agar lebih rapi) */
/* #panelDashboard .coverflow-card .card-header { */
    /* flex: 0 0 auto; */
/* } */

#panelDashboard .coverflow-card .card-body {
    flex: 1 1 auto; /* Body (isi tengah) akan mengambil sisa ruang yang kosong */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Isi tengah selalu di tengah-tengah tinggi kartu */
    margin: 20px 0;
}

#panelDashboard .coverflow-card .card-footer {
    flex: 0 0 auto; /* Tombol/Footer tetap di bawah */
}


/* 🎯 POSISI TENGAH (FOKUS) */
#panelDashboard .coverflow-card.slide-active {
    transform: translateX(0) scale(1) translateZ(150px); /* Maju ke depan */
    z-index: 10;
    opacity: 1;
    filter: blur(0px);
}

/* ⬅️ POSISI KIRI (PREV) */
#panelDashboard .coverflow-card.slide-prev {
    transform: translateX(-55%) scale(0.8) rotateY(25deg);
    z-index: 5;
    opacity: 0.7;
    filter: blur(1px);
}

/* ⬅️⬅️ POSISI JAUH DI KIRI (FAR PREV) */
#panelDashboard .coverflow-card.slide-far-prev {
    transform: translateX(-90%) scale(0.6) rotateY(35deg);
    z-index: 1;
    opacity: 0.3;
    filter: blur(2px);
}

/* ➡️ POSISI KANAN (NEXT) */
#panelDashboard .coverflow-card.slide-next {
    transform: translateX(55%) scale(0.8) rotateY(-25deg);
    z-index: 5;
    opacity: 0.7;
    filter: blur(1px);
}

/* ➡️➡️ POSISI JAUH DI KANAN (FAR NEXT) */
#panelDashboard .coverflow-card.slide-far-next {
    transform: translateX(90%) scale(0.6) rotateY(-35deg);
    z-index: 1;
    opacity: 0.3;
    filter: blur(2px);
}



/* MEMBUAT DESAIN DATA TRANSAKSI */
/* Efek Tabel Laporan */
.row-trx { border-bottom: 1px solid #334155; transition: 0.3s; cursor: pointer; }
.row-trx:hover { background: #1e293b; }
.row-trx.baru { background: rgba(42, 181, 23, 0.799); border-left: 4px solid #00ffcc; }
.row-trx.baru:hover { background: rgba(138, 136, 12, 0.952); }
.link-trx { color: #3b82f6; text-decoration: none; font-weight: bold; padding: 4px 8px; border-radius: 4px; border: 1px solid #3b82f6; font-size: 12px;}
.link-trx:hover { background: #3b82f6; color: white; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }