@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --primary: #615fff;
    --primary-dark: #4f46e5;
    --primary-soft: #eeedff;
    --secondary: #8b5cf6;
    --success: #13b77a;
    --danger: #ef5b65;
    --info: #3b82f6;
    --warning: #f59e0b;
    --background: #f3f5fb;
    --surface: #ffffff;
    --surface-soft: #f8f9fd;
    --border: #e6e8f0;
    --text: #171a2b;
    --text-soft: #62697a;
    --text-muted: #9a9fb0;
    --shadow: 0 16px 45px rgba(43, 47, 74, .08);
    --shadow-soft: 0 8px 24px rgba(43, 47, 74, .055);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 17px;
    --radius-sm: 13px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    background: #e9ecf4;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: #e9ecf4;
}

body,
button,
input,
select,
textarea {
    font-family: "Manrope", sans-serif;
}

button,
input,
select,
textarea {
    font-size: 16px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 95% 0%, rgba(99, 102, 241, .15), transparent 28%),
        radial-gradient(circle at 0% 18%, rgba(139, 92, 246, .08), transparent 24%),
        var(--background);
}

.app-shell.with-nav {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
}

.app-header {
    padding:
        max(22px, env(safe-area-inset-top))
        20px
        20px;
}

.header-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-content {
    min-width: 0;
    flex: 1;
}

.header-eyebrow {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}

.header-title {
    margin: 0;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-back,
.header-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
}

.header-back {
    padding: 12px;
    border: 1px solid var(--border);
    color: #51586a;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-soft);
}

.header-avatar {
    border: 3px solid rgba(255, 255, 255, .92);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), transparent),
        linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 26px rgba(97, 95, 255, .28);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.app-main {
    width: 100%;
    padding: 0 20px 30px;
}

.app-card {
    border: 1px solid rgba(230, 232, 240, .95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.section-heading {
    margin: 29px 0 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.25px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 17px;
    padding: 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.alert-error {
    border: 1px solid #ffd5d8;
    color: #bb3240;
    background: #fff3f4;
}

.alert-success {
    border: 1px solid #b9edd7;
    color: #087a55;
    background: #effbf6;
}

.alert-info {
    border: 1px solid #cae0ff;
    color: #2667bd;
    background: #f2f7ff;
}

.form-group {
    margin-bottom: 17px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #3f4555;
    font-size: 12px;
    font-weight: 800;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #9ba0b0;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text);
    background: var(--surface-soft);
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.form-input::placeholder {
    color: #afb3c1;
    font-weight: 500;
}

.form-input:focus {
    border-color: #8381ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(97, 95, 255, .1);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    color: #747b8d;
    background: transparent;
    cursor: pointer;
}

.password-toggle:active {
    background: #eceef4;
}

.primary-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .14), transparent),
        linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 30px rgba(97, 95, 255, .28);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.primary-button:active {
    transform: scale(.985);
}

.primary-button:disabled {
    opacity: .68;
    cursor: not-allowed;
}

.app-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding:
        10px
        18px
        max(11px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(226, 229, 238, .9);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 -10px 35px rgba(34, 40, 70, .06);
    backdrop-filter: blur(20px);
}

.bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.bottom-nav-item {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 7px 5px;
    color: #a0a5b5;
    font-size: 9px;
    font-weight: 800;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    position: absolute;
    top: -10px;
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--primary);
    content: "";
}

.bottom-nav-icon {
    width: 22px;
    height: 22px;
}

.empty-state {
    padding: 42px 20px;
    border: 1px dashed #d4d7e1;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, .75);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.login-page {
    min-height: 100vh;
    padding:
        max(22px, env(safe-area-inset-top))
        0
        max(24px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

.login-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 43px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.login-brand-icon {
    width: 43px;
    height: 43px;
    padding: 11px;
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), transparent),
        linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 13px 25px rgba(97, 95, 255, .27);
}

.login-brand-text {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #62697a;
    background: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-soft);
    font-size: 10px;
    font-weight: 800;
}

.secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(19, 183, 122, .13);
}

.login-hero {
    margin-bottom: 28px;
}

.login-chip {
    width: fit-content;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #5e55d8;
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}

.login-title {
    max-width: 370px;
    margin: 0 0 11px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(32px, 9vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.6px;
}

.login-description {
    max-width: 360px;
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.login-card {
    padding: 23px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 3px 0 23px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #53596a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.remember-label input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
}

.remember-duration {
    padding: 6px 9px;
    border-radius: 999px;
    color: #665bd3;
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 800;
}

.login-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.7;
}

.login-footer strong {
    color: var(--text-soft);
    font-weight: 800;
}

.account-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 29px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .24), transparent 33%),
        radial-gradient(circle at 15% 120%, rgba(255, 255, 255, .12), transparent 35%),
        linear-gradient(135deg, #615fff, #8058ee);
    box-shadow: 0 20px 45px rgba(93, 76, 214, .28);
}

.account-card::after {
    position: absolute;
    right: -32px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border: 23px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    content: "";
}

.account-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 27px;
}

.account-label {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 700;
}

.account-username {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.account-level {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.account-info {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.account-key {
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    font-weight: 600;
}

.account-value {
    overflow: hidden;
    max-width: 68%;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.dashboard-menu {
    min-height: 143px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-soft);
    transition: transform .15s ease;
}

.dashboard-menu:active {
    transform: scale(.98);
}

.dashboard-menu-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 17px;
    padding: 11px;
    border-radius: 15px;
    color: var(--primary);
    background: var(--primary-soft);
}

.dashboard-menu-title {
    margin-bottom: 5px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-menu-description {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.55;
}

.session-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-soft);
}

.session-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    padding: 11px;
    border-radius: 15px;
    color: var(--success);
    background: #e9f9f2;
}

.session-title {
    margin-bottom: 3px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.session-description {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 21px;
    border-radius: 25px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .21), transparent 34%),
        linear-gradient(135deg, #615fff, #8058ee);
    box-shadow: 0 17px 36px rgba(93, 76, 214, .25);
}

.summary-label {
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 700;
}

.summary-number {
    margin-top: 4px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.summary-page {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    font-size: 9px;
    font-weight: 800;
}

.history-list {
    display: grid;
    gap: 12px;
}

.history-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-soft);
}

.history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.history-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.history-message {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.history-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-status-berhasil {
    color: #087a55;
    background: #eaf9f2;
}

.history-status-gagal {
    color: #c83c49;
    background: #fff0f1;
}

.history-status-info {
    color: #2867be;
    background: #edf5ff;
}

.history-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #eff0f5;
}

.meta-label {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.meta-value {
    overflow: hidden;
    color: #51586a;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 21px;
}

.pagination-link {
    min-width: 41px;
    height: 41px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #5d6475;
    background: #fff;
    box-shadow: var(--shadow-soft);
    font-size: 11px;
    font-weight: 800;
}

.pagination-link.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.pagination-link.disabled {
    opacity: .4;
    pointer-events: none;
}

@media (min-width: 700px) {
    body {
        padding: 24px;
        display: grid;
        place-items: center;
    }

    .app-shell {
        min-height: calc(100vh - 48px);
        border: 1px solid #dde0e9;
        border-radius: 36px;
        box-shadow: 0 32px 90px rgba(35, 40, 69, .15);
    }

    .app-bottom-nav {
        bottom: 24px;
        border: 1px solid #dde0e9;
        border-radius: 0 0 36px 36px;
    }
}