/* =========================================
   INDEX CSS (TEMA MODERN & PROFESIONAL)
   ========================================= */

/* --- VARIABEL KHUSUS LANDING PAGE --- */
:root {
    --primary: #2563eb;       
    --primary-dark: #1e3a8a;  
    --secondary: #10b981;     
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   GAya DASAR TOMBOL (.btn)
   ========================================= */
.btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =========================================
   1. NAVBAR (HEADER)
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 3px solid transparent; 
    border-image: linear-gradient(to right, #60a5fa, #34d399) 1;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff; 
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.logo img {
    height: 38px; 
    width: auto; 
    object-fit: contain; 
    transform: translateY(-2px); 
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4)); 
}

.auth-buttons { display: flex; gap: 15px; }

.btn-outline {
    background: transparent;
    color: #ffffff; 
    border: 2px solid rgba(255, 255, 255, 0.5); 
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15); 
    border-color: #ffffff;
}

.btn-solid {
    background: linear-gradient(135deg, #60a5fa, var(--secondary)); 
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}
.btn-solid:hover {
    background: linear-gradient(135deg, var(--primary), #065f46); 
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; padding: 80px 5% 150px;
    position: relative; overflow: hidden;
    background-color: #0f172a; 
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 150px), transparent 100%);
}

.hero-blob { position: absolute; border-radius: 50%; filter: blur(100px); z-index: 0; opacity: 0.6; }
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(37, 99, 235, 0.4); }
.blob-2 { bottom: -10%; right: -5%; width: 600px; height: 600px; background: rgba(16, 185, 129, 0.3); }

.floating-shape { position: absolute; pointer-events: none; z-index: 1; opacity: 0.4; }
.shape-cross { top: 20%; left: 45%; color: var(--primary); font-size: 40px; animation: floatObj 6s ease-in-out infinite alternate; }
.shape-circle { bottom: 30%; left: 10%; width: 60px; height: 60px; border: 4px solid var(--secondary); border-radius: 50%; animation: floatObj 8s ease-in-out infinite alternate-reverse; }
.shape-dots { top: 15%; right: 40%; color: white; font-size: 12px; letter-spacing: 5px; animation: floatObj 5s ease-in-out infinite; }

@keyframes floatObj {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(15deg); }
}

.hero-content { flex: 1.2; max-width: 650px; z-index: 10; }

.badge {
    background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px; border-radius: 50px; font-size: 11px; font-weight: 800; letter-spacing: 2px; 
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; text-transform: uppercase;
}

.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; color: #ffffff; letter-spacing: -1px; }

.text-highlight {
    display: inline-block;
    background: linear-gradient(to right, #60a5fa, #34d399); 
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(52, 211, 153, 0.2));
}

.hero p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 40px; line-height: 1.7; font-weight: 300; }

.trusted-users { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.user-avatars { display: flex; }
.user-avatars img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid #0f172a; margin-left: -12px; }
.user-avatars img:first-child { margin-left: 0; }

.hero-image { flex: 1; display: flex; justify-content: flex-end; z-index: 10; position: relative; }
.hero-image::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; height: 90%; background: var(--primary); filter: blur(80px); opacity: 0.2; z-index: -1;
}

/* --- AESTHETIC SLIDER --- */
.aesthetic-slider { width: 100%; max-width: 600px; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.4); overflow: hidden; position: relative; transition: all 0.5s ease; border: 1px solid rgba(255,255,255,0.1); }
.aesthetic-slider:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.slider-track { display: flex; height: 100%; width: 600%; animation: slideSnap 20s ease-in-out infinite; }
.slider-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes slideSnap { 0%, 15% { transform: translateX(0); } 20%, 35% { transform: translateX(-16.666%); } 40%, 55% { transform: translateX(-33.333%); } 60%, 75% { transform: translateX(-50%); } 80%, 95% { transform: translateX(-66.666%); } 100% { transform: translateX(-83.333%); } }

/* --- KATALOG SECTION --- */
.katalog-section { padding: 0px 5% 50px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; margin-top: -80px; }
.katalog-header { text-align: center; margin-bottom: 50px; }
.katalog-header h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 800; letter-spacing: -0.5px; }
.katalog-header p { color: var(--text-gray); font-size: 1rem; }
.grid-katalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.card-webinar { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #f1f5f9; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; position: relative; }
.card-webinar:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1); border-color: #bfdbfe; }
.card-img-wrapper { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; background: #f1f5f9; }
.card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card-webinar:hover .card-img { transform: scale(1.05); }

.status-badge { position: absolute; top: 15px; right: 15px; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-transform: uppercase; letter-spacing: 0.5px; }
.status-open { background: rgba(16, 185, 129, 0.9); color: white; border: 1px solid #34d399; animation: badgePulse 2s infinite ease-in-out; }
.status-soon { background: rgba(245, 158, 11, 0.9); color: white; border: 1px solid #fbbf24; }
.status-ended { background: rgba(71, 85, 105, 0.9); color: white; border: 1px solid #94a3b8; }
.status-closed { background: rgba(239, 68, 68, 0.9); color: white; border: 1px solid #fca5a5; }

@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); transform: scale(1); } 50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); } }

/* 👇 PERBAIKAN 1: Menjadikan body rapi ke atas 👇 */
.card-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }

/* 👇 PERBAIKAN 2: MENGHAPUS FLEX-GROW: 1 DARI SINI (Penyebab aslinya) 👇 */
.card-sub { font-size: 13px; color: var(--text-gray); line-height: 1.5; margin-bottom: 20px; } 

.btn-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none; transition: 0.3s; border: none; cursor: pointer; }
.btn-daftar { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.btn-daftar:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-tunggu { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; pointer-events: none; }
.btn-habis, .btn-closed { background: #f1f5f9; color: #94a3b8; pointer-events: none; border: 1px solid #e2e8f0; }

.card-ended .card-img, .card-reg-closed .card-img { filter: grayscale(100%) brightness(0.8); }
.card-ended .card-title { color: #64748b; }
.card-ended:hover { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border-color: #f1f5f9; }
.loader-area { text-align: center; padding: 50px; color: var(--primary); grid-column: 1 / -1; }
.empty-area { text-align: center; padding: 60px; background: white; border-radius: 20px; border: 2px dashed #cbd5e1; grid-column: 1 / -1; }

/* --- TESTIMONIAL --- */
.testimonial-section { padding: 80px 0 60px; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); overflow: hidden; }
.testimonial-header { text-align: center; max-width: 600px; margin: 0 auto 40px; padding: 0 5%; }
.testimonial-header h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 800; letter-spacing: -0.5px;}
.testimonial-slider { width: 100%; position: relative; overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%); pointer-events: none; }
.testimonial-track { pointer-events: auto; display: flex; gap: 20px; padding: 20px 5% 40px 5%; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testi-card { background: var(--white); width: 350px; padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #f1f5f9; flex-shrink: 0; transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease; }
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1); border-color: #bfdbfe;}
.testi-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.avatar-ring { width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--white); }
.testi-info h4 { font-size: 15px; margin: 0; color: var(--text-dark); font-weight: 700; }
.testi-info span { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.testi-card p { font-size: 13px; color: var(--text-gray); line-height: 1.6; font-style: italic; margin-bottom: 15px; }
.stars { color: #f59e0b; font-size: 12px; display: flex; gap: 3px; }

/* --- FEATURES --- */
.section-padding { padding: 80px 5%; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); text-align: center; transition: transform 0.3s ease; border: 1px solid transparent; }
.feature-card:hover { transform: translateY(-10px); border-color: #e0e7ff; box-shadow: 0 15px 40px rgba(37, 99, 235, 0.08);}
.feature-icon { width: 70px; height: 70px; background: rgba(37, 99, 235, 0.1); color: var(--primary); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; transform: rotate(-5deg); transition: 0.3s;}
.feature-card:hover .feature-icon { transform: rotate(0deg) scale(1.1); background: var(--primary); color: white;}

/* --- KHUSUS AUTH DI INDEX --- */
.auth-header { text-align: center; margin-bottom: 12px; } /* Jarak bawah dipangkas dari 20px menjadi 12px */
.auth-header h2 { font-size: 24px; color: var(--text-dark); margin-bottom: 2px; font-weight: 800; letter-spacing: -0.5px;} /* Jarak teks merapat dari 8px menjadi 2px */
.auth-header p { font-size: 13px; color: var(--text-gray); line-height: 1.5; margin-top: 0; }

.switch-auth { text-align: center; margin-top: 25px; font-size: 13px; color: var(--text-gray); }
.switch-auth span { color: var(--primary); font-weight: 700; cursor: pointer; transition: 0.2s;}
.switch-auth span:hover { text-decoration: underline; color: var(--primary-dark); }

.scrollable-inputs { max-height: 380px; overflow-y: auto; padding-right: 8px; margin-bottom: 25px; }

.input-group { margin-bottom: 18px; position: relative; }
.input-group > i:first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; pointer-events: none; transition: 0.3s; }
.input-group .toggle-password-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; cursor: pointer; font-size: 16px; transition: 0.3s; z-index: 10; left: auto; }
.input-group .toggle-password-icon:hover { color: var(--primary); }

.auth-input { width: 100%; padding: 14px 16px 14px 45px; border: 2px solid #e2e8f0; border-radius: 14px; font-size: 14px; color: var(--text-dark); outline: none; transition: all 0.3s; background: #f8fafc; font-weight: 500;}
.auth-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);}
.auth-input:focus + i:first-child { color: var(--primary); }

.auth-btn { width: 100%; padding: 15px; border-radius: 14px; font-size: 15px; font-weight: 700; margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25); letter-spacing: 0.5px;}
.auth-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(37, 99, 235, 0.35); }

/* --- OTP BOX --- */
.otp-inputs-wrapper { display: flex; justify-content: center; gap: 12px; margin: 25px 0; }
.otp-field { width: 45px; height: 55px; border: 2px solid #e2e8f0; border-radius: 12px; text-align: center; font-size: 24px; font-weight: 800; color: var(--primary); background: #f8fafc; transition: all 0.3s; outline: none; }
.otp-field:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 15px rgba(37, 99, 235, 0.15); transform: translateY(-2px); }
.otp-field.filled { border-color: var(--primary); background: #eff6ff; }
.resend-container { text-align: center; margin-bottom: 20px; font-size: 13px; }
.btn-resend-link { color: #94a3b8; font-weight: 700; text-decoration: none; cursor: default; pointer-events: none; transition: all 0.3s; }
.btn-resend-link.active { color: var(--primary); cursor: pointer; pointer-events: auto; text-decoration: underline; }
#otpTimerDisplay { color: #ef4444; font-weight: 800; font-family: monospace; font-size: 15px; }

/* =========================================
   DETAIL PEMBICARA (ACCORDION KATALOG)
   ========================================= */
.btn-detail-materi {
    width: 100%; background: #f8fafc; border: 1px dashed #cbd5e1; color: var(--primary); padding: 12px 15px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; transition: all 0.3s; outline: none;
}
.btn-detail-materi:hover { background: #eff6ff; border-color: #bfdbfe; }
.btn-detail-materi i.fa-chevron-down { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-detail-materi.open i.fa-chevron-down { transform: rotate(180deg); }

.materi-collapse-area { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; opacity: 0; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0 !important; padding-right: 5px; width: 100%; box-sizing: border-box; }
.materi-collapse-area.show { max-height: 250px; overflow-y: auto; opacity: 1; margin-bottom: 15px; }
.materi-collapse-area::-webkit-scrollbar { width: 4px; }
.materi-collapse-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.speaker-item-katalog { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid #f1f5f9; padding: 10px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.speaker-item-katalog img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #e0e7ff; flex-shrink: 0; }
.speaker-info-katalog { display: flex; flex-direction: column; justify-content: center; }
.speaker-info-katalog strong { font-size: 13px; color: var(--text-dark); line-height: 1.2; margin-bottom: 4px; }
.speaker-info-katalog span { font-size: 11px; color: var(--text-gray); line-height: 1.3; display: flex; align-items: flex-start; gap: 5px; }


/* =========================================
   PERBAIKAN TATA LETAK KARTU (FINAL & PRESISI)
   ========================================= */

.card-body {
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; /* Memastikan body kartu merespon tinggi grid */
}

/* WADAH UTAMA: Mengunci semua elemen di atas */
.card-main-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start !important; /* Paksa rapat ke ATAS */
}

/* 👇 INI DIA OBAT MUTLAKNYA 👇 */
/* Mematikan paksa efek "pegas" yang nyangkut di judul dan sub-judul */
.card-title, .card-sub {
    flex-grow: 0 !important;
}

/* Mencegah isi wadah utama menjadi gepeng */
.card-main-content > * {
    flex-shrink: 0 !important;
}

/* KOTAK TOMBOL: Selalu merapat di dasar kartu */
.action-btn-container {
    flex-shrink: 0 !important;
    margin-top: auto !important; /* Dorong paksa ke paling bawah */
    padding-top: 15px; 
}

/* --- STYLE JADWAL & INFO ALERT --- */
.jadwal-box { background: #f8fafc; padding: 10px 12px; border-radius: 8px; margin-top: auto !important; margin-bottom: 12px; border-left: 3px solid var(--primary); display: flex; align-items: center; gap: 10px; }
.jadwal-icon { background: #e0e7ff; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.jadwal-text { display: flex; flex-direction: column; }
.jadwal-label { font-size: 10px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.jadwal-value { font-size: 12px; font-weight: 800; color: var(--text-dark); }

.info-alert { font-size: 11px; font-weight: 600; padding: 8px 12px; border-radius: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.info-danger { color: #ef4444; background: #fef2f2; border: 1px dashed #fca5a5; text-align: center; justify-content: center; gap: 5px; }
.info-warning { color: #d97706; background: #fffbeb; border: 1px dashed #fcd34d; }
.info-success { color: #10b981; background: #ecfdf5; border: 1px dashed #6ee7b7; }
.timer-badge { font-family: monospace; font-size: 13px; color: white; padding: 2px 6px; border-radius: 4px; }
.info-warning .timer-badge { background: #f59e0b; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); }
.info-success .timer-badge { background: #10b981; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3); }

/* =========================================
   FLOATING PROMO BADGES (PERPOTONGAN GAMBAR)
   ========================================= */
.floating-promo-container {
    position: relative;
    margin-top: -42px; /* Menarik badge naik menabrak gambar */
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 15; /* Memastikan ada di atas gambar */
}

.floating-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid var(--white); /* Memberi list putih agar kontras dengan gambar */
}

/* Varian Warna Promo */
.badge-free { background: linear-gradient(135deg, #22c55e, #16a34a); }
.badge-ungu { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.badge-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.badge-biru { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.badge-merah { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.pulse-anim {
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==========================================
   TOOLTIP ESTETIK UNTUK LENCANA PROMO (SMART POSITIONING)
   ========================================== */

.floating-badge {
    position: relative !important;
    cursor: help !important;
}

/* Pengaturan Dasar Kotak Teks */
.floating-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%; 
    background: rgba(15, 23, 42, 0.95); 
    backdrop-filter: blur(4px);
    color: #f8fafc;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    white-space: normal; 
    width: max-content;
    max-width: 180px; 
    line-height: 1.5;
    text-align: left; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999 !important;
    letter-spacing: 0.3px;
    text-transform: none; 
}

/* Pengaturan Dasar Segitiga Panah */
.floating-badge::before {
    content: '';
    position: absolute;
    bottom: 110%;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999 !important;
}

/* 👇 KONDISI 1: JIKA LENCANA DI KIRI (Lencana Pertama) 👇 */
.floating-badge:first-child::after {
    left: 0; 
    transform: translateY(10px);
}
.floating-badge:first-child::before {
    left: 20px; 
    transform: translateY(10px);
}
/* Tambahkan :focus di sini untuk layar sentuh */
.floating-badge:first-child:hover::after,
.floating-badge:first-child:hover::before,
.floating-badge:first-child:focus::after,
.floating-badge:first-child:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 👇 KONDISI 2: JIKA LENCANA DI KANAN (Lencana Kedua/Terakhir) 👇 */
.floating-badge:not(:first-child):last-child::after {
    left: auto;
    right: 0; 
    transform: translateY(10px);
}
.floating-badge:not(:first-child):last-child::before {
    left: auto;
    right: 20px; 
    transform: translateY(10px);
}
/* Tambahkan :focus di sini untuk layar sentuh */
.floating-badge:not(:first-child):last-child:hover::after,
.floating-badge:not(:first-child):last-child:hover::before,
.floating-badge:not(:first-child):last-child:focus::after,
.floating-badge:not(:first-child):last-child:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   CUSTOM MODAL SUCCESS (ANIMASI & MODERN UI)
   ========================================= */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Warna navy transparan */
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

/* Class 'show' untuk memunculkan modal */
.custom-modal-overlay.show {
    opacity: 1; visibility: visible;
}

.custom-modal-box {
    background: white; width: 90%; max-width: 380px;
    border-radius: 24px; padding: 40px 30px; text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: scale(1) translateY(0);
}

/* Ikon Ceklis Hijau Melompat */
.success-icon-wrapper {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
    transform: scale(0);
}

.custom-modal-overlay.show .success-icon-wrapper {
    animation: bounceIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.custom-modal-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.custom-modal-text { font-size: 13px; color: var(--text-gray); line-height: 1.6; margin-bottom: 25px; }

.custom-modal-btn {
    width: 100%; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border: none; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25); 
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.custom-modal-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.35); 
}

/* RESPONSIVE HP */
@media screen and (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-image { margin-top: 40px; justify-content: center; width: 100%; }
    .aesthetic-slider { width: 100%; max-width: 100%; transform: none; border-radius: 12px; }
    .auth-buttons { gap: 10px; }
    .btn { padding: 8px 16px; font-size: 12px; }
    .testi-card { width: 85vw; max-width: 320px; padding: 20px; }
    .testimonial-header h2 { font-size: 1.8rem; }
    .testimonial-track { padding: 20px 5%; }
    .floating-shape { display: none; } 
}

/* =========================================
   UBAH GRID KATALOG JADI HORIZONTAL SCROLL (FULL WIDTH + FADE)
   ========================================= */

/* 1. Bebaskan Wadah Utama agar Mentok Ujung ke Ujung Layar */
.katalog-section {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. Pertahankan Judul Katalog tetap di tengah agar rapi */
.katalog-header {
    padding: 0 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. Area Scroll Katalog (Horizontal + Gradasi Fade) */
.grid-katalog,
#katalog-container {
    display: flex !important;
    flex-wrap: nowrap !important; 
    overflow-x: auto !important;  
    overflow-y: hidden !important;
    gap: 25px !important;
    
    /* Ruang atas bawah untuk shadow & scrollbar */
    padding-top: 15px !important;
    padding-bottom: 30px !important; 
    
    /* Ruang awal & akhir agar kartu tidak terlalu nempel saat diujung */
    padding-left: 5vw !important;  
    padding-right: 5vw !important; 
    
    grid-template-columns: none !important; 
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    
    /* 👇 EFEK GRADASI MENGHILANG (Sama seperti Testimonial Anda) 👇 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);

    -ms-overflow-style: none;  
    scrollbar-width: none;
}

/* 4. Kunci Ukuran Kartu Agar Tidak Gepeng */
.grid-katalog .card-webinar,
#katalog-container .card-webinar {
    flex: 0 0 350px !important; 
    max-width: 350px !important;
    scroll-snap-align: center; /* Magnet berhenti di tengah */
    margin-bottom: 0 !important;
    height: auto !important; 
    align-self: stretch !important; 
}

/* 5. Percantik Scrollbar Ala MacOS */
.grid-katalog::-webkit-scrollbar,
#katalog-container::-webkit-scrollbar {
    height: 10px;
}
.grid-katalog::-webkit-scrollbar-track,
#katalog-container::-webkit-scrollbar-track {
    background: transparent;
    display: none; /* Transparan agar menyatu dengan gradasi */
}
.grid-katalog::-webkit-scrollbar-thumb,
#katalog-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid var(--bg-light); 
}
.grid-katalog::-webkit-scrollbar-thumb:hover,
#katalog-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsif untuk layar HP kecil */
@media (max-width: 480px) {
    .grid-katalog .card-webinar,
    #katalog-container .card-webinar {
        flex: 0 0 300px !important; 
        max-width: 300px !important;
    }
    
    /* Sesuaikan gradasi di HP agar tidak memotong terlalu banyak */
    .grid-katalog,
    #katalog-container {
        padding-left: 5vw !important;
        padding-right: 5vw !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }
}

/* =========================================
   PERBAIKAN MODAL AUTHENTICATION (MOBILE) - FINAL
   ========================================= */
@media screen and (max-width: 768px) {
    /* 1. Paksa modal tidak menembus layar HP */
    .auth-box {
        max-height: 85vh !important; /* Maksimal 85% dari tinggi layar HP */
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 25px 20px 20px 20px !important; 
        width: 95% !important;
        overflow: hidden !important; /* Matikan scroll utama kotak */
    }

    .auth-box .auth-btn {
        flex-shrink: 0 !important; /* Dilarang keras menyusut */
        min-height: 50px !important; /* Paksa tinggi minimal 50px */
        height: 50px !important; /* Kunci tinggi absolut */
        padding: 0 15px !important; /* Kembalikan ruang lega di dalam tombol */
        margin-top: 10px !important; /* Beri jarak aman dari form input di atasnya */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. Biarkan form melar di sisa ruang */
    .auth-box form {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        min-height: 0 !important; /* Kunci agar overflow anak bekerja */
        margin-bottom: 0 !important;
    }

    /* 3. Hanya area kolom input yang boleh di-scroll */
    .scrollable-inputs {
        max-height: none !important; 
        flex-grow: 1 !important;
        overflow-y: auto !important;
        padding-right: 5px !important;
        margin-bottom: 15px !important;
        /* Percantik scrollbar kecil di HP */
        scrollbar-width: thin;
    }

    /* 4. Cegah Header, Tombol, dan Footer menjadi Gepeng */
    .modal-brand-header,
    .auth-header,
    .auth-btn,
    .switch-auth {
        flex-shrink: 0 !important; /* Dilarang keras menyusut */
    }

    /* 5. Merapikan Topi Biru Dongker di HP */
    .auth-box .modal-brand-header {
        margin: -25px -20px 15px -20px !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 15px 20px !important;
    }

    /* 6. Penyesuaian jarak dalam form agar lebih muat di HP */
    .input-group {
        margin-bottom: 12px !important; /* Kurangi jarak antar kolom */
    }
    .auth-input {
        padding: 12px 14px 12px 40px !important; /* Kolom tidak terlalu gemuk */
        font-size: 13px !important;
    }
}

