:root {
    --bg-main: #030303;
    --bg-surface: #09090b;
    --bg-card: #121214;
    --border-color: #1e1e24;
    --emerald-brand: #10b981;
    --emerald-hover: #059669;
    --text-main: #f4f4f5;
    --text-muted: #71717a;
    --blue: #2563eb;
    --amber: #f59e0b;
    --purple: #a855f7;
    --danger: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.landing-page-wrapper {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.landing-navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px 24px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.landing-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 35px;
    padding: 0 10px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 85px;
}

@media (min-width: 480px) {
    .hero-actions { flex-direction: row; }
}

.tech-stack-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 90px;
    overflow: hidden;
}

.tech-stack-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.25);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.marquee-container::before, .marquee-container::after {
    content: "";
    position: absolute;
    top: 0; width: 120px; height: 100%;
    z-index: 2;
}
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-main), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-main), transparent); }

.marquee-track {
    display: inline-flex;
    gap: 16px;
    animation: marqueeAnimation 22s linear infinite;
    width: max-content;
}

.tech-badge {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #f4f4f5;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tech-badge i {
    font-size: 1.15rem;
}

@keyframes marqueeAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.pricing-container {
    width: 100%;
    max-width: 800px;
    padding: 50px 14px 20px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 35px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
}

@media (min-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
    border-color: rgba(255,255,255,0.1);
}

.pricing-vip-highlight {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(180deg, #09090b 0%, #141008 100%);
}
.pricing-vip-highlight:hover {
    border-color: var(--amber);
}

.vip-badge-tag {
    position: absolute;
    top: -11px; right: 20px;
    background-color: var(--amber);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.text-gradient-amber { color: var(--amber); }

.plan-price {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.plan-price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
}

.plan-features li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4d4d8;
}

.plan-features li i {
    width: 15px;
    height: 15px;
    color: var(--emerald-brand);
}
.pricing-vip-highlight .plan-features li i { color: var(--amber); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    outline: none;
}

.btn-emerald-nav { background-color: var(--emerald-brand); color: #000; padding: 8px 16px; font-size: 0.85rem; }
.btn-emerald-main { background-color: var(--emerald-brand); color: #000; padding: 12px 24px; width: 100%; }
.btn-emerald-nav:hover, .btn-emerald-main:hover { background-color: var(--emerald-hover); transform: translateY(-1px); }
.btn-amber-main { background-color: var(--amber); color: #000; padding: 12px 24px; width: 100%; }
.btn-amber-main:hover { background-color: #d97706; transform: translateY(-1px); }
.btn-outline-packet { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 12px 24px; width: 100%; }
.btn-outline-packet:hover { background-color: rgba(255, 255, 255, 0.02); border-color: #3f3f46; }
.btn-secondary { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 16px; }
.btn-upgrade { background: linear-gradient(135deg, var(--amber) 0%, #d97706 100%); color: #000; font-weight: 700; width: 100%; padding: 10px; }
.btn-logout { background-color: transparent; color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); width: 100%; padding: 10px; }
.btn-logout:hover { background-color: var(--danger); color: #000; }
.btn-whatsapp { background-color: #22c55e; color: #000; font-weight: 700; width: 100%; padding: 12px; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; width: auto; }

.full-screen-center { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; }
.auth-card-clean { width: 100%; max-width: 420px; background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 36px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.auth-brand-center { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.auth-card-clean h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-card-clean p { color: var(--text-muted); text-align: center; font-size: 0.85rem; margin-bottom: 28px; }

.auth-form-clean { display: flex; flex-direction: column; gap: 18px; }
.form-group-clean { display: flex; flex-direction: column; gap: 6px; }
.form-group-clean label { font-size: 0.75rem; font-weight: 600; color: #a1a1aa; }
.form-group-clean input { padding: 11px 14px; background-color: #000; border: 1px solid var(--border-color); color: #fff; border-radius: 6px; outline: none; font-size: 0.9rem; }
.form-group-clean input:focus { border-color: var(--emerald-brand); }

.auth-divider-clean { margin: 24px 0; text-align: center; color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.05em; position: relative; }
.auth-divider-clean span { background-color: var(--bg-surface); padding: 0 12px; position: relative; z-index: 2; }
.auth-divider-clean::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background-color: var(--border-color); z-index: 1; }
.btn-github-clean { background-color: #18181b; border: 1px solid var(--border-color); color: #fff; width: 100%; padding: 11px; }
.btn-github-clean:hover { background-color: #27272a; }
.auth-toggle-text-clean { margin-top: 26px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.auth-toggle-text-clean a { color: var(--emerald-brand); text-decoration: none; font-weight: 600; }

#app-workspace { display: flex; width: 100vw; height: 100vh; overflow: hidden; background-color: var(--bg-main); }
.card { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 24px; }

#sidebarMenu { width: 250px; background-color: var(--bg-surface); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; z-index: 10; transition: transform 0.25s ease; }
.sidebar-header { padding: 24px 20px; display: flex; justify-content: space-between; align-items: center; }
.sidebar-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; }
.sidebar-logo span { color: var(--emerald-brand); }

.user-profile-box { margin: 0 14px 24px 14px; padding: 12px; background-color: #030303; border: 1px solid var(--border-color); border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.avatar-circle { width: 36px; height: 36px; background-color: var(--emerald-brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: #000; }
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 0.85rem; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.user-plan { font-size: 0.65rem; font-weight: 700; color: var(--emerald-brand); letter-spacing: 0.02em; }

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; flex: 1; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; background: transparent; border: none; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; text-align: left; border-radius: 6px; font-weight: 500; }
.menu-item:hover { background-color: rgba(255, 255, 255, 0.02); color: var(--text-main); }
.menu-item.active { background-color: rgba(16, 185, 129, 0.06); color: var(--emerald-brand); font-weight: 600; border-left: 2px solid var(--emerald-brand); border-radius: 0 6px 6px 0; }
.menu-item-owner { border-left: 2px solid var(--purple); color: var(--purple) !important; }
.sidebar-footer { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-color); }

.main-content { flex: 1; display: flex; flex-direction: column; height: 100%; overflow-y: auto; background-color: var(--bg-main); }
.top-header { height: 65px; border-bottom: 1px solid var(--border-color); padding: 0 24px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background-color: rgba(3,3,3,0.8); backdrop-filter: blur(8px); z-index: 5; }
.header-welcome { font-weight: 600; font-size: 0.95rem; }

.api-key-box { display: flex; align-items: center; background-color: #000; border: 1px solid var(--border-color); padding: 5px 10px; border-radius: 6px; gap: 10px; }
.api-key-label { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.api-key-box input { background: transparent; border: none; color: var(--emerald-brand); font-family: monospace; font-size: 0.85rem; width: 140px; outline: none; }
.icon-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; }
.icon-btn:hover { color: var(--text-main); }
.content-body { padding: 28px; flex: 1; }

.tab-header-description { margin-bottom: 24px; }
.tab-header-description h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.tab-header-description p { color: var(--text-muted); font-size: 0.85rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 35px; }
.stat-card { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-box-green { background-color: rgba(16, 185, 129, 0.04); color: var(--emerald-brand); }
.icon-box-blue { background-color: rgba(59, 130, 246, 0.04); color: #3b82f6; }
.icon-box-amber { background-color: rgba(245, 158, 11, 0.04); color: var(--amber); }
.icon-box-purple { background-color: rgba(168, 85, 247, 0.04); color: var(--purple); }
.stat-info { display: flex; flex-direction: column; }
.stat-title { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }

.text-glow-green { color: var(--emerald-brand); text-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
.text-glow-blue { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }
.text-glow-amber { color: var(--amber); text-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
.text-glow-purple { color: var(--purple); text-shadow: 0 0 10px rgba(168, 85, 247, 0.2); }

.dashboard-activity-banner { background: linear-gradient(90deg, #09090b 0%, #05140f 100%); border-color: rgba(16, 185, 129, 0.15); display: flex; align-items: center; gap: 16px; }
.dashboard-activity-banner h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.dashboard-activity-banner p { font-size: 0.85rem; color: var(--text-muted); }

.tab-section { display: none; }
.tab-section.active { display: block; }

.section-title-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title-container h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.section-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

.database-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.db-card-premium { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: all 0.2s ease; cursor: pointer; }
.db-card-premium:hover { border-color: var(--emerald-brand); transform: translateY(-2px); }
.db-card-header { display: flex; align-items: center; gap: 12px; }
.db-avatar-icon { width: 38px; height: 38px; background-color: #141416; border: 1px solid var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--emerald-brand); }
.db-card-info h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.db-card-info span { font-size: 0.75rem; color: var(--text-muted); }
.db-card-meta { border-top: 1px solid rgba(255,255,255,0.03); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #a1a1aa; }
.btn-delete-db { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; padding: 4px; border-radius: 4px; }
.btn-delete-db:hover { color: var(--danger); background-color: rgba(220, 38, 38, 0.08); }

.inspector-card { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 10px; display: grid; grid-template-columns: 260px 1fr; min-height: 520px; margin-top: 20px; overflow: hidden; }
.inspector-sidebar { border-right: 1px solid var(--border-color); padding: 20px; background-color: #060608; }
.inspector-sidebar h3 { font-size: 1.05rem; color: var(--emerald-brand); margin-bottom: 16px; font-weight: 700; text-overflow: ellipsis; overflow: hidden; }
.inspector-sidebar-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; margin-top: 24px; margin-bottom: 10px; letter-spacing: 0.04em; }
.inspector-tables-list { display: flex; flex-direction: column; gap: 4px; }
.table-item-btn { width: 100%; padding: 10px; background: transparent; border: none; color: var(--text-muted); font-size: 0.85rem; text-align: left; cursor: pointer; border-radius: 6px; display: flex; align-items: center; gap: 8px; transition: all 0.15s ease; }
.table-item-btn:hover { background-color: rgba(255,255,255,0.02); color: #fff; }
.table-item-btn.active { background-color: rgba(16, 185, 129, 0.06); color: var(--emerald-brand); font-weight: 600; }
.inspector-main { padding: 24px; display: flex; flex-direction: column; }
.blank-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); gap: 14px; }
.blank-icon { width: 48px; height: 48px; stroke-width: 1px; color: #3f3f46; }
.table-header-area { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.table-container { width: 100%; overflow-x: auto; border: 1px solid var(--border-color); border-radius: 8px; background-color: #050506; }
.custom-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; }
.custom-table th { background-color: #09090b; padding: 14px 16px; color: #a1a1aa; border-bottom: 1px solid var(--border-color); font-weight: 600; }
.custom-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); color: #e4e4e7; }
.custom-table tr:last-child td { border-bottom: none; }

.storage-file-explorer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.file-card-premium { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; transition: border-color 0.15s ease; }
.file-card-premium:hover { border-color: rgba(255,255,255,0.1); }
.file-icon-preview-box { height: 100px; background-color: #030303; border: 1px solid var(--border-color); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.file-preview-img { width: 100%; height: 100%; object-fit: cover; }
.file-icon-large { width: 32px; height: 32px; color: var(--text-muted); }
.file-details-box { display: flex; flex-direction: column; gap: 2px; }
.file-name-txt { font-size: 0.85rem; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.file-size-txt { font-size: 0.75rem; color: var(--text-muted); }
.file-actions-row { display: flex; gap: 8px; margin-top: 4px; }
.btn-file-action { flex: 1; padding: 8px; background-color: #141416; border: 1px solid var(--border-color); border-radius: 6px; color: #fff; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-file-action:hover { background-color: #1e1e22; border-color: #3f3f46; }
.btn-file-delete { background-color: rgba(220,38,38,0.05); border-color: rgba(220,38,38,0.2); color: #ef4444; }
.btn-file-delete:hover { background-color: var(--danger); color: #000; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 100; padding: 20px; }
.modal-card { width: 100%; max-width: 400px; background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 28px; }
.modal-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.modal-desc { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 16px; line-height: 1.4; }
.modal-input { width: 100%; padding: 11px; background-color: #000; border: 1px solid var(--border-color); color: #fff; border-radius: 6px; outline: none; margin-bottom: 10px; font-size: 0.9rem; }
.modal-input:focus { border-color: var(--emerald-brand); }
.modal-textarea { width: 100%; height: 140px; background-color: #000; border: 1px solid var(--border-color); color: var(--emerald-brand); font-family: monospace; padding: 12px; border-radius: 6px; outline: none; resize: none; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.qris-modal-card { text-align: center; }
.qris-image-container { background-color: #fff; padding: 12px; border-radius: 10px; display: inline-block; margin: 14px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.qris-image-container img { max-width: 210px; display: block; }
.qris-steps-box { background-color: #000; border: 1px solid var(--border-color); padding: 12px 16px; border-radius: 8px; font-size: 0.8rem; text-align: left; margin-bottom: 20px; line-height: 1.5; }
.qris-steps-box b { color: var(--amber); }
.qris-steps-box ol { margin-left: 16px; margin-top: 6px; color: #d4d4d8; }
.modal-actions-column { display: flex; flex-direction: column; gap: 8px; }

.mobile-toggle-btn, .mobile-close-btn, #sidebarOverlay { display: none; }
@media (max-width: 768px) {
    #sidebarMenu { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
    #sidebarMenu.open { transform: translateX(0); }
    #sidebarOverlay.open { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.6); z-index: 9; }
    .mobile-toggle-btn, .mobile-close-btn { display: block; background: transparent; border: none; color: #fff; cursor: pointer; }
    .inspector-card { grid-template-columns: 1fr; }
    .top-header { padding: 0 16px; }
}
