/* ====== GLOBAL THEMES & VARIABLES ====== */
:root {
    --bg-light: #f7fafc;
    --bg-light-hover: #edf2f7;
    --text-dark: #4a5568;
    --border-light: #e2e8f0;
    --primary: #4361ee;
    --primary-text: white;
    --shadow: rgba(67, 97, 238, 0.2);
}

[data-theme="dark"] {
    --bg-light: #2d3748;
    --bg-light-hover: #1a202c;
    --text-dark: #e2e8f0;
    --border-light: #4a5568;
    --primary: #4361ee;
    --primary-text: white;
    --shadow: rgba(67, 97, 238, 0.4);
}
/* ====== PAYMENT OPTIONS ====== */
.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.payment-option:hover {
    border-color: var(--primary);
    background-color: #f8f9fa;
}

.payment-option.selected {
    border: 2px solid var(--primary);
    background-color: #f0f7ff;
}

.payment-option img {
    width: 52px;
    max-height: 40px;
    object-fit: contain;
}

.total-harga {
    font-weight: bold;
    color: #198754;
}

/* ====== TERMS MODAL ====== */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1050;
    animation: fadeIn 0.3s ease-out;
}

.terms-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    margin: 2% auto;
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-header h4 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-body {
    padding: 30px;
    line-height: 1.8;
    color: #333;
    background: #fff;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.terms-body::-webkit-scrollbar {
    width: 6px;
}

.terms-body::-webkit-scrollbar-track {
    background: #f7fafc;
}

.terms-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 20px;
}

.terms-body h5 {
    color: #1a1a2e;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    position: relative;
}

.terms-body h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.terms-body ul {
    padding-left: 20px;
}

.terms-body li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.terms-body li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.terms-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ====== PRINT SECTION ====== */
.print-section {
    display: none;
}

@media print {
    body * { visibility: hidden; }
    .print-section, .print-section * { visibility: visible; }
    .print-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        background: white;
        font-family: "Times New Roman", serif;
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    .print-section h4 { font-size: 14pt; }
    .print-section p, .print-section li, .print-section table { font-size: 12pt; }
    @page { margin: 1cm; size: A4 portrait; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .package-specs {
        grid-template-columns: 1fr;
    }
    
    .package-image img {
        height: 160px;
    }
}

@media (max-width: 992px) {
    .package-card-wrapper,
    .monthly-package-wrapper {
        margin-bottom: 1.25rem;
    }
    
    .package-content {
        padding: 1.25rem;
    }
    
    .package-image img {
        height: 140px;
    }
    
    .package-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .package-specs {
        gap: 0.5rem;
        margin: 0.75rem 0;
    }
    
    .spec-item {
        font-size: 0.85rem;
    }
    
    .price-tag,
    .monthly-price-tag {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    .package-button,
    .monthly-package-btn {
        padding: 0;
    }
    
    .package-content {
        padding: 1.1rem;
    }
    
    .package-image img {
        height: 130px;
    }
    
    .package-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .package-specs {
        margin: 0.5rem 0;
    }
    
    .spec-item {
        padding: 0.2rem 0;
    }
    
    .price-tag,
    .monthly-price-tag {
        font-size: 1.05rem;
        padding: 0.7rem 0.9rem;
    }
}

@media (max-width: 576px) {
    .package-image img {
        height: 150px;
    }
    
    .package-title {
        font-size: 1.25rem;
    }
    
    .package-specs {
        grid-template-columns: 1fr;
    }
    
    .price-tag,
    .monthly-price-tag {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
}

/* ====== INPUTS & FORMS (DARK MODE) ====== */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-lighter) !important;
    border-color: var(--border-light) !important;
    color: var(--text-light) !important;
}
/* ====== GLOBAL THEMES & VARIABLES ====== */
:root {
    --bg-light: #f7fafc;
    --bg-light-hover: #edf2f7;
    --text-dark: #4a5568;
    --border-light: #e2e8f0;
    --primary: #4361ee;
    --primary-text: white;
    --shadow: rgba(67, 97, 238, 0.2);
}

[data-theme="dark"] {
    --bg-light: #2d3748;
    --bg-light-hover: #1a202c;
    --text-dark: #e2e8f0;
    --border-light: #4a5568;
    --primary: #4361ee;
    --primary-text: white;
    --shadow: rgba(67, 97, 238, 0.4);
}

body {
    background: var(--bg-darker);
    color: var(--text-light);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    transition: background 0.3s;
}

[data-theme="dark"] ::placeholder,
[data-theme="dark"] ::-webkit-input-placeholder {
    color: #c0c0c0 !important;
    opacity: 1;
}

/* ===== MODERN E-COMMERCE STYLE ===== */
.monthly-package-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.monthly-package-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Tombol sebagai card */
.monthly-package-btn {
    all: unset;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 16px;
    line-height: 1.2; /* tulisan rapat */
    text-align: left;
    background: #fff;
}

/* Gambar */
.package-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Judul */
.package-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0;
    color: #222;
    line-height: 1.2;
}

/* Deskripsi */
.package-description {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Spesifikasi */
.package-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.8rem;
    color: #333;
}

.package-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

/* Harga */
.monthly-price-tag {
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: bold;
    color: #e63946;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}



@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}
.ecom-product-card {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecom-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.ecom-product-card[data-selected="true"] {
    border-color: #1e40af;
    box-shadow: 0 0 0 2px #1e40af;
}

.ecom-product-card .fa-check-circle {
    opacity: 0;
}

.ecom-product-card[data-selected="true"] .fa-check-circle {
    opacity: 1;
}

/* Potong teks panjang */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsif */
@media (max-width: 576px) {
    .ecom-product-card h6 {
        font-size: 1rem;
    }
    .small {
        font-size: 0.8rem;
    }
}

 .property-nav {
        margin-bottom: 1rem;
        border-bottom: none; /* Hilangkan border bawah dari nav-tabs */
    }

    .property-nav .nav-link {
        /* Ganti dari inline-block ke default Bootstrap */
        padding: 12px 20px;
        border-radius: 8px 8px 0 0 !important;
        margin: 0 4px;
        background-color: #0d6efd !important; /* Biru (Bootstrap primary) */
        color: white !important;
        transition: all 0.3s ease;
        border: 1px solid transparent !important;
        font-weight: 500;
    }

    .property-nav .nav-link:hover {
        background-color: #0b5ed7 !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    }

    .property-nav .nav-link.active {
        background-color: orange !important;
        color: white !important;
        border-color: #fd7e14 !important;
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
    }

    @media (max-width: 576px) {
        .property-nav .nav-link {
            padding: 10px 12px;
            font-size: 0.9rem;
            margin: 0 2px;
        }
    }