* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* LOADING SCREEN */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
    text-align: center;
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
}

.dot {
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* MAIN */
#main-content {
    display: none;
    background: #f1f5f9;
    min-height: 100vh;
    padding-bottom: 70px;
}

.header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.header h1 { font-size: 1.6rem; }
.header p { font-size: 0.8rem; opacity: 0.8; margin-top: 8px; }

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 10px 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    border-radius: 20px 20px 0 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 8px;
    color: #64748b;
    transition: 0.3s;
    border-radius: 12px;
}

.nav-item i { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.nav-item span { font-size: 0.7rem; font-weight: 500; }
.nav-item.active { color: #3b82f6; background: #eff6ff; }

/* PAGE */
.page-container { padding: 20px; max-width: 700px; margin: 0 auto; }
.page { display: none; animation: fadeIn 0.3s; }
.page.active-page { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* FORM */
.form-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 14px; }
label { font-size: 0.8rem; font-weight: 600; color: #334155; display: block; margin-bottom: 5px; }
input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.9rem;
}
input:focus, select:focus { outline: none; border-color: #3b82f6; }

.btn-generate {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-generate:hover { transform: scale(1.02); }

.result-area { margin-top: 20px; text-align: center; }
.ktp-image { max-width: 100%; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* REPORT */
.report-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0; }
.report-btn { flex: 1; padding: 12px; border-radius: 40px; text-align: center; font-weight: 600; text-decoration: none; color: white; transition: transform 0.2s; }
.report-btn:hover { transform: scale(1.02); }
.wa { background: #25D366; }
.tele { background: #0088cc; }
.email { background: #ea4335; }
.format-box { background: #f8fafc; border-radius: 16px; padding: 15px; margin-top: 15px; }

/* PROFIL PAGE */
.profile-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.profile-header { text-align: center; }
.profile-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.profile-header p { color: #475569; margin-bottom: 12px; }

.version-badge {
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    display: inline-block;
}

.btn-install-app {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-install-app:hover { transform: scale(1.02); }

.section-title {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #3b82f6;
    margin-bottom: 16px;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

/* TECH GRID */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.tech-card {
    background: #f8fafc;
    padding: 18px 12px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.tech-card:hover { transform: translateY(-3px); }
.tech-card i { font-size: 2rem; color: #3b82f6; margin-bottom: 10px; }
.tech-card h4 { font-size: 1rem; margin-bottom: 5px; }
.tech-card p { font-size: 0.7rem; color: #64748b; }
.tech-card span { font-size: 0.6rem; color: #94a3b8; display: block; margin-top: 6px; }

/* STATS */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
}

.stat-card {
    background: #f8fafc;
    padding: 16px 8px;
    border-radius: 20px;
}

.stat-card h3 { font-size: 1.3rem; font-weight: 800; }
.stat-card p { font-size: 0.7rem; color: #64748b; }

/* DEVELOPER */
.developer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
    margin-bottom: 15px;
}

.developer-info h3 { font-size: 1.3rem; margin-bottom: 4px; }
.developer-info p { color: #64748b; font-size: 0.85rem; }

/* SOCIAL GRID */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    transition: transform 0.2s;
}

.social-item:hover { transform: scale(1.02); }
.social-item i { font-size: 1.2rem; }

.wa-bg { background: #25D366; }
.tele-bg { background: #0088cc; }
.tiktok-bg { background: #000000; }
.github-bg { background: #333333; }
.ig-bg { background: linear-gradient(45deg, #f09433, #d62976, #962fbf); }

.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 20px;
}