/* Lieco Sport Week redesign layer
   Fokus: mobile-first, responsive, dan tetap menjaga class/ID existing untuk JS lama. */

:root {
    --lsw-dark: #080c1e;
    --lsw-navy: #0e1630;
    --lsw-surface: #f5f7fc;
    --lsw-card: #ffffff;
    --lsw-text: #20283a;
    --lsw-muted: #687287;
    --lsw-line: #e5eaf3;
    --lsw-blue: #2e8bff;
    --lsw-cyan: #18c9e6;
    --lsw-pink: #f02b83;
    --lsw-purple: #8d49d8;
    --lsw-orange: #ff8b18;
    --lsw-green: #22c77a;
    --lsw-red: #ff496d;
    --lsw-gradient: linear-gradient(120deg, var(--lsw-pink), var(--lsw-purple) 48%, var(--lsw-blue));
    --lsw-action-gradient: linear-gradient(110deg, var(--lsw-cyan), var(--lsw-blue) 46%, var(--lsw-pink));
    --lsw-radius-lg: 22px;
    --lsw-radius-md: 16px;
    --lsw-shadow: 0 12px 28px rgba(28, 39, 68, .10);
}

html {
    min-height: 100%;
    background: var(--lsw-surface);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.lsw-app-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(46, 139, 255, .12), transparent 30%),
        linear-gradient(180deg, #f8faff, #eef3fa 48%, #f8faff);
    color: var(--lsw-text);
    font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.appHeader.lsw-app-header {
    position: fixed;
    inset: 0 0 auto;
    width: min(100%, 430px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: calc(78px + env(safe-area-inset-top, 0px));
    padding: calc(13px + env(safe-area-inset-top, 0px)) 18px 11px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    color: #fff;
    background:
        radial-gradient(circle at 6% 42%, rgba(255, 139, 24, .55), transparent 21%),
        var(--lsw-gradient);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 22px rgba(32, 40, 58, .16);
    z-index: 1000;
}

.appHeader.lsw-app-header .left,
.appHeader.lsw-app-header .right,
.appHeader.lsw-app-header .pageTitle {
    display: flex;
    align-items: center;
}

.appHeader.lsw-app-header .left {
    justify-content: flex-start;
    margin: 0;
}

.appHeader.lsw-app-header .pageTitle {
    justify-content: center;
    text-align: center;
}

.lsw-header-logo {
    width: 64px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18));
}

.lsw-header-title {
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 4.6vw, 18px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.appHeader.lsw-app-header .right {
    justify-content: flex-end;
}

.appHeader.lsw-app-header .headerButton {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.appHeader.lsw-app-header .headerButton::before {
    content: none;
}

.appHeader.lsw-app-header .imaged {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .65);
}

.appHeader.lsw-app-header .dropdown-menu {
    top: 48px;
    right: 0;
    min-width: 142px;
    padding: 7px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .18);
}

.appHeader.lsw-app-header .dropdown-menu .dropdown-item {
    border-radius: 12px;
    gap: 8px;
    padding: 10px 11px;
    color: var(--lsw-text);
}

.appHeader.lsw-app-header .dropdown-menu .dropdown-item:hover {
    background: #f2f5fb;
}

.lsw-page-container {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: calc(92px + env(safe-area-inset-top, 0px)) 14px calc(88px + env(safe-area-inset-bottom, 0px));
}

.lsw-page-container > .row {
    margin-left: 0;
    margin-right: 0;
}

.lsw-page-container > .row > * {
    padding-left: 0;
    padding-right: 0;
}

.card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    background: var(--lsw-card);
    box-shadow: var(--lsw-shadow);
    overflow: hidden;
    margin-bottom: 14px;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--lsw-line);
    padding: 14px 16px;
}

.card-body {
    padding: 15px;
}

.card-title,
.section-title {
    color: var(--lsw-text);
    font-weight: 800;
    letter-spacing: -.03em;
}

.gradient-button,
.gradient-profil-btn,
.btn-redeem,
.btn-pass,
.btn-change {
    border: 0 !important;
    border-radius: 15px !important;
    background: var(--lsw-action-gradient) !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 24px rgba(240, 43, 131, .20) !important;
    text-decoration: none !important;
    min-height: 42px;
}

.gradient-button:hover,
.gradient-profil-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(46, 139, 255, .20) !important;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: var(--lsw-line);
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(46, 139, 255, .55);
    box-shadow: 0 0 0 .2rem rgba(46, 139, 255, .12);
}

.navigation_custom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 430px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 7px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03) 24%, transparent 52%),
        rgba(8, 12, 30, .98);
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .14);
    z-index: 1050;
}

.navigation_custom ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation_custom ul li {
    width: auto;
    height: 100%;
    list-style: none;
    position: relative;
    z-index: 1;
}

.navigation_custom ul li a {
    width: 100%;
    height: 100%;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border-radius: 15px;
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    position: relative;
}

.navigation_custom ul li a .icon {
    display: grid;
    place-items: center;
    line-height: 1;
    font-size: 21px;
    color: currentColor;
    transition: none;
}

.navigation_custom ul li a .text {
    position: static;
    color: currentColor;
    opacity: 1;
    transform: none;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    transition: none;
}

.navigation_custom ul li a .circle,
.navigation_custom .indicator,
.indicator {
    display: none !important;
}

.navigation_custom ul li.active a,
.navigation_custom ul li a:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(46, 139, 255, .12), rgba(240, 43, 131, .12));
}

.navigation_custom ul li.active a::after {
    content: "";
    position: absolute;
    top: 33px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lsw-cyan), var(--lsw-pink));
    box-shadow: 0 0 12px rgba(240, 43, 131, .55);
}

.navigation_custom ul li.active a .icon {
    transform: none;
}

.progress#progressBarContainer {
    position: fixed;
    top: calc(78px + env(safe-area-inset-top, 0px));
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1200;
    border-radius: 0;
}

.table,
.table-sm,
.table-md,
.datatable,
.dt-responsive {
    width: 100% !important;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
}

table.dataTable thead th,
.datatable thead th,
#rankTable thead th,
#point-table thead th,
#master-table thead th,
#tbKehadiran thead th {
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 12px;
}

table.dataTable thead,
.datatable thead,
#rankTable thead,
#point-table thead,
#master-table thead,
#tbKehadiran thead {
    background: var(--lsw-gradient) !important;
    color: #fff !important;
}

table.dataTable tbody td,
.datatable tbody td {
    color: var(--lsw-text);
    border-color: var(--lsw-line);
    vertical-align: middle;
}

.dataTables_wrapper {
    overflow: visible;
}

.dataTables_wrapper .row {
    gap: 8px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    text-align: center !important;
    color: var(--lsw-text);
    font-size: 13px;
}

.dataTables_wrapper .dataTables_filter {
    margin: 8px 0;
}

.dataTables_wrapper .dt-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 12px;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-button {
    border: 0 !important;
    border-radius: 12px !important;
    padding: 8px 13px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10) !important;
}

#tbKehadiran_wrapper .dt-buttons {
    display: none;
}

.dataTables_filter input,
.dataTables_length select {
    border-radius: 12px !important;
    border: 1px solid var(--lsw-line) !important;
    min-height: 36px;
}

.dataTables_wrapper .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding-left: 0;
    margin: 10px 0 0;
    list-style: none;
}

.dataTables_wrapper .pagination li {
    list-style: none;
}

.dataTables_wrapper .pagination .page-link,
.dataTables_wrapper .paginate_button a,
.dataTables_wrapper .paginate_button {
    border-radius: 10px !important;
    border-color: var(--lsw-line) !important;
    color: var(--lsw-text) !important;
}

.dataTables_wrapper .pagination .active .page-link,
.dataTables_wrapper .paginate_button.current {
    background: var(--lsw-action-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background: var(--lsw-action-gradient) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.yellow-text {
    color: #fff86c !important;
}

.blue-text {
    color: #1f6fff !important;
}

.red-text {
    color: var(--lsw-red) !important;
}

.lsw-hero-card {
    background: var(--lsw-gradient);
    color: #fff;
    border: 0;
}

.lsw-hero-card .card-body,
.lsw-hero-card .card-header {
    background: transparent;
    color: #fff;
}

.lsw-hero-card * {
    color: inherit;
}

.lsw-dashboard-hero .card-body {
    padding: 15px;
}

.lsw-dashboard-hero-top,
.lsw-dashboard-user,
.lsw-user-meta,
.lsw-stat-grid {
    display: grid;
    gap: 12px;
}

.lsw-dashboard-hero-top {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.lsw-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    margin: 0 5px 6px 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.lsw-pill-solid {
    background: rgba(34, 199, 122, .95);
}

.lsw-dashboard-avatar {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .46);
}

.lsw-dashboard-greeting h2 {
    margin: 8px 0;
    font-size: clamp(22px, 6.2vw, 26px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -.05em;
}

.lsw-dashboard-greeting p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 1.45;
}

.lsw-dashboard-greeting strong {
    color: #fff86c;
}

.lsw-dashboard-user {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.lsw-dashboard-user h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.lsw-user-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lsw-user-meta span {
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
}

.lsw-user-meta small {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .70);
    font-size: 10px;
    font-weight: 700;
}

.lsw-summary-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
}

.lsw-summary-head h3 {
    margin: 0 0 3px;
    color: var(--lsw-text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.lsw-summary-head p {
    margin: 0;
    color: var(--lsw-muted);
    font-size: 11px;
    line-height: 1.35;
}

.lsw-summary-head > span {
    max-width: 112px;
    border-radius: 999px;
    padding: 6px 9px;
    background: #eef4ff;
    color: #2662d9;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.lsw-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.lsw-stat {
    min-width: 0;
    border-radius: 15px;
    padding: 10px 6px;
    text-align: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .18);
}

.lsw-summary-card .lsw-stat {
    background: #f4f7fb;
    border-color: var(--lsw-line);
}

.lsw-stat i {
    display: block;
    margin-bottom: 5px;
}

.lsw-summary-card .lsw-stat i {
    color: var(--lsw-pink);
}

.lsw-stat strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.lsw-summary-card .lsw-stat strong {
    color: var(--lsw-text);
}

.lsw-stat span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    line-height: 1.25;
}

.lsw-summary-card .lsw-stat span {
    color: var(--lsw-muted);
}

.lsw-section-heading {
    margin: 0 0 14px;
    text-align: center;
    color: var(--lsw-text);
    font-size: clamp(20px, 5.6vw, 23px);
    font-weight: 850;
    letter-spacing: -.04em;
}

.lsw-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lsw-table-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
}

.lsw-leaderboard-card .card-body {
    padding-bottom: 10px;
}

.lsw-leaderboard-list {
    max-height: 390px;
    overflow-y: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
}

.lsw-leaderboard-list::-webkit-scrollbar,
.lsw-point-list::-webkit-scrollbar,
.lsw-history-list::-webkit-scrollbar {
    width: 5px;
}

.lsw-leaderboard-list::-webkit-scrollbar-thumb,
.lsw-point-list::-webkit-scrollbar-thumb,
.lsw-history-list::-webkit-scrollbar-thumb {
    background: rgba(141, 73, 216, .35);
    border-radius: 999px;
}

.lsw-leaderboard-item {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid var(--lsw-line);
}

.lsw-leaderboard-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.lsw-rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--lsw-action-gradient);
    font-weight: 850;
    font-size: 12px;
    flex: 0 0 auto;
}

.lsw-leaderboard-name {
    min-width: 0;
}

.lsw-leaderboard-name strong {
    display: block;
    color: var(--lsw-text);
    font-size: 13px;
    line-height: 1.25;
}

.lsw-leaderboard-name span {
    display: block;
    color: var(--lsw-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsw-leaderboard-point {
    color: var(--lsw-pink);
    font-weight: 850;
    font-size: 13px;
}

.absen-page {
    padding: 0 !important;
    background: transparent !important;
}

.absen-list {
    gap: 14px !important;
}

.absen-card,
.empty-card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--lsw-radius-lg) !important;
    box-shadow: var(--lsw-shadow) !important;
    padding: 16px !important;
}

.absen-meta {
    color: var(--lsw-text) !important;
    align-items: center;
    font-size: 14px !important;
}

.absen-meta-item ion-icon {
    color: var(--lsw-pink) !important;
}

.absen-icon,
.sport-icon {
    background: linear-gradient(135deg, var(--lsw-purple), var(--lsw-pink)) !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    font-size: 36px !important;
}

.absen-place {
    color: var(--lsw-text) !important;
    font-size: 22px !important;
}

.absen-desc {
    color: var(--lsw-muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.absen-alert {
    border-radius: 16px !important;
    font-size: 14px !important;
}

.absen-countdown {
    background: #fff6e7 !important;
    color: #cc6a00 !important;
}

.absen-countdown.is-ready {
    background: #ecfff3 !important;
    color: #159947 !important;
}

.absen-title {
    font-size: 17px !important;
    margin-bottom: 14px !important;
}

.absen-divider {
    margin: 13px 0 !important;
}

.profile-avatar-card {
    text-align: center;
}

.lsw-profile-card .card-body {
    padding: 18px 16px;
}

.lsw-profile-label {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef4ff;
    color: #2662d9;
    font-size: 11px;
    font-weight: 850;
}

.lsw-profile-name {
    margin: 0 0 12px;
    color: var(--lsw-text);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.03em;
}

#currentAvatar {
    width: min(42vw, 136px) !important;
    aspect-ratio: 1;
    border-radius: 32px !important;
    object-fit: cover;
    border: 1px solid var(--lsw-line) !important;
    background: linear-gradient(145deg, #e9f9ff, #d9d4ff);
    padding: 6px;
}

.lsw-profile-nick {
    margin: 12px 0 4px;
    color: var(--lsw-text);
    font-size: 19px;
    font-weight: 800;
}

.lsw-profile-point {
    margin: 0 0 14px;
    color: var(--lsw-text);
    font-size: 16px;
}

.lsw-profile-level {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--lsw-line);
}

.lsw-profile-level h5 {
    margin: 8px 0 0;
    color: var(--lsw-text);
    font-size: 14px;
    font-weight: 600;
}

.lsw-profile-level h5.lsw-max-level-message {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff8e8;
    color: #b66b00;
    font-size: 12px;
    font-weight: 850;
}

.lsw-level-progress {
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    background: #e9eef6;
    overflow: hidden;
}

.lsw-level-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lsw-orange), var(--lsw-pink));
}

.stars-container-profil {
    flex-wrap: wrap;
    margin-top: 8px !important;
}

.star-profil {
    width: clamp(28px, 8vw, 38px) !important;
}

.lsw-accumulate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #f8f5ff;
    text-align: left;
}

.lsw-accumulate .form-label {
    margin: 0 0 4px;
    color: var(--lsw-muted);
    font-size: 12px;
}

.lsw-accumulate h4 {
    margin: 0;
    color: var(--lsw-text);
    font-size: 24px;
    font-weight: 850;
}

.lsw-accumulate img {
    width: 76px !important;
    height: 76px;
    object-fit: contain !important;
}

.btn-setting {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(46, 139, 255, .22) !important;
    border-radius: 15px !important;
    background: #f4f8ff !important;
    color: #2662d9 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.btn-setting:hover {
    background: #eef4ff !important;
}

.btn-setting:focus,
.btn-setting:active,
.btn-pass:focus,
.btn-pass:active {
    outline: none !important;
    border-color: rgba(46, 139, 255, .32) !important;
    box-shadow: 0 0 0 .18rem rgba(46, 139, 255, .10) !important;
}

.lsw-profile-info-card .card-title {
    margin: 0;
    text-align: left;
}

.lsw-profile-form,
.lsw-password-fields {
    display: grid;
    gap: 12px;
}

.lsw-profile-form {
    grid-template-columns: minmax(0, 1fr);
}

.lsw-form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--lsw-text);
    font-size: 12px;
    font-weight: 850;
}

.lsw-form-field .form-control,
.lsw-password-input .form-control {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #f8fbff;
    color: var(--lsw-text);
    font-size: 14px;
    font-weight: 700;
}

.lsw-form-action {
    display: grid;
    gap: 8px;
}

.lsw-input-with-icon {
    position: relative;
}

.lsw-input-with-icon i {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    color: var(--lsw-pink);
    font-size: 15px;
    pointer-events: none;
}

.lsw-input-with-icon .form-control {
    width: 100%;
    padding-left: 40px !important;
}

.lsw-profile-info-card .btn-change,
.lsw-profile-info-card .btn-pass {
    width: 100%;
}

.gradient-profil-btn.is-open {
    box-shadow: 0 10px 22px rgba(240, 43, 131, .22) !important;
    transform: translateY(-1px);
}

.lsw-password-panel {
    margin-top: 14px;
}

.lsw-password-fields {
    margin-top: 13px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.lsw-profile-info-card .lsw-password-input {
    position: relative;
    width: 100%;
}

.lsw-profile-info-card .lsw-password-input i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--lsw-pink);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.lsw-profile-info-card .lsw-password-input .form-control {
    width: 100% !important;
    padding-left: 40px !important;
}

.profile-avatar-card .button-container.lsw-avatar-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: auto !important;
    margin-top: 10px;
    position: relative;
}

#avatarPickerPanel.lsw-avatar-picker-panel {
    width: min(calc(100% - 18px), 320px) !important;
    margin: 14px auto 4px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(247, 250, 255, .96) !important;
    border: 1px solid rgba(207, 218, 232, .9) !important;
    box-shadow: 0 16px 34px rgba(20, 31, 56, .12), inset 0 1px 0 rgba(255,255,255,.9) !important;
    text-align: left !important;
    overflow: hidden !important;
    position: relative !important;
}

#avatarPickerPanel .lsw-avatar-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(210, 220, 234, .85);
}

#avatarPickerPanel .lsw-avatar-picker-head strong,
#avatarPickerPanel .lsw-avatar-picker-head span {
    display: block;
}

#avatarPickerPanel .lsw-avatar-picker-head strong {
    color: var(--lsw-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

#avatarPickerPanel .lsw-avatar-picker-head span {
    margin-top: 3px;
    color: var(--lsw-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

#btnCloseAvatarPicker {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    min-width: 28px;
    padding: 0;
    border-radius: 50% !important;
    color: #fff;
    background: linear-gradient(135deg, #9b6dff, #ff2b86);
    box-shadow: 0 8px 16px rgba(240, 43, 131, .18);
}

#avatarContainer.lsw-avatar-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 48px) !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    max-height: 174px !important;
    margin: 0 auto !important;
    padding: 3px 3px 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}

#avatarContainer.lsw-avatar-grid .avatar-item {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid transparent !important;
    outline: 0 !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 0 !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(28, 39, 68, .08) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    cursor: pointer !important;
    line-height: 0 !important;
    float: none !important;
    vertical-align: initial !important;
    overflow: visible !important;
}

#avatarContainer.lsw-avatar-grid .avatar-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border: 0 !important;
    border-radius: 12px !important;
}

#avatarContainer.lsw-avatar-grid .avatar-item:hover,
#avatarContainer.lsw-avatar-grid .avatar-item.is-selected {
    transform: translateY(-1px);
    border-color: transparent !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--lsw-action-gradient) border-box !important;
    box-shadow: 0 10px 20px rgba(240, 43, 131, .14), 0 0 0 3px rgba(240, 43, 131, .08) !important;
}

#avatarContainer.lsw-avatar-grid .avatar-selected-mark {
    position: absolute;
    right: -5px;
    top: -5px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--lsw-action-gradient);
    border: 2px solid #fff;
    box-shadow: 0 7px 14px rgba(240, 43, 131, .22);
    font-size: 10px;
}

#avatarContainer.lsw-avatar-grid .avatar-item.is-selected .avatar-selected-mark {
    display: inline-flex;
}

#avatarContainer.lsw-avatar-grid::-webkit-scrollbar {
    width: 5px;
}

#avatarContainer.lsw-avatar-grid::-webkit-scrollbar-thumb {
    background: rgba(141, 73, 216, .35);
    border-radius: 99px;
}

@media (max-width: 360px) {
    #avatarContainer.lsw-avatar-grid {
        grid-template-columns: repeat(4, 48px) !important;
    }
}

.redeem-summary-card {
    background: linear-gradient(135deg, var(--lsw-orange), var(--lsw-pink));
    color: #fff;
    border: 0;
}

.redeem-summary-card * {
    color: inherit;
}

.redeem-summary-card .card-body {
    padding: clamp(14px, 4.3vw, 18px);
}

.lsw-redeem-summary-content {
    display: grid;
    gap: 10px;
    text-align: left;
}

.lsw-redeem-summary-label {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, .16);
    font-size: 11px;
    font-weight: 850;
}

.lsw-redeem-period {
    max-width: 100%;
    font-size: clamp(10px, 3.1vw, 12px);
    line-height: 1.35;
    font-weight: 750;
    color: rgba(255, 255, 255, .92) !important;
}

.lsw-redeem-points {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .15);
    font-size: clamp(11px, 3.3vw, 13px);
    font-weight: 850;
}

.lsw-redeem-points strong {
    color: #fff86c !important;
}

#itemContainer {
    display: grid;
    gap: 14px;
}

.lsw-redeem-item {
    display: grid !important;
    grid-template-columns: 128px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 12px !important;
    min-height: 156px;
}

.lsw-redeem-thumb {
    display: grid;
    place-items: center;
    min-height: 132px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef3fb);
    border: 1px solid var(--lsw-line);
    overflow: hidden;
}

.lsw-redeem-thumb img {
    width: 100% !important;
    max-width: 118px !important;
    max-height: 112px;
    object-fit: contain;
    padding: 8px;
}

.lsw-redeem-info {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 13px;
}

.lsw-redeem-info h4 {
    margin: 0;
    color: var(--lsw-text);
    font-size: clamp(18px, 5.2vw, 24px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.lsw-redeem-info .btn-tukar {
    align-self: start;
    width: 100% !important;
    max-width: 220px;
    min-height: 42px;
}

#itemContainer > .card.lsw-redeem-item {
    display: grid !important;
    grid-template-columns: 128px minmax(0, 1fr) !important;
    width: 100% !important;
}

#itemContainer > .card.lsw-redeem-item .lsw-redeem-thumb {
    grid-column: 1;
    grid-row: 1;
}

#itemContainer > .card.lsw-redeem-item .lsw-redeem-info {
    grid-column: 2;
    grid-row: 1;
}

#detailItem .d-flex {
    display: grid !important;
    grid-template-columns: minmax(96px, 42%) minmax(0, 1fr);
    gap: 14px;
    align-items: center !important;
}

#detailItem img {
    width: 100% !important;
    max-width: 136px;
    aspect-ratio: 1.45;
    object-fit: contain;
    border-radius: 16px !important;
    background: #f5f7fb;
    border: 1px solid var(--lsw-line);
}

#itemContainer > .card.lsw-redeem-item .lsw-redeem-thumb img {
    width: 100% !important;
    max-width: 118px !important;
    max-height: 112px !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 8px !important;
}

#detailItem h4 {
    color: var(--lsw-text);
    font-size: clamp(17px, 4.8vw, 20px);
    font-weight: 800;
    letter-spacing: -.03em;
}

#detailItem .btn-tukar {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
}

.btn-tukar:disabled,
.btn-tukar.btn-secondary {
    border: 0 !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #eef2f7, #d9dee7) !important;
    color: #7a8495 !important;
    font-weight: 850 !important;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .28) !important;
    opacity: 1 !important;
}

.btn-tukar:not(:disabled) {
    background: var(--lsw-action-gradient) !important;
}

.lsw-history-list,
.lsw-point-list {
    max-height: 390px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lsw-history-item,
.lsw-point-item {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--lsw-line);
}

.lsw-history-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.lsw-point-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.lsw-history-item:first-child,
.lsw-point-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.lsw-history-content,
.lsw-point-content {
    min-width: 0;
}

.lsw-history-content strong,
.lsw-point-content strong {
    display: block;
    color: var(--lsw-text);
    font-size: 13px;
    line-height: 1.25;
}

.lsw-history-content span,
.lsw-point-content span,
.lsw-history-content small {
    display: block;
    color: var(--lsw-muted);
    font-size: 11px;
    line-height: 1.35;
}

.lsw-history-action {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.lsw-history-action .gradient-button,
.btn-lihat {
    min-height: 32px !important;
    padding: 7px 13px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
}

.lsw-point-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--lsw-green);
    font-size: 12px;
}

.lsw-point-icon.is-minus {
    background: var(--lsw-red);
}

.lsw-point-value {
    font-weight: 850;
    font-size: 13px;
}

.lsw-export-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 4px;
    flex-wrap: wrap;
}

.lsw-export-actions .btn {
    min-width: 82px;
    min-height: 36px;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.lsw-filter-panel h5 {
    margin: 0 0 14px;
    color: var(--lsw-text);
    font-size: 15px;
    font-weight: 850;
}

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

.lsw-date-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--lsw-text);
    font-size: 12px;
    font-weight: 800;
}

.lsw-date-input {
    position: relative;
}

.lsw-date-input i {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: var(--lsw-pink);
    font-size: 14px;
    pointer-events: none;
}

.lsw-date-input .form-control {
    width: 100%;
    min-height: 46px;
    padding-left: 38px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: #f8fbff;
    color: var(--lsw-text);
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.lsw-date-input .form-control::placeholder {
    color: #9aa5b7;
    font-weight: 600;
}

.btn-export-excel {
    background: linear-gradient(135deg, #18a760, #12c77a) !important;
}

.btn-export-pdf {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
}

.lsw-detail-redeem-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.lsw-detail-redeem-card .card-title {
    font-size: 19px;
    line-height: 1.2;
}

.lsw-detail-status {
    flex: 0 0 auto;
    text-align: right;
}

.lsw-detail-status .badge,
.lsw-detail-status span,
.lsw-history-action .badge,
.lsw-history-action span {
    border-radius: 999px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
}

.lsw-detail-hero {
    display: grid;
    grid-template-columns: minmax(104px, 42%) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 13px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f6fbff, #fff5fb);
    border: 1px solid var(--lsw-line);
}

.lsw-detail-hero img,
.lsw-proof-card > img {
    width: 100%;
    border-radius: 17px;
    background: #fff;
    border: 1px solid var(--lsw-line);
    object-fit: contain;
}

.lsw-detail-hero img {
    aspect-ratio: 1.15;
    padding: 7px;
}

.lsw-detail-hero small,
.lsw-detail-row span,
.lsw-proof-head span {
    display: block;
    color: var(--lsw-muted);
    font-size: 11px;
    line-height: 1.35;
}

.lsw-detail-hero strong {
    display: block;
    margin: 2px 0 7px;
    color: var(--lsw-text);
    font-size: 15px;
    font-weight: 850;
}

.lsw-detail-hero p {
    margin: 0;
    color: var(--lsw-muted);
    font-size: 12px;
    line-height: 1.45;
}

.lsw-detail-timeline {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid var(--lsw-line);
    overflow: hidden;
}

.lsw-detail-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-top: 1px solid var(--lsw-line);
    background: #fff;
}

.lsw-detail-row:first-child {
    border-top: 0;
}

.lsw-detail-row i,
.lsw-proof-head i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--lsw-action-gradient);
}

.lsw-detail-row strong {
    color: var(--lsw-text);
    font-size: 13px;
    font-weight: 850;
}

.lsw-proof-card {
    margin-top: 14px;
    padding: 13px;
    border-radius: 20px;
    border: 1px solid var(--lsw-line);
    background: #fff;
}

.lsw-proof-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 11px;
}

.lsw-proof-head strong {
    display: block;
    color: var(--lsw-text);
    font-size: 13px;
    font-weight: 850;
}

.lsw-proof-card > img {
    max-height: 230px;
    padding: 8px;
}

.lsw-back-button {
    width: 100%;
}

.lsw-empty-state {
    padding: 18px 12px;
    text-align: center;
    color: var(--lsw-muted);
    background: #f7f9fd;
    border-radius: 16px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(8, 12, 30, .28);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: min(92vw, 430px);
    margin: 18px auto;
    pointer-events: none;
}

.modal-dialog-centered {
    min-height: calc(100% - 36px);
    display: flex;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: #fff;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(8, 12, 30, .24);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    background: var(--lsw-gradient);
    color: #fff;
    border-bottom: 0;
}

.modal-body {
    padding: 17px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 17px 17px;
    border-top: 1px solid var(--lsw-line);
    background: #fff;
}

.modal-title {
    color: #fff;
    font-weight: 800;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: rgba(8, 12, 30, .45);
}

.modal-open {
    overflow: hidden;
}

.lsw-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.absen-event-info {
    background: linear-gradient(135deg, rgba(240, 43, 131, .10), rgba(46, 139, 255, .12)) !important;
    color: var(--lsw-text) !important;
    border: 1px solid rgba(240, 43, 131, .16);
}

.absen-event-info ion-icon {
    color: var(--lsw-pink);
}

.lsw-qr-modal .modal-body {
    padding: 18px;
    background: #f7f9fd;
}

.lsw-qr-helper {
    margin: 0 0 14px;
    color: var(--lsw-muted);
    font-size: 13px;
    line-height: 1.45;
}

#eventQrReader {
    overflow: hidden;
    min-height: 230px;
    border: 1px dashed rgba(46, 139, 255, .28);
    border-radius: 20px;
    background: #fff;
}

#eventQrReader video {
    border-radius: 18px;
}

.lsw-manual-token {
    margin-top: 15px;
}

.lsw-manual-token label {
    display: block;
    margin-bottom: 7px;
    color: var(--lsw-text);
    font-size: 12px;
    font-weight: 800;
}

.lsw-manual-token .form-control {
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid #d9e1ee;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.lsw-manual-token .gradient-button {
    min-height: 46px;
    margin-top: 10px;
    border: 0;
}

.lsw-redeem-modal-dialog {
    max-width: min(92vw, 430px);
}

.lsw-redeem-modal .modal-body {
    background: #f7f9fd;
}

.lsw-redeem-modal-product {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 15px;
}

.lsw-redeem-modal-image {
    display: grid;
    place-items: center;
    min-height: 106px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e1e8f2;
}

.lsw-redeem-modal-image img {
    display: block;
    width: 100%;
    max-width: 92px;
    max-height: 86px;
    object-fit: contain;
}

.lsw-redeem-modal-title span {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--lsw-pink);
    background: rgba(240, 43, 131, .10);
    font-size: 11px;
    font-weight: 900;
}

.lsw-redeem-modal-title h4 {
    margin: 9px 0 0;
    color: var(--lsw-text);
    font-size: clamp(19px, 5.2vw, 24px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.04em;
}

.lsw-redeem-point-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.lsw-redeem-point-grid div {
    padding: 10px 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e1e8f2;
    text-align: center;
}

.lsw-redeem-point-grid span {
    display: block;
    color: var(--lsw-muted);
    font-size: 10px;
    font-weight: 800;
}

.lsw-redeem-point-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--lsw-text);
    font-size: 17px;
    font-weight: 900;
}

.lsw-redeem-note-field {
    margin: 0;
}

.lsw-redeem-note-field textarea.form-control {
    min-height: 94px;
    resize: vertical;
    padding-top: 12px !important;
}

.lsw-redeem-modal-footer {
    justify-content: space-between;
}

.lsw-btn-cancel {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 850;
}

.lsw-redeem-modal-footer .btn-redeem {
    width: auto !important;
    min-width: 142px;
    min-height: 44px;
    padding: 10px 16px !important;
}

.lsw-event-admin-card,
.lsw-event-list-card {
    border: 0;
    border-radius: var(--lsw-radius-lg);
    box-shadow: var(--lsw-shadow);
    overflow: hidden;
}

.lsw-event-admin-card .card-header {
    padding: 18px 18px 10px;
    background: #fff;
    border: 0;
}

.lsw-event-admin-card .card-title {
    margin: 0;
    color: var(--lsw-text);
    font-size: 18px;
    font-weight: 900;
}

.lsw-event-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.lsw-event-submit {
    min-height: 48px;
    margin-top: 4px;
    border: 0;
}

.lsw-event-list-card {
    margin-top: 14px;
}

.lsw-event-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.lsw-event-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 9px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    border: 1px solid #e1e8f2;
}

.lsw-event-qr img {
    width: 94px;
    height: 94px;
    object-fit: contain;
    border-radius: 10px;
}

.lsw-event-qr-hidden {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #9aa5b7;
    background: linear-gradient(180deg, #f3f6fb, #e8eef7);
}

.lsw-event-qr-hidden i {
    color: #a8b3c5;
    font-size: 34px;
}

.lsw-event-qr-hidden span {
    color: #758197;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.lsw-event-info {
    min-width: 0;
}

.lsw-event-info h4 {
    margin: 7px 0 5px;
    color: var(--lsw-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.lsw-event-info p {
    margin: 0 0 6px;
    color: var(--lsw-muted);
    font-size: 13px;
    line-height: 1.4;
}

.lsw-event-info small {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #8a95a8;
    font-size: 11px;
}

.lsw-event-validity {
    color: #7b879b !important;
    font-size: 11px !important;
    font-weight: 700;
}

.lsw-event-status.is-active {
    color: #11a85f !important;
    background: rgba(34, 199, 122, .12) !important;
}

.lsw-event-status.is-waiting {
    color: #d77908 !important;
    background: rgba(255, 139, 24, .14) !important;
}

.lsw-event-status.is-expired {
    color: #7b879b !important;
    background: #eef2f7 !important;
}

.lsw-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lsw-event-actions .btn {
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

#statusLokasi {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

.loading-container .loading-content {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.loading-container {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    background: rgba(8, 12, 30, .38) !important;
    z-index: 9999 !important;
    visibility: hidden;
}

.loading-container.is-visible {
    visibility: visible !important;
}

.loading-container .loading-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0;
}

.loading-text {
    color: #fff;
    font-size: 1.2rem;
}

.datepicker {
    z-index: 99999 !important;
}

@media only screen and (max-width: 767px) {
    .evo_c-btn.evo_arrow-right {
        pointer-events: auto !important;
    }
}

@media (max-width: 390px) {
    .lsw-form-grid,
    .lsw-event-row {
        grid-template-columns: 1fr;
    }

    .lsw-event-row {
        align-items: start;
    }

    .lsw-event-qr {
        min-height: 150px;
    }

    .lsw-event-qr img {
        width: 130px;
        height: 130px;
    }

    .modal-dialog {
        max-width: calc(100vw - 22px);
        margin: 11px auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 22px);
    }

    .lsw-redeem-modal-product {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 11px;
    }

    .lsw-redeem-modal-image {
        min-height: 88px;
        border-radius: 17px;
    }

    .lsw-redeem-modal-image img {
        max-width: 76px;
        max-height: 72px;
    }

    .lsw-redeem-point-grid {
        gap: 6px;
    }

    .lsw-redeem-point-grid div {
        padding: 9px 5px;
    }

    .lsw-redeem-point-grid strong {
        font-size: 15px;
    }

    #eventQrReader {
        min-height: 210px;
    }
}

@media (max-width: 520px) {
    .lsw-filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lsw-user-meta,
    .lsw-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .lsw-user-meta span,
    .lsw-stat span {
        font-size: 10px;
    }

    .lsw-dashboard-avatar {
        width: 76px;
        height: 76px;
        border-radius: 24px;
    }

    #detailItem .d-flex {
        align-items: stretch !important;
    }

    .lsw-redeem-item {
        grid-template-columns: 116px minmax(0, 1fr) !important;
        gap: 11px !important;
        padding: 10px !important;
        min-height: 138px;
    }

    .lsw-redeem-thumb {
        min-height: 112px;
    }

    .lsw-redeem-info {
        gap: 10px;
    }

    .lsw-redeem-info h4 {
        font-size: 18px;
        line-height: 1.22;
    }

    #itemContainer > .card.lsw-redeem-item {
        grid-template-columns: 116px minmax(0, 1fr) !important;
    }

    .lsw-leaderboard-item {
        grid-template-columns: 30px 50px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .lsw-table-avatar {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .absen-body {
        gap: 13px !important;
    }
}

@media (max-width: 370px) {
    .lsw-stat strong {
        font-size: 17px;
    }

    .lsw-dashboard-avatar {
        width: 68px;
        height: 68px;
    }

    .redeem-summary-card .card-body {
        padding: 13px;
    }

    .lsw-redeem-summary-content {
        gap: 8px;
    }

    .lsw-redeem-period {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .lsw-page-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .card-body {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .appHeader.lsw-app-header {
        grid-template-columns: 66px minmax(0, 1fr) 42px;
        gap: 6px;
    }

    .lsw-header-logo {
        width: 60px;
        height: 42px;
    }

    .navigation_custom ul li a .text {
        font-size: 9px;
    }

    .navigation_custom ul li a .icon {
        font-size: 21px;
    }

    .card-body {
        padding: 14px;
    }
}

/* Login */
body.lsw-login-body {
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: start center;
    padding: clamp(10px, 3.5vw, 24px);
    padding-top: clamp(70px, 17svh, 148px);
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .32), transparent 18%),
        radial-gradient(circle at 85% 82%, rgba(24, 201, 230, .26), transparent 24%),
        linear-gradient(145deg, #0bd2df, #2e8bff 38%, #8d49d8 68%, #f02b83);
    font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.lsw-login-shell {
    position: relative;
    width: min(100%, 390px);
    max-height: calc(100svh - 20px);
    overflow: hidden;
    border-radius: clamp(24px, 8vw, 34px);
}

.lsw-login-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

.lsw-login-glow-one {
    top: -58px;
    left: -34px;
    background: rgba(255, 255, 255, .22);
}

.lsw-login-glow-two {
    right: -34px;
    bottom: -58px;
    background: rgba(240, 43, 131, .22);
}

.lsw-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(18px, 5.6vw, 30px);
    border-radius: clamp(24px, 8vw, 34px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .90)),
        #fff;
    border: 1px solid rgba(255, 255, 255, .58);
    box-shadow: 0 28px 68px rgba(8, 12, 30, .27);
    backdrop-filter: blur(14px);
}

.lsw-login-brand {
    display: grid;
    justify-items: center;
    gap: clamp(6px, 1.8svh, 10px);
    margin-bottom: clamp(12px, 3svh, 18px);
}

.lsw-login-logo-wrap {
    display: grid;
    place-items: center;
    width: clamp(78px, 23vw, 104px);
    height: clamp(56px, 16vw, 76px);
    border-radius: clamp(18px, 6vw, 24px);
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 139, 24, .45), transparent 35%),
        var(--lsw-gradient);
    box-shadow: 0 15px 30px rgba(46, 139, 255, .18);
}

.lsw-login-logo {
    width: clamp(66px, 19vw, 88px);
    height: clamp(42px, 12vw, 56px);
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.lsw-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1.4svh, 6px) 11px;
    border-radius: 999px;
    color: var(--lsw-pink);
    background: rgba(240, 43, 131, .09);
    font-size: clamp(10px, 3vw, 12px);
    font-weight: 900;
}

.lsw-login-title {
    margin: 0;
    text-align: center;
    color: var(--lsw-text);
    font-size: clamp(24px, 7.2vw, 34px);
    font-weight: 850;
    letter-spacing: -.05em;
}

.lsw-login-subtitle {
    max-width: 300px;
    margin: clamp(6px, 1.5svh, 9px) auto clamp(16px, 3.4svh, 24px);
    text-align: center;
    color: var(--lsw-muted);
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.45;
}

.lsw-login-card .wrap-input100 {
    height: auto;
    border-radius: clamp(15px, 4.5vw, 18px);
    background: #f7faff;
    border: 1px solid #dfe7f2;
    padding: clamp(8px, 1.8svh, 11px) 14px clamp(8px, 1.6svh, 10px);
    margin-bottom: clamp(9px, 1.8svh, 12px);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lsw-login-card .wrap-input100:focus-within {
    background: #fff;
    border-color: rgba(46, 139, 255, .50);
    box-shadow: 0 0 0 4px rgba(46, 139, 255, .10);
}

.lsw-login-card .label-input100 {
    color: var(--lsw-muted);
    font-size: 12px;
    font-weight: 850;
    padding-left: 34px;
    margin-bottom: clamp(2px, .9svh, 5px);
}

.lsw-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(31px, 5.2svh, 36px);
}

.lsw-login-input-wrap > i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lsw-pink);
    font-size: 17px;
    width: 22px;
    text-align: center;
}

.lsw-login-card .input100 {
    width: 100%;
    height: clamp(31px, 5.2svh, 36px);
    padding: 0 38px 0 34px;
    color: var(--lsw-text);
    background: transparent;
    font-size: clamp(13px, 3.8vw, 15px);
    font-weight: 750;
}

.lsw-login-card .input100::placeholder {
    color: #9aa5b7;
    font-weight: 650;
}

.lsw-login-toggle-pass {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #7c8799;
    background: transparent;
}

.lsw-login-card .focus-input100::after,
.lsw-login-card .focus-input100::before {
    display: none;
}

.lsw-login-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: clamp(2px, .8svh, 4px) 2px clamp(14px, 2.8svh, 20px);
    color: var(--lsw-muted);
    font-size: 12px;
    font-weight: 700;
}

.lsw-login-help a {
    color: var(--lsw-pink);
    font-weight: 900;
    text-decoration: none;
}

.lsw-login-card .login100-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: clamp(44px, 7svh, 50px);
    border: 0;
    border-radius: 17px;
    background: var(--lsw-action-gradient);
    box-shadow: 0 12px 25px rgba(240, 43, 131, .24);
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    transition: transform .2s ease, opacity .2s ease;
}

.lsw-login-card .login100-form-btn:hover {
    transform: translateY(-1px);
}

.lsw-login-card .login100-form-btn:disabled {
    opacity: .72;
    cursor: wait;
}

.lsw-login-card .login100-form-btn.is-loading span {
    opacity: .68;
}

.lsw-login-card .wrap-login100-form-btn {
    width: 100%;
    border-radius: 17px;
}

.lsw-login-card .login100-form-bgbtn {
    display: none;
}

@media (max-height: 680px) {
    body.lsw-login-body {
        overflow-y: auto;
        place-items: start center;
        padding-top: clamp(18px, 5svh, 32px);
    }

    .lsw-login-card {
        padding: 16px;
        border-radius: 26px;
    }

    .lsw-login-logo-wrap {
        width: 76px;
        height: 54px;
    }

    .lsw-login-logo {
        width: 64px;
        height: 40px;
    }

    .lsw-login-subtitle {
        margin-bottom: 14px;
    }

    .lsw-login-title {
        font-size: 24px;
    }

    .lsw-login-card .wrap-input100 {
        padding-top: 8px;
        padding-bottom: 7px;
    }

    .lsw-login-card .input100,
    .lsw-login-input-wrap {
        height: 30px;
        min-height: 30px;
    }

    .lsw-login-help {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .lsw-login-card .login100-form-btn {
        height: 42px;
    }
}

@media (max-width: 340px), (max-height: 570px) {
    body.lsw-login-body {
        padding: 8px;
        padding-top: clamp(38px, 11.5svh, 66px);
        place-items: start center;
    }

    .lsw-login-shell {
        width: min(100%, 350px);
    }

    .lsw-login-card {
        padding: 15px;
        border-radius: 24px;
    }

    .lsw-login-brand {
        margin-bottom: 10px;
    }

    .lsw-login-logo-wrap {
        width: 72px;
        height: 52px;
        border-radius: 16px;
    }

    .lsw-login-logo {
        width: 61px;
        height: 39px;
    }

    .lsw-login-title {
        font-size: 22px;
    }

    .lsw-login-subtitle {
        font-size: 11px;
        margin-bottom: 11px;
    }

    .lsw-login-badge {
        font-size: 9px;
        padding: 4px 9px;
    }

    .lsw-login-card .wrap-input100 {
        padding: 7px 12px 6px;
        margin-bottom: 8px;
        border-radius: 14px;
    }

    .lsw-login-card .label-input100 {
        font-size: 10px;
        padding-left: 30px;
    }

    .lsw-login-input-wrap > i {
        font-size: 14px;
    }

    .lsw-login-card .input100 {
        padding-left: 30px;
        font-size: 12px;
    }

    .lsw-login-help {
        align-items: flex-start;
        margin-bottom: 10px;
        font-size: 10px;
        line-height: 1.3;
    }

    .lsw-login-card .login100-form-btn {
        height: 40px;
        border-radius: 14px;
    }
}

/* Avatar picker override: placed at the end so the old template gallery styles never win. */
.profile-avatar-card .button-container.lsw-avatar-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: auto !important;
    margin-top: 10px;
    position: relative;
}

#avatarPickerPanel.lsw-avatar-picker-panel {
    width: min(calc(100% - 18px), 320px) !important;
    margin: 14px auto 4px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(247, 250, 255, .97) !important;
    border: 1px solid rgba(207, 218, 232, .95) !important;
    box-shadow: 0 16px 34px rgba(20, 31, 56, .12), inset 0 1px 0 rgba(255,255,255,.9) !important;
    text-align: left !important;
    overflow: hidden !important;
    position: relative !important;
}

#avatarPickerPanel .lsw-avatar-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(210, 220, 234, .85);
}

#avatarPickerPanel .lsw-avatar-picker-head strong,
#avatarPickerPanel .lsw-avatar-picker-head span {
    display: block;
}

#avatarPickerPanel .lsw-avatar-picker-head strong {
    color: var(--lsw-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

#avatarPickerPanel .lsw-avatar-picker-head span {
    margin-top: 3px;
    color: var(--lsw-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

#btnCloseAvatarPicker {
    display: inline-grid !important;
    place-items: center;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: linear-gradient(135deg, #9b6dff, #ff2b86) !important;
    box-shadow: 0 8px 16px rgba(240, 43, 131, .18);
}

#avatarContainer.lsw-avatar-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 48px) !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    max-height: 174px !important;
    margin: 0 auto !important;
    padding: 3px 3px 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}

#avatarContainer.lsw-avatar-grid .avatar-item {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid transparent !important;
    outline: 0 !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 0 !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(28, 39, 68, .08) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    cursor: pointer !important;
    line-height: 0 !important;
    float: none !important;
    vertical-align: initial !important;
    overflow: visible !important;
}

#avatarContainer.lsw-avatar-grid .avatar-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 12px !important;
}

#avatarContainer.lsw-avatar-grid .avatar-item:hover,
#avatarContainer.lsw-avatar-grid .avatar-item.is-selected {
    transform: translateY(-1px);
    border-color: transparent !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--lsw-action-gradient) border-box !important;
    box-shadow: 0 10px 20px rgba(240, 43, 131, .14), 0 0 0 3px rgba(240, 43, 131, .08) !important;
}

#avatarContainer.lsw-avatar-grid .avatar-selected-mark {
    position: absolute;
    right: -5px;
    top: -5px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--lsw-action-gradient);
    border: 2px solid #fff;
    box-shadow: 0 7px 14px rgba(240, 43, 131, .22);
    font-size: 10px;
}

#avatarContainer.lsw-avatar-grid .avatar-item.is-selected .avatar-selected-mark {
    display: inline-flex;
}

#avatarContainer.lsw-avatar-grid::-webkit-scrollbar {
    width: 5px;
}

#avatarContainer.lsw-avatar-grid::-webkit-scrollbar-thumb {
    background: rgba(141, 73, 216, .35);
    border-radius: 99px;
}

@media (max-width: 360px) {
    #avatarContainer.lsw-avatar-grid {
        grid-template-columns: repeat(4, 48px) !important;
    }
}
