/* CSS: Mobile Web UI Design */

/* ========================================
CSS VARIABLES & ROOT CONFIGURATION
======================================== */
:root {
    --primary-color: #1e5799;
    --primary-light: #3b82c7;
    --secondary-color: #ff9a56;
    --secondary-light: #ffad89;
    --primary-dark:  #2563eb;   /* biru 600 */


    --success-color: #4CAF50;
    --warning-color: #ff6b35;
    --error-color: #ff4757;
    --danger-color: #ff4757;
    --danger-light: #f25f6c;

    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;

    --background-primary: #f5f5f5;
    --background-secondary: #ffffff;
    --border-color: #eee;

    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);

    --border-radius: 8px;
    --border-radius-lg: 15px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --z-modal: 1000;
    --z-dropdown: 100;
    --z-fixed: 50;
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-primary);
    line-height: 1.6;
    background: #f4f4f4;
    color: var(--text-primary);
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
}


    /* ========================================
    UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

.text-danger {
    color: var(--error-color) !important;
}

.text-info {
    color: var(--primary-light) !important;
}

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

.text-black {
    color: #000000 !important;
}

.text-dark {
    color: #1a1a1a !important;
}

.text-dark-black {
    color: #111111 !important;
}

/* Scroll Utilities */
.scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
GRID SYSTEM
======================================== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
BUTTON COMPONENTS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.btn-danger:hover {
    background: var(--danger-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ---------- BASE BUTTON (SMALL) ---------- */
.btn-sm {
    display: inline-flex;          /* ikon + teks sejajar */
    align-items: center;
    gap: 0.25rem;                  /* jarak antara ikon & teks (≈4 px) */
    padding: 0.3rem 0.75rem;       /* (≈5 px 12 px) */
    font-size: 0.875rem;           /* 14 px */
    font-weight: 600;
    line-height: 1.25rem;          /* menjaga tinggi tombol */
    border-radius: 0.375rem;       /* 6 px */
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    user-select: none;
    text-decoration: none;         /* agar link-button tanpa underline */
}

.toggle-wrapper {
    margin-top: 1rem;             /* setara mt-4 Tailwind (16 px)  */
    display: flex;                /* setara flex                  */
    justify-content: center;      /* setara justify-center        */
}

/* ---------- OUTLINE STYLE ---------- */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.08);   /* sedikit biru muda */
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:active {
    background: rgba(59, 130, 246, 0.15);
}

/* ---------- DISABLED STATE (opsional) ---------- */
.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- IKON (Lucide/Fether) ---------- */
.btn-sm i {
    width: 1rem;   /* 16 px */
    height: 1rem;
    display: inline-block;
    stroke-width: 2px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* jika pakai ikon + teks */
    background-color: var(--primary-color, #3b82f6);
    color: white;
     border: 2px solid rgba(255, 255, 255, 0.2); /* Border putih transparan */
    border-radius: 8px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-icon i {
    width: 18px;
    height: 18px;
}

.btn-icon:hover {
    background-color: var(--primary-dark, #2563eb);
}

.btn-icon:active {
    transform: scale(0.96);
}

.btn-icon.round {
    border-radius: 50%;
    padding: 0;
    width: 36px;
    height: 36px;
}


/* ========================================
CARD COMPONENTS
======================================== */
.card {
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
    width: 100%;
}




.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
    width: 100%;
}

.card-header {
    color: white;
    padding: 1px 1px;
    font-size: 14px;
    font-weight: bold;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.card-header.secondary {
    background: var(--secondary-color);
}

.card-header.with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 21px;
    width: 100%;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    width: 100%;
}

.card-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    background-color: #007bff;
    color: white;
    font-size: 0.77rem;
    padding: 2px 6px;
    border-radius: 0px 5px 0px 5px;
    line-height: 1.3;
}

.card-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.verified-icon {
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.verified-text {
    font-size: 12px;
    color: #666;
}

/* ========================================
ANIMATION CLASSES
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s ease-out forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideInToast {
    to {
        transform: translateX(0);
    }
}

/* ========================================
LOADING COMPONENT
======================================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
TOAST NOTIFICATIONS
======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-medium);
    transform: translateX(100%);
    animation: slideInToast 0.3s ease-out forwards;
    max-width: 400px;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

.toast.info {
    background: var(--primary-color);
}

/* ========================================
MODAL COMPONENT
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* ========================================
DROPDOWN COMPONENT
======================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--background-primary);
}

/* ========================================
HEADER COMPONENT
======================================== */
/* Wrapper yang mengatur agar layout tetap di tengah dan ukuran terkunci */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
}

/* Header tetap tampil mobile */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    padding: 12px 0;
    box-shadow: var(--shadow-light);
    width: 100%;
}

/* Sesuaikan lebar konten */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Tambahan untuk konten bawah agar tidak tertutup header */
body {
    padding-top: 75px; /* sesuaikan dengan tinggi header */
}

/* Style lainnya tetap sama */
.logo {

    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: transparent;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e5799;
    font-weight: bold;
}

.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-box {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: 12px center;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.2);
}

.search-box::placeholder {
    color: #999;
}

.notification-icon {
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    display: flex;
     align-items: center;
    justify-content: center;
}


/* ========================================
MAIN CONTENT LAYOUT
======================================== */
.main-content {
    background-color: #f4f4f4;
    max-width: 480px;
    margin: 0;
    padding: 0;
}

/* ========================================
HERO SECTION
======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border-radius: var(--border-radius-lg);
    padding: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    color: #d2691e;
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #ffd700;
    font-size: 18px;
}

.hero-image {
    width: 120px;
    height: 140px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><rect width="40" height="80" x="30" y="20" fill="%23d2b48c" rx="20"/><rect width="20" height="40" x="40" y="40" fill="%23f4a460" rx="10"/><circle cx="50" cy="80" r="8" fill="%23654321"/></svg>') no-repeat center;
    background-size: contain;
}

/* ========================================
CAROUSEL COMPONENT
======================================== */
@keyframes slide-in-left {
    from { transform: translateX(-30px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes slide-in-right {
    from { transform: translateX(30px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-slide-in-left  { animation: slide-in-left 0.6s ease-out both; }
.animate-slide-in-right { animation: slide-in-right 0.6s ease-out both; }
.fade-in { animation: fade-in 0.8s ease-out both; }

.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 15px;
    aspect-ratio: 16/9;
    max-height: 500px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    object-fit: cover;
    object-position: center;
}

.carousel-slide .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
}

.carousel-slide .overlay h1 {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 0;          /* geser sesuai selera */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    margin: 0;
    background: transparent;
    padding: 0;
    min-height: auto;
}

.carousel-dots .dot {
    width: 6px !important;
    height: 6px !important;
    background: #ccc !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin: 0 2px !important;
    flex-shrink: 0;
}

.carousel-dots .dot:hover {
    background: #999 !important;
}

.carousel-dots .dot.active {
    background: #1e5799 !important;
    transform: scale(1.2) !important;
}


/* ========================================
BOTTOM NAVIGATION
======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: var(--z-fixed);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.nav-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    position: relative;
    padding: 6px 6px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.nav-item:hover {
    background: var(--background-primary);
    transform: translateY(-2px);
}

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

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-badge {
    position: absolute;
    top: 0px;
    right: 13px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* ========================================
TABLE STYLING
======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

thead {
    background-color: var(--primary-color);
    color: #fff;
}

tfoot {
    background-color: var(--background-primary);
    font-weight: 600;
}

/* Compact Table */
    .table-sm th,
    .table-sm td {
    padding: 8px 12px;
    font-size: 13px;
}

/* Hoverable Rows */
    .table-hover tbody tr:hover {
    background-color: rgba(30, 87, 153, 0.05);
    cursor: pointer;
}

/* Bordered Table */
    .table-bordered th,
    .table-bordered td {
    border: 1px solid var(--border-color);
}

/* Borderless Table */
    .table-borderless th,
    .table-borderless td {
    border: none;
}

/* Striped Rows */
    .table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
    .table-striped tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Responsive Wrapper */
    .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Optional: Rounded corners for thead only */
    .table-rounded thead th:first-child {
    border-top-left-radius: var(--border-radius);
}
    .table-rounded thead th:last-child {
    border-top-right-radius: var(--border-radius);
}

tfoot {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-secondary);
    border-top: 2px solid var(--border-color);
}

tfoot td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
}


/* ========================================
MODAL COMPONENT
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

  /* Modal Header, Body, Footer (optional structure) */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-body {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--error-color);
}
/* ========================================
GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* ========================================
LAYOUT GRID SYSTEM
======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
}

[class^="col-"],
[class*=" col-"] {
    padding-right: 8px;
    padding-left: 8px;
    box-sizing: border-box;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }


/* ========================================
FORM & INPUT
======================================== */
.form-control,
.form-control-sm,
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.4rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus,
.form-control-sm:focus,
textarea:focus,
select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder,
textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* ========================================
MENU & GRID
======================================== */
.menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.menu-grid,
.menu-grid.fixed-4,
.menu-extra-items {
    display: grid;
    gap: 15px;
}

.menu-grid.fixed-4 {
    grid-template-columns: repeat(4, 1fr);
}

.menu-extra-items {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 15px;
}

/* ========================================
TEXT STYLES
======================================== */
.text-center {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-justify {
    text-align: justify;
}
.card-title {
    font-size: 12px;
}

.card-content {
    padding: 10px;
}

/* ========================================
NAVIGATION TABS
======================================== */
.nav-tabs {
    border-bottom: 1px solid #eee;
    display: flex;
    margin-bottom: 1rem;
    background: transparent;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.2rem;
    color: #555;
    background: none;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    font-weight: 600;
    background-color: transparent;
}

.nav-tabs .nav-link.active::after {
    content: "";
    display: block;
    height: 3px;
    background: #007bff;
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}

/* ========================================
HOME BASE
======================================== */

/* Mobile-first design - Base styles untuk mobile */

/* Menu Section */
.menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 1px 0 8px 0px;
    line-height: 1.4;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 5px 5px 0 0;
    border-radius: 12px;
    background: transparent;
}

.menu-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.02);
}

.menu-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 20px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-img {
    width: 53px;
    height: 53px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.menu-icon.lainnya {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6c757d, #8d959e);
}


.menu-label {
    font-size: 11px;
    color: #495057;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

/* Program Section */
.program-section {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    margin-right: 0;
    margin-left: 0;
}

.btn-view-all {
    position: absolute;
    top: 8px;
    right: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    font-size: 10px;
    font-weight: 500;
    color: #007bff;
    background: #e6f0ff;

    padding: 6px 12px;
    min-height: 32px;
    min-width: 80px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    text-decoration: none;

    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-view-all:hover {
    background: #d0e5ff;
    color: #0056b3;
    text-decoration: none;
}

.icon-sm { width: 14px; height: 14px; vertical-align: -2px; }


.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    padding-right: 100px;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* Vertical Program Layout */
.program-item {
    display: flex;
    gap: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #e9ecef;
}

.program-thumb {
    width: 170px;
    height: 100%;
    object-fit: fill;
    border-radius: 6px;
    flex-shrink: 0;
    opacity: 0.9;
}

.program-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ⬅️ ini yang penting */
    padding: 0px;
    margin:0px;
    padding-top: 0px; /* atur sesuai kebutuhan */
    padding-bottom: 0px; /* atur sesuai kebutuhan */
    margin-top: 0px; /* atur sesuai kebutuhan */
}

.program-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.program-meta {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 2px;
}

.program-meta strong {
    color: #28a745;
}

.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Horizontal scroll layout */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scroll-x::-webkit-scrollbar {
    display: none;
}

.fundraising-row {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    width: max-content;
    min-width: 100%;
}

.fundraising-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 200px;
    height: 100%;
    object-fit: fill;
    flex-shrink: 0;
    transition: all 0.25s ease;
    object-fit: fill;
    opacity: 0.9;
}

.fundraising-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.fundraising-card .card-image {
    width: 100%;
    height: 100px;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
}



.fundraising-card .card-content {
    padding: 10px;
}

.fundraising-card .card-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #2c3e50;
}

.fundraising-card .small {
    font-size: 11px;
    margin-bottom: 6px;
}

.fundraising-card .small strong {
    color: #28a745;
}


/* Hilangkan underline di semua link */
a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* Smooth scrolling untuk horizontal scroll */
.scroll-x {
    scroll-behavior: smooth;
}

/* Improved text readability */
.program-title,
.card-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading state untuk gambar */
.program-thumb,
.menu-img {
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
}

.program-thumb:not([src]),
.menu-img:not([src]) {
    opacity: 0.7;
}

/* ========================================
TAB CONTENT
======================================== */
.tab-content > .tab-pane {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.tab-content > .tab-pane.active.show {
    opacity: 1;
    height: auto;
    overflow: visible;
}

/* ========================================
DONATION SECTION
======================================== */
.donation-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.donation-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.2rem;
}

.donation-prefix {
    margin-right: 8px;
    font-weight: bold;
}

.donation-input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    outline: none;
    text-align: right;
    background-color: transparent;
    color: #333;
}

.donation-suggestion {
    background: white;
    padding: 1rem;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    z-index: 100;
}

.suggestion-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.suggestion-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.suggestion-buttons button {
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.suggestion-buttons button:hover {
    background: #e0e0e0;
}

.btn-lanjut {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

/* ========================================
BLUR OVERLAY EFFECT
======================================== */
body.blur-active::before {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
}

#blurOverlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 998;
    display: none;
}

#donationFocusWrapper {
    position: relative;
    z-index: 999;
}

/* ========================================
ANIMATIONS
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
CUSTOM PANE: METODE PEMBAYARAN
======================================== */
.tab-pane-payment {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #fff;
    overflow-y: auto;
    padding: 1rem;
    animation: slideInLeft 0.3s ease-in-out;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.tab-pane-payment.active {
    display: block;
}

/* Header Navigasi */
.tab-pane-payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-pane-payment-header .back-btn {
    font-size: 1.2rem;
    border: none;
    background: none;
    color: #007bff;
    cursor: pointer;
}

/* Konten */
.metode-group {
    margin-bottom: 1.5rem;
}

.metode-group h6 {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.75rem;
}

.metode-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.metode-item:hover {
    background: #e2e6ea;
}

/* Animasi */
@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* hr */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
}
hr.soft {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}
hr.bold {
    border: 0;
    border-top: 2px solid #007bff;
    margin: 2rem 0;
}
hr.dashed {
    border: 0;
    border-top: 1px dashed #aaa;
    margin: 1.5rem 0;
}

.hr-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

.hr-with-text::before,
.hr-with-text::after {
    content: "";
    flex: 1;
    border-top: 1px solid #ccc;
    margin: 0 1rem;
}

.hr-with-text span {
    white-space: nowrap;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}


/* ========================================
CUSTOM FORM CHECKED
======================================== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #007bff;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.form-check input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-check input[type="checkbox"]:checked::after {
    opacity: 1;
}

.form-check label {
    flex: 1;
    cursor: pointer;
}
.btn-block { width: 100%; }

/* ========================================
SPACING UTILITIES
======================================== */
.mt-24   { margin-top: 1.5rem !important; }   /* = 24 px  */
.mb-24   { margin-bottom: 1.5rem !important; }
.my-24   { margin: 1.5rem 0 !important; }

/* opsional, kalau butuh ekstra lega */
.mt-32   { margin-top: 2rem !important; }


/* STYLE SHOW PROGRAM DETAIL */

        /* Prose styles */
        .prose {
            max-width: none;
            color: #475569;
        }

        .prose h1,
        .prose h2,
        .prose h3,
        .prose h4,
        .prose h5,
        .prose h6 {
            color: #1e293b;
            margin-top: 1.5em;
            margin-bottom: 0.5em;
        }

        .prose p {
            margin-bottom: 1em;
            color: #475569;
        }

        .prose a {
            color: #3b82f6;
            text-decoration: none;
        }

        .prose a:hover {
            text-decoration: underline;
        }

        .prose strong {
            color: #1e293b;
        }

        .prose img {
            display: block;
            max-width: 100%;
            height: auto;
            margin-left: auto;
            margin-right: auto;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .prose figure {
            margin: 1rem;
        }

        .prose figcaption {
            text-align: center;
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 0.5rem;
            font-style: italic;
        }

        .prose figure.centered-image img {
            display: block;
            margin-left: auto;
            margin-right: auto;
            max-width: 100%;
            height: auto;
            border-radius: 0.5rem;
            box-shadow:
                0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        /* Custom list styles */
        .prose ul,
        .prose ol {
            margin: 0 0 1rem 0;
            padding-left: 1.5rem;
            list-style: none;
        }

        .prose li {
            position: relative;
            padding-left: 1.25rem;
            margin-bottom: .5rem;
        }

        .prose li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.6em;
            width: 0.4em;
            height: 0.4em;
            border-radius: 50%;
            background: var(--primary-color, #3b82f6);
        }

        .prose ul ul li::before,
        .prose ol ul li::before,
        .prose ul ol li::before,
        .prose ol ol li::before {
            background: var(--primary-dark, #2563eb);
            transform: scale(0.85);
        }

        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Content collapse/expand */
        .content-wrapper {
            position: relative;
            transition: all 0.3s ease;
        }

        .content-wrapper.collapsed {
            max-height: 400px;
            overflow: hidden;
        }

        .content-wrapper.expanded {
            max-height: none;
        }

        .content-wrapper.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(transparent, white);
            pointer-events: none;
        }

        .content-wrapper.expanded::after {
            display: none;
        }

        /* Main description specific styles */
        #deskripsi-wrapper.collapsed {
            max-height: 400px;
            overflow: hidden;
        }

        #deskripsi-wrapper.expanded {
            max-height: none;
        }

        #deskripsi-wrapper.expanded .toggle-btn {
            display: inline-flex;
            margin-top: 1rem;
        }

        /* Banner image styles */
        .banner-img-wrapper {
            max-width: 100%;
            height: auto;
            margin: 0.1rem auto;
            border-radius: 0.5rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            position: relative;
        }

        .banner-img-wrapper img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 0.5rem;
        }

        .banner-img-wrapper::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
            border-radius: 0.5rem;
        }

        .toggle-wrapper {
            margin-top: 16px;
        }

        .toggle-btn {
            outline: none;
            transition: color .3s ease;
        }

        /* Timeline styles */
        .timeline {
            margin: 0;
            padding: 0;
            position: relative;
            padding-left: 0;
            padding-top: 0;
            padding-bottom: 0;
            width: 100%;
        }

        .timeline::before {
            border-radius: .1rem;
            background-color: #999;
            bottom: 0;
            content: "";
            left: 6.5px;
            margin: 0;
            position: absolute;
            top: 0;
            width: 2px
        }

        .timeline>div {
            margin-bottom: 10px;
            margin-right: 0;
            position: relative;
            padding-bottom: 10px;
        }

        .timeline>div:last-child {
            margin-bottom: 0;
        }

        .timeline>div::after,
        .timeline>div::before {
            content: "";
            display: table
        }

        .timeline>div>.timeline-item {
            background-color: #fff;
            margin-left: 30px;
            margin-right: 0;
            margin-top: 0;
            padding: 0;
            position: relative
        }

        .timeline>div>.timeline-item>.time {
            color: #999;
            float: right;
            font-size: 12px;
            padding: 10px
        }

        .timeline>div>.timeline-item>.timeline-header {
            padding: 0;
            margin: 0;
            font-size: 14px;
            font-weight: bold;
        }

        .timeline>div>.timeline-item>.timeline-header>a {
            font-weight: 600
        }

        .timeline>div>.timeline-item>.timeline-body {
            padding: 0;
            font-size: 12px;
            line-height: 1.5;
        }

        .timeline>div>.timeline-item>.timeline-body,
        .timeline>div>.timeline-item>.timeline-footer {
            padding: 0;
            display: flex;
            gap: 10px;
            border-radius: 0;
        }

        .timeline>div>.timeline-item>.timeline-body>img {
            margin: 0
        }

        .timeline>div>.timeline-item>.timeline-body ol,
        .timeline>div>.timeline-item>.timeline-body ul,
        .timeline>div>.timeline-item>.timeline-body>dl {
            margin: 0
        }

        .timeline>div>.timeline-item>.timeline-footer>a {
            color: #fff
        }

        .timeline>div>.fa,
        .timeline>div>.fab,
        .timeline>div>.fad,
        .timeline>div>.fal,
        .timeline>div>.far,
        .timeline>div>.fas,
        .timeline>div>.ion,
        .timeline>div>.svg-inline--fa {
            background-color: var(--primary-color, #3b82f6);
            border-radius: 50%;
            font-size: 11px;
            height: 15px;
            left: 0px;
            line-height: 15px;
            position: absolute;
            text-align: center;
            top: 0;
            width: 15px
        }

        .timeline>div>.svg-inline--fa {
            padding: 7px
        }

        .timeline>.time-label>span {
            border-radius: 4px;
            background-color: #fff;
            display: inline-block;
            font-weight: 600;
            padding: 0
        }

        .timeline-inverse>div>.timeline-item {
            box-shadow: none;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6
        }

        .timeline-inverse>div>.timeline-item>.timeline-header {
            border-bottom-color: #dee2e6
        }


        .timeline-footer .btn {
            transition: background-color 0.2s, box-shadow 0.2s;
        }

        .timeline-footer .btn:hover {
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        /* Utility classes */
        .mb-3 {
            margin-bottom: 12px;
        }

        .mb-4 {
            margin-bottom: 16px;
        }

        .mt-4 {
            margin-top: 16px;
        }

        /* Responsive design */
        @media (max-width: 480px) {
            .container {
                padding: 16px;
            }

            .card-body {
                padding: 16px;
            }

            .grid {
                gap: 16px;
            }
        }

        /* Copy feedback */
        .copy-success {
            background: #10b981 !important;
            color: white !important;
        }

        /* Loading state */
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }
        .callout {
            display: flex;
            align-items: center;
            /* <-- ubah dari flex-start ke center */
            padding: 0.2rem 1rem;
            margin: 0;
            border-left-width: 0px;
            border-radius: 5rem;
            background-color: #e7f1ff;
            color: #084298;
            font-size: 0.83rem;
            line-height: 1.4;
            position: relative;
            flex-wrap: nowrap;
            overflow: hidden;
            /* penting agar tidak turun */
        }


        .callout-icon {
            width: 30px;
            height: 30px;
            margin-right: 0.75rem;
            flex-shrink: 0;
        }

        .callout-content {
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: clamp(0.6rem, 2.5vw, 0.83rem);
        }
        .stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
            /* kira-kira text-sm */
            color: #6c757d;
            /* mirip text-muted */
            font-weight: 600;
            /* mirip fw-semibold */
            margin-top: 0.25rem;
        }

        .stat-left i {
            vertical-align: middle;
            margin-left: 0.25rem;
        }

        .stat-right {
            white-space: nowrap;
        }

        @media (max-width: 576px) {
            .stat-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.25rem;
            }

            .stat-right {
                align-self: flex-end;
            }
        }
        .badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1;
            white-space: nowrap;
        }

        .bg-primary {
            background: linear-gradient(90deg, #3b82f6, #2563eb);
            color: #ffffff;
        }

        .donation-card {
            background: white;
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .donation-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        }

        .stats-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }

        .stat-item {
            text-align: left;
            flex: 1;
        }

        .stat-item:not(:last-child) {
            border-right: 1px solid #e5e7eb;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 0.875rem;
            color: #6b7280;
            font-weight: 500;
        }

        .progress-container {
            margin-bottom: 10px;
        }

        .progress-bar {
            height: 12px;
            background: linear-gradient(90deg, #f3f4f6, #e5e7eb);
            border-radius: 25px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #2563eb);

            border-radius: 25px;
            position: relative;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        .progress-text {
            text-align: center;
            margin-top: 12px;
            font-size: 1.125rem;
            font-weight: 600;
            color: #059669;
        }

        .unlimited-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
            margin-top: 12px;
        }

        .unlimited-badge::before {
            content: '∞';
            font-size: 1.25rem;
        }

        .donation-info {
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
            border: 1px solid #e2e8f0;
        }

        .donation-amount {
            font-size: 1.875rem;
            font-weight: 800;
            color: #059669;
            margin-bottom: 8px;
            text-align: center;
        }

        .donation-label {
            text-align: center;
            color: #64748b;
            font-size: 0.875rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .icon {
            width: 16px;
            height: 16px;
            margin-right: 6px;
        }

        .percentage-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            line-height: 1.1;
            font-size: 13px;
        }

        .percentage-circle .days {
            font-size: 12px;
            font-weight: normal;
        }

        /* Program Section */
        .program-section-2 {
            position: relative;
            padding: 8px;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

            margin-right: 0;
            margin-left: 0;
        }

        .program-title-2 {
            font-size: 12px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .program-meta-just,
        .text-primary {
            font-size: 0.785rem;
            word-break: break-word;
        }

        .program-meta-just {
            color: #020202;
        }

        .progress-container-2 {
            margin-bottom: 2px;
        }

        .progress-bar-2 {
            height: 4px;
            background: linear-gradient(90deg, #f3f4f6, #e5e7eb);
            border-radius: 25px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .progress-fill-2 {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #2563eb);
            border-radius: 25px;
            position: relative;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        }

        .program-thumb-2 {
            width: 170px;
            height: 100%;
            object-fit: fill;
            border-radius: 6px;
            flex-shrink: 0;
            opacity: 0.9;
 display: block;
        }

        .program-stats {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: nowrap;
            width: 100%;
            border: none;
        }

        .stat-item {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .text-start {
            text-align: left;
        }

        .text-end {
            text-align: right;
        }

        .stat-item.text-start {
            flex: 2 1 0%;
            text-align: left;
        }

        /* Bagian kanan: 1 bagian */
        .stat-item.text-end {
            flex: 1 1 0%;
            text-align: right;
        }

        .program-stats,
        .program-stats * {
            border: none !important;
            box-shadow: none !important;
            border-bottom: none !important;
        }
