/* ==========================================================================
   NEW UI/UX DESIGN SYSTEM (Slate & Deep Indigo Theme)
   Kebijakan AdSense Friendly: Kontras tinggi, Tata Layout Jelas, Tanpa Element Tumpang Kontak
   ========================================================================== */

:root {
    /* Colors */
    --bg-main: #f8fafc;        /* Slate 50 */
    --bg-card: #ffffff;        /* Putih bersih */
    --bg-sidebar: #ffffff;     /* Slate 900 */
    --text-main: #0f172a;      /* Slate 900 */
    --text-muted: #475569;     /* Slate 600 */
    --border-color: #e2e8f0;   /* Slate 200 */
    
    /* Brand Accents */
    --primary: #3b82f6;        /* Blue 500 */
    --primary-hover: #1d4ed8;  /* Blue 700 */
    --pro-color: #f59e0b;      /* Amber 500 */
    --pro-accent: #fef3c7;     /* Amber 100 */
    
    /* Layout Dimensions */
    --topbar-height: 65px;
    --sidebar-width: 260px;
    --radius-lg: 12px;
    --radius-md: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TYPOGRAPHY & ELEMENTS
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

input[type="text"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-main);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.btn-outline {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

/* BADGES */
.badge-free, .badge-pro {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.badge-free {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-pro {
    background: var(--pro-accent);
    color: #b45309;
}

#planBadge {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

/* ==========================================================================
   STICKY TOPBAR & USER PROFILE AREA
   ========================================================================== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: var(--topbar-height);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-logo {
    font-size: 20px;
    font-weight: 800;
   letter-spacing: -0.03em;
}

.topbar-logo span {
    color: var(--primary);
}

.topbar-right {
    display: flex;
    align-items: center;
}

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

.user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
   APP LAYOUT SECTION
   ========================================================================== */

.app-layout {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
}

/* STICKY SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: #f8fafc;
    padding: 32px 20px;
    flex-shrink: 0;
    position: sticky;
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
    z-index: 90;
    border-right: 1px solid #e2e8f0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav a {
    color: #000000;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
    background: #1e293b;
    color: #ffffff;
}

.sidebar-nav hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 20px 0;
    opacity: 0.5;
}

.sidebar-plan {
    margin-top: 10px;
    padding: 0 14px;
}

.admin-link {
    background: #000 !important;
    color: #fff !important;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid #fff;
}

.admin-link:hover {
    background: #991b1b !important;
}

/* MAIN CONTENT AREA */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    min-width: 0;
}

/* HERO SECTION */
.hero {
    text-align: left;
    padding: 40px 40px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.hero h1 span {
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 10px;
    border-radius: var(--radius-md);
}

.hero p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 700px;
}

/* BUILDER WRAPPER GRID */
.builder-wrapper {
    padding: 40px;
}

.builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.free-section,
.pro-section {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
}

/* PREVIEW ICON BOX */
.preview-box {
    margin-top: 10px;
}
#iconPreview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* PREMIUM BLUR OVERLAY */
.locked-pro {
    position: relative;
}

.pro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.pro-overlay-content {
    text-align: center;
    max-width: 340px;
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid #fde68a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pro-overlay-content h3 {
    color: #b45309;
    font-size: 18px;
    margin-bottom: 8px;
}

.pro-overlay-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pro-overlay-content ul {
    text-align: left;
    list-style: none;
    font-size: 13px;
    color: var(--text-main);
}

.pro-overlay-content li {
    margin: 6px 0;
    font-weight: 500;
}

.locked-pro input,
.locked-pro button,
.locked-pro select {
    pointer-events: none;
}

.pro-section h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.feature-card-pro {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.custom-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

.keystore-fields {
    margin-top: 12px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    top: calc(50% - 8px);
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
}

/* FORM SUBMIT ACTIONS */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-submit-free {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-free:hover {
    background: var(--primary-hover);
}

.btn-pro-locked {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
}

.btn-pro {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.2);
}

/* ==========================================================================
   BLOG ADMIN PANEL EXTRA (BLOGGER RICH PANEL OVERLAY SINKRON)
   ========================================================================== */
.btn-mode {
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

#editorToolbar button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-main);
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.15s ease;
}

#editorToolbar button:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   PROGRESS CARD & TASKS
   ========================================================================== */

.build-card {
    background: var(--bg-card);
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.build-card-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.build-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.build-row span {
    color: var(--text-muted);
}

.progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.build-tasks {
    margin-top: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.build-tasks-header {
    padding: 12px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.task-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px;
}

/* ==========================================================================
   PRICING PAGE STYLES 
   ========================================================================== */
.pricing-page {
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: #0f172a;
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-price {
    margin-top: 20px;
    font-size: 40px;
    font-weight: 800;
    color: #22c55e;
}

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

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.member-card {
    border: 3px solid #2563eb;
}

.lifetime-card {
    border: 3px solid #16a34a;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.plan-period {
    color: #64748b;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 12px;
}

.pricing-btn {
    display: block;
    text-align: center;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
}

.active-plan {
    background: #16a34a !important;
    color: white !important;
    opacity: .9;
    pointer-events: none;
}

.disabled-plan {
    background: #94a3b8 !important;
    color: white !important;
    pointer-events: none;
}

@media(max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        background: #ffffff;
        color: var(--text-main);
        width: 38px;
        height: 38px;
        border-radius: var(--radius-md);
        font-size: 16px;
        cursor: pointer;
    }
}

/* ==========================================================================
   CONTACT PAGE STYLES 
   ========================================================================== */
.contact-page {
    max-width: 700px;
    margin: auto;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.contact-card h2 {
    margin-bottom: 10px;
}

.contact-card p {
    color: #64748b;
    margin-bottom: 20px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-sizing: border-box; 
}

.contact-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.contact-divider {
    text-align: center;
    margin: 20px 0;
    color: #64748b;
}

.wa-btn {
    display: block;
    text-align: center;
    background: #22c55e;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
}

/* ==========================================================================
   FEATURES LOGO CARD HOVER
   ========================================================================== */
.features-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.features-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 18px;
    color: #0070f3;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   DOCUMENTATION, DISCLAIMER & STATIS LAYOUT CONTAINER
   ========================================================================== */
.main-content .container {
    max-width: 960px;
    margin: 20px auto 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.main-content .breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
    color: #666;
}

.main-content .breadcrumb a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.main-content .breadcrumb a:hover {
    text-decoration: underline;
}

.main-content h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #1e293b;
    line-height: 1.2;
}

.main-content .updated {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 14px;
    font-style: italic;
}

.main-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #1e293b;
    padding-bottom: 6px;
}

.main-content p {
    margin-bottom: 16px;
    color: #334155;
    line-height: 1.7;
}

.main-content section {
    margin: 40px 0;
    scroll-margin-top: 80px; 
}

.main-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.main-content ul li {
    margin-bottom: 8px;
    color: #334155;
}

/* TABLE OF CONTENTS (TOC) COMPONENT MODERN & BLOGGER-STYLE */
details.toc {
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    margin: 30px 0;
    overflow: hidden;
    transition: .3s;
}

details.toc summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    user-select: none;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.toc summary::-webkit-details-marker {
    display: none;
}

details.toc summary::after {
    content: "▼";
    font-size: 12px;
    color: #64748b;
    transition: transform .25s ease;
}

details.toc[open] summary::after {
    transform: rotate(180deg);
}

details.toc ol {
    padding: 0 30px 20px 40px;
}

details.toc li {
    margin: 10px 0;
    color: #334155;
}

details.toc a {
    text-decoration: none;
    color: #2563eb;
}

details.toc a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   MODERN SEPARATED FOOTER & COPYRIGHT CARDS (FULL WIDTH SYSTEM)
   ========================================================================== */

/* Container Utama Pembalut di Bagian Paling Bawah */
.footer-container-full {
    width: 100%;
    margin-top: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.footer-card-full, 
.copyright-card-full {
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

/* Card 1: Footer Utama (Full Width Tanpa Deskripsi) */
.footer-card-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 40px;
}

.footer-brand {
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Card 2: Copyright Terpisah (Full Width) */
.copyright-card-full {
    padding: 16px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #ffffff; /* Sedikit shading kontras tipis di area dasar bawah */
}

.copyright-card-full p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE HIDING RULE
   ========================================================================== */
@media (max-width: 1024px) {
    .builder-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero {
        padding: 32px 24px;
    }
    .builder-wrapper {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .user-name {
        display: none !important;
    }
    
    .user-profile-area {
        gap: 8px; 
    }


    .menu-toggle:hover {
        background: #f1f5f9;
    }

    .topbar {
        padding: 0 16px;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: var(--topbar-height);
        height: calc(100vh - var(--topbar-height));
        width: 260px;
        z-index: 1001;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 25px -5px rgba(0, 0, 0, 0.1);
    }

    .sidebar.show {
        left: 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .main-content .container {
        margin: 10px;
        padding: 24px;
    }
    
    .main-content h1 {
        font-size: 1.8rem;
    }
    
    details.toc ol {
        padding: 0 20px 20px 30px;
    }

    /* Kustomisasi Khusus HP / Perangkat Mobile */
    .footer-card-full {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
    }
    
    .footer-brand {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .copyright-card-full {
        padding: 16px 16px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 26px;
    }
    .topbar-logo {
        font-size: 18px;
    }
    .user-profile-area .btn-outline {
        padding: 6px 10px;
        font-size: 12px;
    }
}

        .dashboard-container {
            width: 100%;
            max-width: 100%; /* Mengikuti lebar penuh main content */
            margin: 0 auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .dashboard-card {
            background: #fff;
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,.04);
            border: 1px solid #e2e8f0;
            width: 100%;
        }

        

        /* Membership Box Full Width */
        .membership-box {
            padding: 30px;
            border-radius: 16px;
            margin-top: 25px;
            width: 100%;
        }

        .free-box {
            background: #eff6ff;
            border: 2px solid #3b82f6;
        }

        .pro-box {
            background: #ecfdf5;
            border: 2px solid #22c55e;
        }

        .plan-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 10px;
            color: #0f172a;
        }

        .plan-desc {
            font-size: 15px;
            color: #475569;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .upgrade-btn {
            display: inline-block;
            background: #2563eb;
            color: #fff;
            text-decoration: none;
            padding: 12px 28px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 15px;
            transition: background 0.2s;
        }

        .upgrade-btn:hover {
            background: #1d4ed8;
        }

        .expire-date {
            font-size: 18px;
            font-weight: 600;
            margin-top: 15px;
        }

        .lifetime {
            color: #16a34a;
            font-weight: 700;
        }

        /* ==========================================================================
           RESPONSIF SCREEN LAYAR HP (MOBILE)
           ========================================================================== */
        @media (max-width: 768px) {
            .dashboard-container {
                padding: 10px;
            }

            .dashboard-card {
                padding: 24px 20px;
                border-radius: 16px;
            }

            

            .membership-box {
                padding: 20px;
                text-align: center;
            }

            .plan-title {
                font-size: 20px;
            }

            .plan-desc {
                font-size: 14px;
            }

            .upgrade-btn {
                width: 100%;
                text-align: center;
            }
        }
.admin-container {
            max-width: 1200px;
            margin: auto;
            padding: 20px 0;
        }

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

        .admin-title {
            font-size: 28px;
            font-weight: 700;
        }

        .logout-btn {
            background: #ef4444;
            color: #fff;
            border: none;
            padding: 12px 18px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
        }

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

        .stat-card {
            background: #fff;
            padding: 20px;
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(0,0,0,.08);
        }

        .stat-card h3 {
            margin: 0;
            color: #64748b;
            font-size: 14px;
        }

        .stat-card p {
            margin: 10px 0 0;
            font-size: 30px;
            font-weight: 700;
        }

        .search-input {
            width: 100%;
            padding: 14px;
            border: 1px solid #ddd;
            border-radius: 12px;
            margin-bottom: 20px;
            box-sizing: border-box;
        }

        .users-table {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,.08);
        }

        .user-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
        }

        .user-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-photo {
            width: 50px;
            height: 50px;
            border-radius: 50%;
        }

        .user-name {
            font-weight: 600;
        }

        .user-email {
            color: #64748b;
            font-size: 14px;
        }

        .user-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-upgrade {
            background: #22c55e;
            color: white;
            border: none;
            padding: 10px 14px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
        }

        .btn-downgrade {
            background: #ef4444;
            color: white;
            border: none;
            padding: 10px 14px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
        }

        .membership-info {
            margin-top: 8px;
            font-size: 12px;
            color: #64748b;
            line-height: 1.5;
        }

        .lifetime {
            color: #16a34a;
            font-weight: 600;
        }

        .badge-pro {
            background: #dcfce7;
            color: #15803d;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            display: inline-block;
        }

        .badge-free {
            background: #dbeafe;
            color: #1d4ed8;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            display: inline-block;
        }

        .btn-delete {
            background: #ef4444;
            color: white;
            border: none;
            padding: 10px 14px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
        }

        /* ==========================================================================
           CSS TAMBAHAN: RESPONSIVE UNTUK HP / MOBILE (MAKSIMAL LAYAR 768px)
           ========================================================================== */
        @media (max-width: 768px) {
            .admin-container {
                padding: 10px;
            }

            .admin-header {
                flex-direction: row; /* Tetap sebaris agar ringkas */
                align-items: center;
                margin-bottom: 20px;
            }

            .admin-title {
                font-size: 22px; /* Ukuran teks judul diperkecil sedikit */
            }

            .logout-btn {
                padding: 8px 14px;
                font-size: 14px;
            }

            /* Statistik diubah dari 3 kolom ke samping menjadi 1 kolom tumpuk bawah */
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-card p {
                font-size: 26px;
                margin-top: 5px;
            }

            /* Struktur Baris User Table Diubah Menjadi Vertikal Flex */
            .user-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
                padding: 15px;
            }

            /* Area Informasi User (Foto & Nama) */
            .user-left {
                width: 100%;
            }

            /* Area Tombol Aksi (Upgrade/Delete) */
            .user-right {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap; /* Menghindari tombol overflow keluar layar */
                gap: 10px;
                border-top: 1px dashed #eee; /* Pembatas visual antara info user & tombol */
                padding-top: 12px;
            }

            .btn-upgrade, .btn-downgrade, .btn-delete {
                flex: 1; /* Membuat ukuran tombol seimbang */
                text-align: center;
                font-size: 13px;
                padding: 10px;
                min-width: 100px; /* Batas minimal lebar tombol */
            }
        }

        .history-page {
            width: 100%;
            max-width: 100%; /* Mengikuti lebar penuh main content */
            margin: 0 auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .history-page h2 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 24px;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Container menggunakan Grid System Otomatis yang Penuh */
        #historyContainer {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            width: 100%;
        }

        /* Styling Kartu History */
        .history-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 24px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.2s, box-shadow 0.2s;
        }

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

        .history-card h3 {
            margin: 0 0 8px 0;
            font-size: 18px;
            font-weight: 600;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .history-card p {
            margin: 0 0 20px 0;
            font-size: 14px;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Badge Format (.apk / .aab) */
        .format-badge {
            background: #f1f5f9;
            color: #475569;
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
        }

        /* Tombol Download */
        .download-btn {
            display: block;
            background: #2563eb;
            color: #ffffff;
            text-align: center;
            padding: 12px 16px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: background 0.2s;
        }

        .download-btn:hover {
            background: #1d4ed8;
        }

        /* Status Kosong / Loading Tengah Sempurna */
        .status-message {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            background: #ffffff;
            border-radius: 14px;
            color: #64748b;
            font-size: 15px;
            border: 1px dashed #cbd5e1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* ==========================================================================
           MEDIA QUERY MOBILE 
           ========================================================================== */
        @media (max-width: 768px) {
            .history-page {
                padding: 12px;
            }

            .history-page h2 {
                font-size: 20px;
                margin-bottom: 16px;
            }

            #historyContainer {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .history-card {
                padding: 20px;
            }

            .history-card h3 {
                font-size: 16px;
                white-space: normal; 
            }
        }
        .pricing-page {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        /* 1. Jasa Service Card (Bagian Atas) */
        .service-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 15px;
            width: 100%;
        }

        .service-title {
            font-size: 20px;
            font-weight: 700;
            color: #0f172a;
        }

        .service-card p {
            font-size: 15px;
            color: #64748b;
            max-width: 600px;
            margin: 0;
        }

        .service-price {
            font-size: 28px;
            font-weight: 800;
            color: #2563eb;
        }

        /* 2. Grid System 3 Kolom untuk Paket */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            width: 100%;
            align-items: stretch; /* Memaksa semua kartu sama tinggi secara otomatis */
        }

        /* 3. Aturan Kartu Pricing */
        .pricing-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 30px 24px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Menjaga tombol selalu berada di paling bawah */
            position: relative;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .pricing-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        }

        /* Penanda Visual Paket Unggulan (Member / Pro) */
        .pricing-card.member-card {
            border: 2px solid #2563eb;
        }
        .pricing-card.member-card::before {
            content: "POPULAR";
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: #2563eb;
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 4px 12px;
            border-radius: 20px;
            letter-spacing: 1px;
        }

        .pricing-card.lifetime-card {
            border: 2px solid #10b981;
        }
        .pricing-card.lifetime-card::before {
            content: "BEST VALUE";
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: #10b981;
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 4px 12px;
            border-radius: 20px;
            letter-spacing: 1px;
        }

        /* Konten di dalam kartu */
        .plan-name {
            font-size: 14px;
            font-weight: 800;
            color: #64748b;
            letter-spacing: 1.5px;
            text-align: center;
            margin-bottom: 10px;
        }

        .plan-price {
            font-size: 32px;
            font-weight: 800;
            color: #0f172a;
            text-align: center;
        }

        .plan-period {
            font-size: 13px;
            color: #64748b;
            text-align: center;
            margin-top: -4px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        /* List Fitur */
        .feature-list {
            list-style: none;
            padding: 0;
            margin: 0 0 30px 0;
            flex-grow: 1; /* Mendorong list mengambil sisa ruang kosong agar tombol presisi sejajar */
        }

        .feature-list li {
            font-size: 14px;
            color: #334155;
            padding: 8px 0;
            border-bottom: 1px dashed #f1f5f9;
            display: flex;
            align-items: center;
        }
        .feature-list li:last-child {
            border-bottom: none;
        }

        /* Tombol Aksi */
        .pricing-btn {
            display: block;
            width: 100%;
            text-align: center;
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 15px;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            border: none;
        }

        /* Variasi Warna Tombol */
        #freeBtn {
            background: #f1f5f9;
            color: #475569;
        }
        #freeBtn:hover {
            background: #e2e8f0;
        }

        #memberBtn {
            background: #2563eb;
            color: #ffffff;
        }
        #memberBtn:hover {
            background: #1d4ed8;
        }

        #lifetimeBtn {
            background: #10b981;
            color: #ffffff;
        }
        #lifetimeBtn:hover {
            background: #059669;
        }

        .service-card .pricing-btn {
            background: #0f172a;
            color: #ffffff;
            width: auto;
            min-width: 200px;
        }
        .service-card .pricing-btn:hover {
            background: #1e293b;
        }

        /* ==========================================================================
           RESPONSIF SCREEN LAYAR MOBILE
           ========================================================================== */
        @media (max-width: 768px) {
            .pricing-page {
                padding: 10px;
                gap: 20px;
            }
            .service-card {
                padding: 20px;
            }
            .service-price {
                font-size: 24px;
            }
            .service-card .pricing-btn {
                width: 100%;
            }
            .pricing-grid {
                grid-template-columns: 1fr; /* Menumpuk 1 kolom penuh di HP */
                gap: 24px;
            }
            .pricing-card {
                padding: 24px 20px;
            }
        }

        /* ==========================================================================
   CONTACT PAGE STYLES (Modern Card UX)
   ========================================================================== */
.contact-page {
    max-width: 100%;
    margin: 0;
    padding: 40px;
}

.contact-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.contact-card h2 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Modifikasi Element Input Khusus Halaman Kontak */
.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-main);
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Tombol Kirim Email */
.contact-btn {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

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

/* Pembatas Tengah */
.contact-divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    font-weight: 500;
}

/* Tombol WhatsApp Hijau Standar */
.wa-btn {
    display: block;
    text-align: center;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    box-sizing: border-box;
    transition: background 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.wa-btn:hover {
    background: #16a34a;
}

/* Responsive Optimization */
@media (max-width: 480px) {
    .contact-card {
        padding: 24px;
    }
    .contact-card h2 {
        font-size: 20px;
    }
}