/* ==========================================================================
   DESIGN SYSTEM & CORE STYLES - FIRMA HARAPAN ADVANCE INVESTINDO (HARVINDO)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-dark: #07220e;
    --primary-medium: #0e3d1c;
    --primary-light: #1b632f;
    --accent-emerald: #2ecc71;
    --accent-gold: #f39c12;
    --accent-gold-hover: #d35400;
    --text-light: #f8f9fa;
    --text-muted: #bdc3c7;
    --bg-dark: #051609;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 61, 28, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(27, 99, 47, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-muted);
}

.text-gold {
    color: var(--accent-gold);
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 22, 9, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(5, 22, 9, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
    color: var(--accent-emerald);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent-emerald);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-item a:hover, .nav-item a.active {
    color: var(--text-light);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-emerald);
    transition: var(--transition);
}

.nav-item a:hover::after, .nav-item a.active::after {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-emerald));
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 30px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.btn-cta::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.25;
    background-size: cover;
    background-position: center;
    filter: grayscale(30%) blur(2px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,22,9,0.7), var(--bg-dark));
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-tagline {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-emerald);
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--text-light);
}

.hero-title span {
    color: var(--accent-emerald);
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary-light));
    border: none;
    color: white;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    padding: 13px 33px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--accent-gold);
}

.stat-item p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */

section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    color: var(--accent-emerald);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-emerald);
    border-radius: 2px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-box i {
    font-size: 24px;
    color: var(--accent-emerald);
}

.feature-box h4 {
    font-size: 16px;
}

.about-badge-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-item {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--accent-emerald);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
}

.badge-item h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

/* ==========================================================================
   BUSINESS MODEL / PROCESS
   ========================================================================== */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-emerald));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* ==========================================================================
   INVESTMENT PACKAGES & CALCULATOR
   ========================================================================== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.package-card {
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.package-card.popular {
    border-color: var(--accent-gold);
    transform: scale(1.03);
    background: linear-gradient(to bottom, rgba(243, 156, 18, 0.08), rgba(255, 255, 255, 0.05));
}

.package-card.popular::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.package-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.package-duration {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-emerald);
    display: inline-block;
    margin: 0 auto 15px auto;
}

.package-range {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

.package-features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-features-list li {
    position: relative;
    padding-left: 18px;
}

.package-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: bold;
}

.btn-select-pkg {
    background: transparent;
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-select-pkg:hover, .package-card.popular .btn-select-pkg {
    background: var(--accent-emerald);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Calculator Grid */
.calc-container {
    background: linear-gradient(135deg, rgba(14, 61, 28, 0.3), rgba(5, 22, 9, 0.6));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.input-label span {
    color: var(--accent-gold);
}

.calc-select, .calc-text-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.calc-select:focus, .calc-text-input:focus {
    border-color: var(--accent-emerald);
}

/* Range slider styling */
.calc-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 15px 0;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    transition: var(--transition);
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 13px;
    color: var(--text-muted);
}

.result-value {
    font-weight: 700;
    color: var(--text-light);
}

.result-row.total-return {
    padding-top: 20px;
}

.result-row.total-return .result-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
}

.result-row.total-return .result-value {
    font-size: 26px;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.2);
}

/* ==========================================================================
   ALOE VERA GALLERY
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 34, 14, 0.9), transparent 70%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-emerald);
}

/* ==========================================================================
   TEAM MEMBERS LAYOUT
   ========================================================================== */

.team-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.member-card {
    text-align: center;
    padding: 30px;
}

.member-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 3px solid var(--accent-emerald);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

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

.member-name {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.member-role {
    font-size: 13px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.member-bio {
    font-size: 13px;
    color: var(--text-muted);
}

.team-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.staff-card {
    text-align: center;
    padding: 20px;
}

.staff-name {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.staff-role {
    font-size: 11px;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Ambassador Cards */
.duta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.duta-card {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.02);
}

.duta-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-emerald);
    margin: 0 auto 10px auto;
    border: 2px solid var(--glass-border);
}

.duta-name {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.duta-role {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   PARTNER REGISTRATION FORM
   ========================================================================== */

.register-container {
    max-width: 800px;
    margin: 0 auto;
}

.reg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reg-form .form-group-full {
    grid-column: span 2;
}

.reg-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 15px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-emerald);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.btn-submit {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary-light));
    border: none;
    color: white;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-medium);
    border-left: 5px solid var(--accent-emerald);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-page {
    background: linear-gradient(135deg, var(--primary-dark), #030a05);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.login-logo-icon {
    font-size: 28px;
    color: var(--accent-emerald);
}

.login-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.login-logo-text span {
    color: var(--accent-emerald);
}

.login-card h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: white;
}

.login-card p {
    font-size: 13px;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-login {
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary-light));
    border: none;
    color: white;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.login-err-msg {
    color: #e74c3c;
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.login-footer {
    margin-top: 25px;
    font-size: 12px;
}

.login-footer a {
    color: var(--accent-emerald);
    text-decoration: none;
}

/* ==========================================================================
   DASHBOARD GENERAL (ADMIN & MEMBER)
   ========================================================================== */

.dashboard-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dash-nav {
    background: rgba(5, 22, 9, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-role-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--primary-dark);
    display: inline-block;
}

.user-role-badge.admin-badge {
    background: var(--accent-gold);
}

.user-role-badge.member-badge {
    background: var(--accent-emerald);
}

.btn-logout {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #e74c3c;
    color: white;
}

.dash-main {
    flex: 1;
    padding: 40px 30px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

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

.dash-title h1 {
    font-size: 28px;
}

.dash-title p {
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 24px;
    color: white;
}

.stat-info p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 32px;
    color: var(--accent-emerald);
    opacity: 0.8;
}

.stat-icon.gold-icon {
    color: var(--accent-gold);
}

/* ==========================================================================
   MEMBER DASHBOARD SPECIFIC
   ========================================================================== */

.member-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Timer Card Styles */
.timer-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(27, 99, 47, 0.15), rgba(14, 61, 28, 0.05));
    padding: 40px;
}

.timer-title {
    font-size: 18px;
    color: white;
    margin-bottom: 25px;
}

.timer-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.timer-unit-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    min-width: 80px;
}

.timer-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: monospace;
}

.timer-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.timer-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dynamic Disbursement Notification */
.payout-notification {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(46, 204, 113, 0.1));
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    animation: fadeInDown 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: none; /* Controlled dynamically by JS */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payout-notification h4 {
    font-size: 18px;
    color: var(--accent-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payout-notification p {
    font-size: 13px;
    color: white;
    line-height: 1.5;
}

.payout-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.payout-close:hover {
    color: white;
}

/* Tabs System */
.tab-container {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}

.tab-btn:hover {
    color: white;
    background: var(--glass-bg);
}

.tab-btn.active {
    color: white;
    background: var(--primary-light);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Cooperation Certificate Preview Container */
.cert-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cert-print-area {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* The actual HTML certificate layout - menggunakan sertifikat.png sebagai background */
.certificate {
    width: 820px;
    height: 580px;
    background-image: url('../sertifikat.png.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    overflow: hidden;
}

.cert-border-inset {
    border: none;
    height: 100%;
    width: 100%;
    /* padding-top besar agar teks HARVINDO muncul di BAWAH logo gambar sertifikat */
    padding: 130px 60px 28px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.1);
}

.cert-header {
    text-align: center;
    margin-bottom: 4px;
}

.cert-logo {
    font-weight: 800;
    font-size: 20px;
    color: #f5e6a3;
    margin-bottom: 1px;
    letter-spacing: 3px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.cert-logo span {
    color: #ffd700;
}

.cert-org {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #f5e6a3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-weight: 600;
}

.cert-body {
    text-align: center;
    margin: 2px 0;
}

.cert-title {
    font-size: 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.9);
}

.cert-subtitle {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4edda;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.cert-recipient-label {
    font-size: 11px;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.cert-recipient-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.5);
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 8px;
    min-width: 220px;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.8);
}

.cert-text {
    font-size: 11px;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.55;
    color: #e8f5e9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.cert-text strong {
    color: #ffffff;
    font-weight: 700;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4px;
}

/* Kotak info Reg No yang rapi */
.cert-meta {
    font-size: 9.5px;
    text-align: left;
    color: #e0e0e0;
    line-height: 1.9;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    padding: 8px 13px;
    min-width: 195px;
    backdrop-filter: blur(4px);
}

.cert-meta strong {
    color: #ffd700;
    font-weight: 600;
}

.cert-signature-block {
    text-align: center;
    width: 165px;
}

.cert-sig-line {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    border-top: 1px solid rgba(255, 215, 0, 0.5);
    padding-top: 4px;
    margin-top: 28px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.cert-sig-role {
    font-size: 8.5px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Lingkaran stamp DIHAPUS */
.cert-stamp {
    display: none;
}

/* ============================================================
   PRINT CERTIFICATE - 1 Halaman Landscape A4
   ============================================================ */
@media print {
    /* Sembunyikan semua konten halaman */
    body > * {
        display: none !important;
    }
    
    /* Tampilkan hanya area cetak sertifikat */
    .cert-print-area {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 999999 !important;
    }
    
    .cert-print-area * {
        visibility: visible !important;
    }

    /* Sertifikat pas 1 halaman landscape */
    .certificate {
        width: 277mm !important;
        height: 190mm !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* Sembunyikan navbar, tombol, dan elemen lain saat print */
    .dash-nav,
    .dash-main > .dash-header,
    .stats-grid,
    .member-content-grid > .timer-card,
    .tabs-card .tab-buttons,
    .cert-preview-box > p,
    .cert-preview-box > button,
    .payout-notification,
    #approvalBanner {
        display: none !important;
    }
    
    /* Sertifikat fullscreen saat print */
    .dashboard-layout,
    .dash-main,
    .member-content-grid,
    .tabs-card,
    .tab-panel,
    .cert-preview-box,
    .cert-print-area {
        all: unset !important;
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }

    @page {
        size: A4 landscape;
        margin: 0mm;
    }
}

/* Chat Client Layout */
.chat-layout {
    display: grid;
    grid-template-columns: 1fr;
    height: 480px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(0,0,0,0.25);
    overflow: hidden;
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-box-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-box-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-emerald);
}

.chat-box-info h4 {
    font-size: 14px;
    color: white;
}

.chat-box-info p {
    font-size: 11px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: var(--primary-light);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--glass-border);
}

.chat-time {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
    text-align: right;
    display: block;
}

.chat-input-area {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-emerald);
}

.btn-send-chat {
    background: var(--accent-emerald);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.btn-send-chat:hover {
    transform: scale(1.05);
    background: #27ae60;
}

/* ==========================================================================
   ADMIN DASHBOARD SPECIFIC
   ========================================================================== */

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding-left: 35px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.admin-filter {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    font-size: 13px;
    outline: none;
}

.admin-actions-row {
    display: flex;
    gap: 10px;
}

.btn-admin-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-admin-action.btn-approve {
    background: var(--accent-emerald);
    color: white;
}

.btn-admin-action.btn-approve:hover {
    background: #27ae60;
}

.btn-admin-action.btn-edit {
    background: var(--accent-gold);
    color: white;
}

.btn-admin-action.btn-edit:hover {
    background: #d35400;
}

.btn-admin-action.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-admin-action.btn-delete:hover {
    background: #c0392b;
}

/* Tables in Admin */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: white;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr {
    transition: var(--transition);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.status-badge.approved {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent-emerald);
    border: 1px solid rgba(46, 204, 113, 0.4);
}

/* Admin Chat Manager Interface */
.admin-chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 500px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(0,0,0,0.25);
    overflow: hidden;
}

.chat-sidebar {
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
}

.chat-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 14px;
}

.chat-user-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
}

.chat-user-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-item:hover, .chat-user-item.active {
    background: var(--glass-bg);
}

.chat-user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-emerald);
}

.chat-user-details {
    flex: 1;
}

.chat-user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.chat-user-duta {
    font-size: 10px;
    color: var(--accent-gold);
}

/* Admin Edit Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-card {
    width: 100%;
    max-width: 480px;
    background: #09200f;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

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

.modal-title {
    font-size: 18px;
    color: white;
}

.modal-close {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: white;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.modal-form-row label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-modal-save {
    background: var(--accent-emerald);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-modal-save:hover {
    background: #27ae60;
}

/* Textarea in modal forms */
.modal-form textarea.form-control {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 12px 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.modal-form textarea.form-control:focus {
    border-color: #3498db;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .member-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 22, 9, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 50px 20px;
        transition: 0.4s ease;
        z-index: 999;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-lead-grid {
        grid-template-columns: 1fr;
    }
    
    .team-staff-grid {
        grid-template-columns: 1fr;
    }
    
    .duta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .reg-form {
        grid-template-columns: 1fr;
    }
    
    .reg-form .form-group-full {
        grid-column: span 1;
    }
    
    .btn-submit {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-chat-layout {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none; /* Can be toggled on mobile if needed */
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .duta-grid {
        grid-template-columns: 1fr;
    }
}
