* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #54289b;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --violet: #8647ea;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;

    --primary-dark: #400d74;
    --bg-body: #F2F4F7;
    --bg-card: #FFFFFF;
    --text-main: #1C1C1E;
    --text-sub: #8E8E93;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.17);
    --radius: 12px;

    --primary-light: rgba(148, 22, 255, 0.67);
    --accent-glow: #fcd34d;
    --glass: rgba(255, 255, 255, 0.95);
    --nav-height: 70px;

    --accent: #ffc107;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --modal-bg: rgba(255, 255, 255, 0.95);

    --primary-blue: #007AFF;
    --text-dark: #1C1C1E;
    --text-gray: #8E8E93;
    --bg-gray: #F2F2F7;
    --divider: #E5E5EA;
    --error-red: #FF3B30;
    --input-bg: #F2F2F7;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    overflow-x: hidden;
}
a {
    text-decoration: none;
    cursor: pointer;
}

a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    cursor: pointer;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* Header Styles */
.header {
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Search Bar */
.search-bar {
    background: #ffffff36;
    border-radius: 25px;
    padding: 10px 20px;
    margin: 15px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.menu-item:hover {
    transform: translateY(-3px);
}

.menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.menu-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
}

/* Sections */
.section {
    padding: 20px;
}

.section-list {
    padding-top: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.see-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* Promo Cards */
.promo-cards {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.promo-card {
    min-width: 200px;
    height: 120px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.promo-discount {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 20px;
}

.promo-description {
    font-size: 12px;
    opacity: 0.9;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* Package Cards */

.package-mitra-cards {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

.package-mitra-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    height: 100%;
}

.package-mitra-image {
    width: 100px;
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    display: flex;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex: 1;
}

.package-mitra-info {
    padding: 10px;
    flex: 1;
}


.package-cards {
    display: grid;
    gap: 15px;
}

.package-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    height: 100%;
}

.package-card-detail {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    padding: 10px;
}
.package-image {
    width: 100px;
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    display: flex;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex: 0.7;
}


.package-image-detail {
    width: 100px;
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    display: flex;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex: 1;
}

.package-info {
    padding: 10px;
    flex: 1;
}

.package-info-two {
    padding: 10px;
    flex: 0.7;
}

.package-star {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 1px;
}

.package-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.package-price {
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.package-deposite {
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.package-details {
    color: var(--black);
    font-size: 10px;
    margin-top: 10px;
}

.package-detail-bangets {
    color: #8a8383;
    font-size: 10px;
    margin-bottom: 5px;
}

.package-details-two {
    color: var(--gray);
    font-size: 10px;
}

.reading-section {
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    color: white;
    padding: 20px;
    margin-bottom: 80px;
}

.reading-section-paket {
    padding: 20px;
}

.reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reading-title {
    font-size: 18px;
    font-weight: 600;
}

.book-preview {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.book-card {
    min-width: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.book-card-external {
    min-width: 200px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 5px;
    text-align: center;
}

.book-icon {
    font-size: 50px;
}

.book-title {
    font-size: 12px;
    font-weight: 500;
}

.cover-paket {
    width: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.cover-book {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.cover-banner-paket {
    width: 100%;
    border-radius: 10px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.home-banner {
    height: 150px;
    background: url('https://sutra-travel.com/web/assets2026/image/banner-data/banner.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: normal;
    color: white;
    margin: 10px;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
}


.about-banner {
    height: 250px;
    background: url('https://sutra-travel.com/web/assets2026/image/banner-data/CABANG-AGEN.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: normal;
    color: white;
    margin: 10px;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
}


.keunggulan-banner {
    height: 250px;
    background: url('https://sutra-travel.com/web/assets2026/image/banner-data/KEUNGGULAN.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: normal;
    color: white;
    text-align: center;
}

.brand-banner {
    height: 210px;
    background: url('https://sutra-travel.com/web/assets2026/image/banner-data/BRANDS-SUTRA.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: normal;
    color: white;
    margin: 10px;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
}

.ai-button {
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: #4e4e4e;
    text-decoration: none;
    display: inline-block;
}

.mb-80 {
    margin-bottom: 80px;
}

.button-10 {
   display: flex;
   flex-direction: column;
   align-items: center;
   padding: 6px 14px;
   font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
   border-radius: 6px;
   border: none;

   color: #fff;
   background: linear-gradient(180deg, var(--primary) 0%, var(--primary)  100%);
   background-origin: border-box;
   box-shadow: 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2);
   user-select: none;
   -webkit-user-select: none;
   touch-action: manipulation;
}

.button-20 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    border-radius: 6px;
    border: none;

    color: #fff;
    background: linear-gradient(180deg, var(--violet) 0%, var(--violet) 100%);
    background-origin: border-box;
    box-shadow: 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-10:focus {
    box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2), 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
    outline: 0;
}

.member-profile {
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    border-radius: 12px;
    padding: 10px;
    margin: 10px 20px 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: white;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 32px;
    color: #007bff;
}

/* CSS Member*/
.points-card {
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    border-radius: 12px;
    padding: 10px;
    margin: 10px 10px 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: white;
}

.points-info h3 {
    font-size: 12px;
    margin-bottom: 4px;
}

.points-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.points-value span {
    font-size: 12px;
    color: goldenrod;
    font-weight: 400;
}

.points-action {
    background: linear-gradient(135deg, #7a24e8 0%, #0056b3 100%);
    color: white;
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.points-action:hover {
    transform: scale(1.05);
}

/* Member Benefits Section */
.benefits-section {
    padding: 0 20px 20px 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    background: #e3f2fd;
    border-color: #007bff;
    transform: translateY(-2px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.benefit-icon.blue { background: #e3f2fd; color: #007bff; }
.benefit-icon.green { background: #e8f5e9; color: #43a047; }
.benefit-icon.orange { background: #fff3e0; color: #fb8c00; }
.benefit-icon.purple { background: #f3e5f5; color: #8e24aa; }
.benefit-icon.red { background: #ffebee; color: #e53935; }
.benefit-icon.teal { background: #e0f2f1; color: #00897b; }

.benefit-text h4 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.benefit-text p {
    font-size: 11px;
    color: #666;
}

/* Member Menu List */
.member-menu {
    padding: 0 20px 24px 20px;
}

.menu-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.menu-item-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f2f3f7;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #333;
}

.menu-item-member:last-child {
    border-bottom: none;
}

.menu-item-member:hover {
    background: #f8f9fa;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon-member {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.menu-icon-member.blue { background: #e3f2fd; color: #007bff; }
.menu-icon-member.green { background: #e8f5e9; color: #43a047; }
.menu-icon-member.orange { background: #fff3e0; color: #fb8c00; }
.menu-icon-member.purple { background: #f3e5f5; color: #8e24aa; }
.menu-icon-member.gray { background: #f2f3f7; color: #666; }

.menu-text {
    display: flex;
    flex-direction: column;
}

.menu-text span {
    font-size: 14px;
    font-weight: 600;
}

.menu-text small {
    font-size: 11px;
    color: #999;
}

.menu-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Badge */
.badge {
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Progress Bar */
.progress-section {
    padding: 0 20px 20px 20px;
}

.progress-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.progress-header span {
    font-size: 12px;
    opacity: 0.9;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 10px;
    width: 65%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 11px;
    opacity: 0.9;
}


/* CSS Marketing*/
.member-info {
    flex: 1;
}

.member-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.member-role {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-role i {
    color: #ffd700;
}

.member-stats {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.stats-section {
    padding: 20px;
    margin-top: -20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.stat-icon.blue { background: #e3f2fd; color: #007bff; }
.stat-icon.green { background: #e8f5e9; color: #43a047; }
.stat-icon.orange { background: #fff3e0; color: #fb8c00; }
.stat-icon.purple { background: #f3e5f5; color: #8e24aa; }

.stat-info h4 {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    margin-top: 0px;
}

.stat-info .value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.stat-info .change {
    font-size: 11px;
    color: #43a047;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-info .change.negative {
    color: #e53935;
}

/* Chart Section */
.chart-section {
    padding: 0 20px 20px 20px;
    margin-bottom: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.chart-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 220px;
}

/* Sales History Section */
.history-section {
    padding: 0 20px 24px 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.view-all {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.history-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.history-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f2f3f7;
    cursor: pointer;
    transition: background 0.2s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 12px;
}

.history-icon.flight { background: #e3f2fd; color: #007bff; }
.history-icon.hotel { background: #ffebee; color: #e53935; }
.history-icon.train { background: #f3e5f5; color: #8e24aa; }
.history-icon.car { background: #e8f5e9; color: #43a047; }

.history-info {
    flex: 1;
}

.history-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.history-info p {
    font-size: 12px;
    color: #999;
}

.history-amount {
    text-align: right;
}

.history-amount .price {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.history-amount .commission {
    font-size: 11px;
    color: #43a047;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.history-status {
    margin-left: 12px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.success {
    background: #e8f5e9;
    color: #43a047;
}

.status-badge.pending {
    background: #fff3e0;
    color: #fb8c00;
}

.status-badge.cancelled {
    background: #ffebee;
    color: #e53935;
}

/* Quick Actions */
.quick-actions {
    padding: 0 20px 20px 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-icon.blue { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; }
.action-icon.green { background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); color: white; }
.action-icon.orange { background: linear-gradient(135deg, #fb8c00 0%, #f57c00 100%); color: white; }
.action-icon.purple { background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%); color: white; }

.action-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* Performance Card */
.perf-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.perf-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.perf-header i {
    opacity: 0.8;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.perf-item {
    text-align: center;
}

.perf-item .value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.perf-item .label {
    font-size: 11px;
    opacity: 0.9;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Gift */
/* --- Floating Gift Box Container --- */
.gift-trigger-container {
    position: relative;
    cursor: pointer;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.gift-trigger-container:hover {
    transform: scale(1.05);
}

/* Notification Badge */
.badge-new {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

/* --- CSS 3D Gift Box --- */
.gift-box {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.box-base {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(238, 77, 45, 0.4);
    z-index: 2;
}

.box-base::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: var(--accent);
    left: 50%;
    transform: translateX(-50%);
}

.box-base::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    background: var(--accent);
    top: 50%;
    transform: translateY(-50%);
}

.box-lid {
    position: absolute;
    width: 110px;
    height: 110px;
    background: #ff6b4a;
    top: -10px;
    left: -5px;
    border-radius: 12px;
    z-index: 3;
    transform-origin: top left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.box-lid::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: var(--accent);
    left: 50%;
    transform: translateX(-50%);
}

.box-lid::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    background: var(--accent);
    top: 50%;
    transform: translateY(-50%);
}

/* Bow Tie */
.bow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    z-index: 4;
}

.bow::before, .bow::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--accent);
    border-radius: 50% 50% 0 50%;
    transform: rotate(45deg);
    top: 0;
}

.bow::before { left: 0; border-right: none; border-bottom: none; }
.bow::after { right: 0; border-left: none; border-top: none; }

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.gift-trigger-container.shaking .gift-box {
    animation: shake 0.5s ease-in-out infinite;
}

/* Open State */
.gift-trigger-container.opened .box-lid {
    transform: rotate(-110deg) translate(-20px, -20px);
    opacity: 0;
}

.gift-trigger-container.opened .box-base {
    transform: scale(0.8);
    opacity: 0;
    transition: 0.3s;
}

.gift-trigger-container.opened .bow {
    opacity: 0;
    transition: 0.3s;
}

/* --- Prize Modal --- */
.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Bottom sheet style on mobile */
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.prize-modal.active {
    opacity: 1;
    pointer-events: all;
}

.prize-card {
    background: var(--modal-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 24px 24px 0 0;
    padding: 30px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

@media (min-width: 480px) {
    .prize-modal {
        align-items: center;
    }
    .prize-card {
        border-radius: 24px;
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    .prize-modal.active .prize-card {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.prize-modal.active .prize-card {
    transform: translateY(0);
}

/* Decorative Background in Card */
.card-bg-shape {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(238, 77, 45, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.card-bg-shape.two {
    top: auto;
    bottom: -30px;
    left: auto;
    right: -30px;
    background: rgba(255, 193, 7, 0.1);
}

.prize-content {
    position: relative;
    z-index: 1;
}

.prize-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: inline-block;
    animation: popIn 0.5s 0.3s backwards;
}

.prize-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    animation: slideUp 0.5s 0.4s backwards;
}

.prize-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    animation: slideUp 0.5s 0.5s backwards;
}

.btn-claim {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
    transition: transform 0.2s, background 0.2s;
    animation: slideUp 0.5s 0.6s backwards;
}

.btn-claim:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-claim:active {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

/* Keyframes for Modal Content */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Arah Kiblat CSS */
.location-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #007AFF;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    cursor: pointer;
}

.location-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    fill: #007AFF;
}

.date-display {
    color: #b5adad;
    font-size: 14px;
    margin-top: 5px;
}

.next-prayer-card {
    background: linear-gradient(130deg, #54289b, #0f0316, #54289b);
    margin: 10px 20px 20px 20px;
    border-radius: 20px;
    padding: 10px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
    text-align: center;
    position: relative;
}

.next-prayer-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.next-prayer-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.countdown-timer {
    font-size: 32px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Prayer List */
.prayer-list {
    padding: 0 20px;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 18px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.prayer-item.active {
    background-color: #e6f2ff;
    border-color: #007AFF;
}

.prayer-item.active .prayer-name {
    color: #007AFF;
    font-weight: 700;
}

.prayer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prayer-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.prayer-item.active .prayer-icon {
    background-color: #007AFF;
    color: white;
}

.prayer-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.prayer-time {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Qibla Section */
.qibla-section {
    padding: 20px;
    margin-bottom: 100px;
}

.qibla-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.compass-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    position: relative;
}

.compass-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.compass-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.compass-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qibla-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 90px;
    background-color: #007AFF;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}

.qibla-arrow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -6px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #007AFF;
}

.qibla-info {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.qibla-degree {
    font-weight: 700;
    color: #333;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* --- BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: auto;
    right: auto;
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.43);
    z-index: 100;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.5);
}

.nav-item {
    flex: 0 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.nav-item:hover svg, .nav-item.active svg {
    transform: translateY(-3px);
    fill: var(--primary);
}

/* Special Center Button (Member) */
.nav-item-center {
    flex: 0 0 65px;
    position: relative;
    top: -20px; /* Push up */
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(6, 78, 59, 0.4);
    border: 4px solid #f3f4f6;
    color: var(--white) !important;
    z-index: 10;
}

.nav-item-center svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
    margin-bottom: 0;
}

.nav-item-center span {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.nav-item-center:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 15px 30px rgba(134, 71, 234, 0.5);
}

/* --- DROPUP MENU (Tentang Kami) --- */
.dropup-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropup-menu {
    position: fixed;
    bottom: 80px; /* Above the nav bar */
    right: -10px;
    background: var(--white);
    border-radius: 12px;
    padding: 8px 0;
    width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
}

.dropup-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
}

.dropup-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropup-item {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropup-item:last-child {
    border-bottom: none;
}

.dropup-item:hover {
    background: #f9fafb;
    color: var(--primary);
}


/* LoginMember */
.brand-section {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.welcome-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 12px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 7px;
    border-radius: 12px;
    border: 1px solid var(--divider);
    background-color: var(--input-bg);
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder {
    color: #C7C7CC;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 7px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
    border: none;
    margin-bottom: 10px;
    display: flex;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:active {
    background-color: var(--primary-dark);
    transform: scale(0.98);
}

.btn-google {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--divider);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.btn-google:active {
    background-color: #F9F9F9;
    transform: scale(0.98);
}

/* Footer */
.footer-section {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0;
    color: var(--text-gray);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--divider);
}

.divider span {
    padding: 0 10px;
}



@media (max-width: 500px) {
    .app-container {
        width: 100%;
        border-radius: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
}

