:root {
    --primary: #1A3E72;
    --primary-light: #2a56a5;
    --secondary: #FFA726;
    --accent: #ff0000;
    --light: #F8F9FA;
    --dark: #212529;
    --success: #4CAF50;
    --warning: #FFC107;
    --text: #333333;
    --text-light: #6C757D;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: #F5F7FA;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== TOP BAR ===== */
.topbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    padding: 4px 0;
}

.topbar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.topbar a:hover {
    color: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    height: 36px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    padding: 8px 14px;
    transition: 0.3s;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.cart-icon {
    position: relative;
    color: var(--primary);
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    color: #1a3e72;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 36px !important;
    }
    
    #navbarNavMobile {
        display: none;
    }
}

/* ===== HERO SECTION ===== */
.hero-carousel {
    margin-top: 60px;
    position: relative;
}

.hero-carousel .carousel-item {
    height: 70vh;
    min-height: 500px;
}

.hero-carousel img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-carousel .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 10%;
    padding: 30px;
    background: rgba(26, 62, 114, 0.8);
    border-radius: 12px;
    max-width: 600px;
}

.hero-carousel h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-carousel p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

/* ===== FULL IMAGE CAROUSEL ===== */
#fullImageCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#fullImageCarousel .carousel-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#fullImageCarousel img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #000;
}

/* Carousel Controls - Custom Styling */
#fullImageCarousel .carousel-control-prev,
#fullImageCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    transition: all 0.3s ease;
    margin: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#fullImageCarousel .carousel-control-prev:hover,
#fullImageCarousel .carousel-control-next:hover {
    opacity: 0.5;
    background: rgb(255, 255, 255);
    transform: translateY(-50%) scale(1.05);
}

#fullImageCarousel .carousel-control-prev {
    left: 10px;
}

#fullImageCarousel .carousel-control-next {
    right: 10px;
}

#fullImageCarousel .carousel-control-prev-icon,
#fullImageCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    filter: invert(0.2);
}

/* Carousel Indicators */
#fullImageCarousel .carousel-indicators {
    bottom: 15px;
}

#fullImageCarousel .carousel-indicators button {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin: 0 4px;
    border: 2px solid rgb(163, 163, 163);
    background: transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#fullImageCarousel .carousel-indicators button.active {
    background: white;
    opacity: 1;
    transform: scale(1.2);
}

/* ===== GOLD PRICE INDICATOR ===== */
.gold-price-indicator {
    background: url('/img/pattern-emasinaja.png'),
    linear-gradient(24deg, rgb(24, 40, 77), rgb(31, 37, 86));
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    padding: 14px 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
}

.price-container {
    display: flex;
    justify-content: center;
    width: 50%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 14px 20px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.desktop-view {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.mobile-view {
    display: none;
    text-align: center;
}

.badge {
    font-size: 11px;
    font-weight: 600;
}

.fa-coins {
    color: #FFA726;
    font-size: 22px;
}

.price-label {
    font-size: 15px;
    color: #444;
    font-weight: 500;
    margin: 0;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #1A3E72;
}

.price-change {
    font-size: 15px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.rise-price-change {
    font-size: 14px;
    padding: 2px 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.12);
}

.fall-price-change {
    font-size: 14px;
    padding: 2px 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    color: #c62828;
    background: rgba(198, 40, 40, 0.12);
}

.price-date {
    font-size: 14px;
    color: #666;
}

.info-icon {
    color: #9e9e9e;
    font-size: 18px;
    position: absolute;
    right: 0;
    cursor: help;
}

/* ===== GOLD PRICE CHART ===== */
.price-chart-section {
    background: white;
    padding: 25px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}


.chart-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    transition: var(--transition);
}

.chart-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== PRODUCT BUTTON ===== */
.product-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    transition: var(--transition);
}

.product-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== PLATFORM BENEFITS ===== */
.benefits-section {
    padding: 30px 0;
    background: #f9f9f9;
}

.section-title {
    font-weight: 700;
    color: #1A3E72;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.section-title span {
    position: relative;
}

.section-title span:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFA726;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-icon {
    font-size: 2rem;
    color: #1A3E72;
    margin-bottom: 15px;
}

.benefit-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1A3E72;
    font-size: 1.1rem;
}

.benefit-desc {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: 0;
}

/* ===== PRODUCT CATALOG ===== */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
    border: 1px solid #eee;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-img-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.product-price {
    color:var(--accent);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.product-stock {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.in-stock {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-action {
    flex: 1;
    border-radius: 6px;
    padding: 8px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
    text-align: center;
    border: none;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-buy:hover {
    background: var(--primary-light);
}

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

.btn-sell:hover {
    background: #ff9900;
}

.btn-jual-emas {
    background-color: #19264F;
    color: #fff !important;
    border: none;
}

.btn-jual-emas:hover,
.btn-jual-emas:focus {
    background-color: #0f1733;
    color: #fff !important;
}

/* ===== BUYBACK CALCULATOR ===== */
.buyback-section {
    background: white;
    padding: 40px 0;
}

.calculator-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.form-label {
    font-weight: 500;
    color: var(--primary);
}

.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.result-box {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px dashed var(--primary);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== TESTIMONIALS ===== */
.testimonial-section {
    background: #f9f9f9;
    padding: 40px 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding-top: 40px;
    font-size: 14px;
}

.footer-logo {
    height: 84px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    display: block;
    transition: var(--transition);
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    transform: translateX(3px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--dark);
}

.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    margin-top: 30px;
    font-size: 13px;
}

/* ===== SEARCH RESULTS ===== */
#searchResults a:hover {
    background-color: #f8f9fa;
}

/* ===== KERANJANG EFFECT ===== */
.toast {
    min-width: 250px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cart counter in navbar */
.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
}

/* ===== POPUP PROMO ===== */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.promo-popup.active {
    opacity: 1;
    visibility: visible;
}

.promo-popup-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.promo-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    border: none;
}

.promo-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.whatsapp-button {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none !important;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-icon {
    color: white;
    font-size: 36px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero-carousel .carousel-item {
        height: 25vh;
        min-height: 150px;
    }
    
    .desktop-view {
        display: none;
    }
    
    .mobile-view {
        display: block;
    }
    
    .top-row,
    .bottom-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .top-row {
        margin-bottom: 4px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .price-label {
        font-size: 13px;
    }
    
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .price-date {
        font-size: 11px;
    }
    
    .price-container {
        width: 90%;
        padding: 12px 16px;
    }
    
    .top-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .fa-coins {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 17px;
    }
    
    .price-change {
        font-size: 14px;
        padding: 2px 8px;
    }
    
    .price-date {
        font-size: 13px;
    }
    
    .info-icon {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-title {
        font-size: 14px;
        height: 40px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .btn-action {
        font-size: 13px;
        padding: 7px;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .benefits-section {
        padding: 25px 0;
    }
    
    .benefit-card {
        padding: 15px 10px;
    }
    
    .benefit-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .benefit-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .benefit-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        font-size: 30px;
    }
    
    /* Full Image Carousel Mobile Optimization */
    #fullImageCarousel .carousel-control-prev,
    #fullImageCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    #fullImageCarousel .carousel-control-prev {
        left: 5px;
    }
    
    #fullImageCarousel .carousel-control-next {
        right: 5px;
    }
    
    #fullImageCarousel .carousel-control-prev-icon,
    #fullImageCarousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
    
    #fullImageCarousel img {
        min-height: 200px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        margin-top: 56px;
    }
    
    .hero-carousel .carousel-item {
        height: 23vh;
        min-height: 150px;
    }
    
    .hero-carousel .carousel-caption {
        bottom: 20px;
        transform: none;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .hero-carousel h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .price-chart-section {
        margin-top: -20px;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .gold-price-indicator {
        padding: 8px 12px;
        min-width: 250px;
    }
    
    .current-price {
        font-size: 13px;
    }
    
    .price-label {
        font-size: 12px;
    }
    
    /* Full Image Carousel Extra Small Devices */
    #fullImageCarousel .carousel-control-prev,
    #fullImageCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    
    #fullImageCarousel .carousel-control-prev-icon,
    #fullImageCarousel .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
    }
}

@media (max-width: 399.98px) {
    .benefit-card {
        padding: 12px 8px;
    }
    
    .benefit-title {
        font-size: 0.9rem;
    }
    
    .benefit-desc {
        font-size: 0.75rem;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-size: 15px;
}

input,
select {
    font-size: 15px !important;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    flex-wrap: nowrap; /* pastikan tetap 1 baris */
}

/* Gaya tombol */
.chart-controls .product-btn {
    flex: 0 0 auto;
    white-space: nowrap; /* teks tidak pindah baris */
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chart-controls .product-btn.active {
    background: var(--primary);
    color: #ffffff;
}


/* Scrollable khusus untuk layar kecil */
@media (max-width: 768px) {
    .chart-controls {
        justify-content: flex-start;
        overflow-x: auto; /* bisa di-scroll horizontal */
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* smooth di iOS */
        padding: 10px 5px;
        scrollbar-width: none; /* sembunyikan scrollbar di Firefox */
    }

    .chart-controls::-webkit-scrollbar {
        display: none; /* sembunyikan scrollbar di Chrome/Safari */
    }

    .chart-controls .product-btn {
        flex: 0 0 auto; /* biar tidak mengecil */
        margin-right: 3px;
    }
}
/* BLOG */
.text-gold {
        color: #d4af37 !important;
    }

    .blog-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border-radius: 12px;
    }

    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.1);
    }

    .blog-thumb {
        transition: transform 0.4s ease;
        border-radius: 12px 12px 0 0;
    }

    .blog-card:hover .blog-thumb {
        transform: scale(1.05);
    }

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

    .blog-section {
        background: var(--white);
    }

    