/* Global Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #4299e1;
    --light-bg: #f7fafc;
    --dark-bg: #1a365d;
    --light-gray: #edf2f7;
    --text-dark: #2d3748;
    --text-light: #4a5568;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E<path d='M0 50 Q 50 20, 100 50 T 200 50' fill='none' stroke='%23e2e8f0' stroke-width='1' opacity='0.3'/></svg>");
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-gray) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23e2e8f0" opacity="0.5"/><circle cx="80" cy="80" r="2" fill="%23e2e8f0" opacity="0.5"/><circle cx="40" cy="60" r="1" fill="%23cbd5e0" opacity="0.7"/></svg>');
    animation: moveGraph 20s linear infinite;
    pointer-events: auto;
}

@keyframes moveGraph {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ==== Floating Animation + Shadow for Swiper ==== */
.heroSwiper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Efek gradasi lembut */
.heroSwiper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(49, 130, 206, 0.15), rgba(255,255,255,0));
    z-index: 0;
    border-radius: 20px;
}

.heroSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.heroSwiper .swiper-slide img {
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: floatSlide 4s ease-in-out infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    height: 400px;
    object-fit: contain;
}

/* Hover efek tambahan */
.heroSwiper .swiper-slide:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(49, 130, 206, 0.4);
}

/* Animasi naik turun lembut */
@keyframes floatSlide {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Fancy efek glow */
.fancy-swiper {
    position: relative;
    overflow: visible;
    animation: floaty 6s ease-in-out infinite;
}

.fancy-swiper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(0, 128, 255, 0.4), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fancy-swiper .swiper-slide img {
    z-index: 1;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.25);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fancy-swiper:hover .swiper-slide img {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 128, 255, 0.45);
}

.swiper-button-next,
.swiper-button-prev {
    color: #3182ce;
    transition: all 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #2c5282;
}

.swiper-pagination-bullet-active {
    background-color: #3182ce;
}

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
    color: #2c5282;
    transition: all 0.3s ease;
    opacity: 12%;
}

.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
    color: #3182ce;
    opacity: 90%;
}

.heroSwiper .swiper-pagination-bullet {
    background: rgba(49, 130, 206, 0.5);
    opacity: 1;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: #3182ce;
}

.alt-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}

/* ===============================
   ✅ RESPONSIVE FIX UNTUK MOBILE
   =============================== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        text-align: center;
    }

    .hero-section .row {
        flex-direction: column-reverse; /* gambar di bawah teks */
    }

    .hero-section .col-lg-6 {
        margin-bottom: 1.5rem;
    }

    .heroSwiper {
        height: 260px !important;
    }

    .heroSwiper img {
        height: 260px !important;
        object-fit: cover;
    }

    .btn-lihat {
        margin-top: 1.2rem;
        width: 80%;
        max-width: 250px;
    }

    /* Supaya tombol dan gambar tidak saling menimpa */
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2.5rem;
    }
}

/* ✅ Tambahan khusus layar sangat kecil (≤ 480px) */
@media (max-width: 480px) {
    .heroSwiper {
        height: 220px !important;
    }

    .heroSwiper img {
        height: 220px !important;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-lihat {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}


/* Button Styles */
.btn-lihat {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.btn-lihat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
    background: var(--primary-color);
    color: rgb(154, 207, 241);
}

.bg-btn-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.bg-btn-gradient:hover {
    background: linear-gradient(135deg, #48c6ef, #3498db);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-monmat {
  display: inline-block;
  color: #1a365d;
  border: 1px solid #1a365d;
  border-radius: 0.375rem;
  background-color: transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease-in-out,
              background-color .15s ease-in-out,
              border-color .15s ease-in-out,
              box-shadow .15s ease-in-out;
}

.btn-outline-monmat:hover {
  color: #fff;
  background-color: #1a365d;
  border-color: #289fda;
}

.btn-outline-monmat:active {
  color: #fff;
  background-color: #289fda;
  border-color: #289fda;
}

.btn-outline-monmat:disabled,
.btn-outline-monmat.disabled {
  pointer-events: none;
  opacity: .65;
}

.bg-general-monmat {
    color: #1B94D7;
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
    animation-delay: 1s;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

/* Floating Icons Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-lihat {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .btn-masuk,
    .btn-daftar {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Money Icon */
.money-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
}

/* Custom alert styling */
.alert {
    border-radius: 12px;       /* bikin sudut melengkung */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* kasih shadow lembut */
    font-size: 0.95rem;        /* teks agak kecil tapi nyaman */
    padding: 14px 18px;        /* beri jarak dalam */
}

.alert strong {
    font-weight: 600;          /* bold tapi nggak terlalu tebal */
}

.alert-success {
    background-color: #e9f7ef; /* hijau lembut */
    border-color: #c7eac9;
    color: #276749;            /* teks hijau gelap */
}

.alert-danger {
    background-color: #fcebea; /* merah lembut */
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff4e5; /* oranye lembut */
    border-color: #ffe8cc;
    color: #856404;            /* teks oranye gelap */
}

.alert-info {
    background-color: #e8f4fd; /* biru lembut */
    border-color: #c3e0fc;
    color: #0c5460;            /* teks biru gelap */
}

/* Animasi masuk */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter Box Styles (Statistik Section)*/
.counter-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.counter-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}
.counter-box:hover .counter {
    text-shadow: 0 0 12px rgba(255,255,255,0.9);
}
.counter-box i {
    color: #00e1ff;
}
.counter {
    font-size: 2.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
}
.counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}
.counter i {
    color: #ffd166;
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.6));
}
.counter h3 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}
.counter p {
    margin-bottom: 0;
    font-weight: 500;
}
    
canvas {
    filter: drop-shadow(0 0 6px rgba(49, 130, 206, 0.15));
    transition: filter 0.3s ease;
}
canvas:hover {
    filter: drop-shadow(0 0 12px rgba(49, 130, 206, 0.3));
}

/* Social Media in Contact Page */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
}

.social-icon.discord { background-color: #3b5998; }
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.youtube { background-color: #ee0f0f; } 
.social-icon.github { background-color: #414547; }

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Link Nama Developer di Halaman Tentang */
.dev-name {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.dev-name:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Style Fitur Utama di Halaman Informasi */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #63b3ed);
    box-shadow: 0 4px 10px rgba(49,130,206,0.3);
}


/* Tulisan Lupa Password di Modal Login */
.text-secondary-soft {
  color: #6c757d; /* Abu-abu lembut */
  font-weight: 400;
}

.text-warm-accent {
  color: #0f9bc5; /* Biru hangat */
  transition: color 0.2s; /* Transisi halus saat hover */
  font-weight: 500;
  text-decoration: none; /* Hilangkan garis bawah default */
}

.text-warm-accent:hover {
  color: #83dfe6; /* Sedikit lebih terang saat hover */
  text-decoration: underline; /* Tunjukkan garis bawah hanya saat hover */
}

.password-help-box {
  /* Warna Background Biru Hangat */
  background-color: #e6f3ff; /* Contoh: Light Sky Blue yang lembut */
  /* Atau bisa coba #ddeeff (lebih diredam) */
  
  /* Jarak */
  padding: 15px 20px; /* Memberi ruang bernapas di dalam box */
  margin-top: 20px; /* Jarak dari elemen di atasnya */
  
  /* Sentuhan Cozy */
  border-radius: 8px; /* Sudut membulat agar lebih ramah/cozy */
  border: 1px solid #0066ff; /* Border tipis dengan warna senada */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Bayangan sangat tipis untuk kedalaman */
}

/* Penyesuaian Teks agar Terlihat Kontras dan Cozy di Background Biru */
.password-help-box .text-dark-blue {
  color: #334455; /* Biru gelap keabu-abuan (lebih lembut dari hitam) */
  font-size: 0.95rem; /* Ukuran teks sedikit lebih kecil */
}

.password-help-box .text-link-accent {
  color: #0066cc; /* Biru cerah, tapi masih bagus di background terang */
  font-weight: 600; /* Sedikit tebal, tapi tidak 'bold' */
  text-decoration: none;
  transition: color 0.2s;
}

.password-help-box .text-link-accent:hover {
  color: #004499;
  text-decoration: underline;
}

/* Gaya opsional untuk tombol dropdown agar lebih bulat (Di Modal Login)*/
.dropdown-toggle.btn-outline-secondary {
    border-radius: 20px; /* Membuat tombol lebih membulat */
}

/* Style /u Pricing list section */
#pricing {
  padding: 80px 0;               /* Lebih konsisten daripada 100vh */
  text-align: center;
  background-color: #f9fafc; /* opsional, biar kontras */
}

#pricing .container {
  max-width: 900px; /* biar konten tidak terlalu melebar */
}

/* Buat isi kartu menjadi layout fleksibel */
.card.h-100 .card-body {
  display: flex;
  flex-direction: column;
  padding-bottom: 1.5rem;
  justify-content: space-between; /* Bagi ruang: konten atas & tombol bawah */
}

/* Pastikan tombol tetap di bawah */
.card.h-100 .card-body button {
  margin-top: auto; /* Dorong tombol ke bawah */
}

/* Untuk Kartu Price Dasar */
.bg-general-gradient {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #fff;
}

.reguler-card {
  color: #4d5154;
  border: none;
  border-radius: 13px;
  box-shadow: 0 10px 25px rgba(63, 135, 166, 0.4);
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reguler-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(63, 135, 166, 0.6);
}

.reguler-card .card-header {
  background: transparent !important;
  border: none;
  border-radius: 13px 13px 0 0; /* radius hanya untuk atas kiri dan kanan */
  border-bottom: 1px ridge #84ace0;
  position: relative;
  z-index: 1; /* supaya tidak menutupi badge */
  backdrop-filter: blur(8px);
}

/* WRAPPER ─ Memungkinkan bagian atas keluar */
.premium-wrapper {
    position: relative;
    overflow: visible;
}

/* Kartu Premium */
.premium-card {
  color: #4d5154;
  border: none;
  border-radius: 13px;
  box-shadow: 0 10px 25px rgba(63, 135, 166, 0.4);
  position: relative;
  overflow: hidden; /* bagian bawah terpotong, atas tidak */
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(63, 135, 166, 0.6);
}

/* Header card premium */
.premium-card .card-header {
  background: transparent !important;
  border: none;
  border-radius: 13px 13px 0 0; /* radius hanya untuk atas kiri dan kanan */
  border-bottom: 1px ridge #84ace0;
  position: relative;
  z-index: 12;
  backdrop-filter: blur(8px);
}

.premium-card .card-body {
  z-index: 12;
}

/* Glow biru neon */
.premium-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -45px; /* turunkan glow sedikit */
    transform: translateX(-50%);
    width: 140%;
    height: 160px; /* kurangi tinggi glow */

    background: radial-gradient(
        ellipse at center,
        rgba(41, 120, 255, 0.8) 0%,    /* biru neon inti */
        rgba(41, 120, 255, 0.5) 40%,   /* glow medium */
        rgba(41, 120, 255, 0.1) 80%,   /* glow halus */
        rgba(41, 120, 255, 0) 100%     /* fade out */
    );

    filter: blur(12px);  /* blur lebih lembut */
    opacity: 0.7;        /* reduksi opacity */
    z-index: 5;
    pointer-events: none;
}

/* Tombol Premium */
.btn-premium {
  background: linear-gradient(90deg, #5aa9ff, #0b63ce);
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(11, 99, 206, 0.4);
  transition: all 0.3s ease;
}

.btn-premium:hover {
  background: linear-gradient(90deg, #0b63ce, #0052a5);
  box-shadow: 0 6px 15px rgba(11, 99, 206, 0.6);
  color: rgb(162, 218, 253);
}

/* Harga asli dicoret */
.harga-asli {
    text-decoration: line-through;
    color: #888;
    font-size: 16px;
    margin-right: 6px;
}

/* Badge diskon kecil */
.badge-discount {
    background: #ff4d4d;
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

/* Link opsi tahunan */
.opsi-tahunan {
    font-size: 14px;
    color: #0f2e49;
    font-weight: 600;
    text-decoration: underline;
}

.opsi-tahunan:hover {
    text-decoration: none;
    color: #198754;
}

/* Badge pojok kanan atas */
.promo-badge-pill {
    position: absolute;
    top: -20px;
    right: 16px;
    background: linear-gradient(90deg, #5aa9ff, #0b63ce);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    z-index: 20;
    white-space: nowrap;
}

/* Badge Hemat (untuk modal tahunan) */
.hemat-badge {
    background: linear-gradient(90deg, #00c853, #64dd17);
    color: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.premium-wrapper:hover .premium-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(63, 135, 166, 0.6);
}

.premium-wrapper:hover .promo-badge-pill {
  transform: translateY(-8px);
  transition: transform 0.3s ease;
}

.promo-badge-pill {
  transition: transform 0.3s ease;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}