* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* HEADER */
header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a i {
    color: #2563eb;
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    padding: 6px 14px;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

nav a i {
    margin-right: 6px;
}

/* MAIN */
main {
    flex: 1;
    padding: 30px 0 40px;
}

.toolkit-wrapper,
.donasi-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 32px 36px;
}

.toolkit-wrapper h1,
.donasi-wrapper h1 {
    font-size: 2rem;
    text-align: center;
    color: #0f172a;
}

.toolkit-wrapper .subtitle,
.donasi-wrapper .subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
    font-size: 1rem;
}

/* TABS */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #0f172a;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-btn i {
    margin-right: 6px;
}

.tab-content {
    display: none;
    animation: fade 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #0f172a;
}

/* DROP ZONE */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafcfd;
}

.drop-zone:hover {
    border-color: #2563eb;
    background: #f1f5f9;
}

.drop-zone.dragover {
    border-color: #2563eb;
    background: #dbeafe;
}

.drop-zone i {
    color: #94a3b8;
    margin-bottom: 12px;
}

.drop-zone .browse {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.drop-zone p {
    color: #64748b;
}

/* FILE LIST */
.file-list,
.file-info {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
}

.file-list .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.file-list .file-item:last-child {
    border-bottom: none;
}

.file-list .file-item .remove-merge {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
}

/* SPLIT & COMPRESS OPTIONS */
.split-options,
.compress-options {
    margin: 16px 0;
}

.split-options label,
.compress-options label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.split-options input,
.compress-options select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* BUTTON */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary i {
    margin-right: 8px;
}

/* STATUS */
.status {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.status.success {
    background: #dcfce7;
    color: #166534;
}

.status.error {
    background: #fee2e2;
    color: #991b1b;
}

.status.progress {
    background: #dbeafe;
    color: #1e40af;
}

.status.hidden {
    display: none;
}

/* DONASI PAGE */
.donasi-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.donasi-info {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.donasi-icon i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 12px;
}

.donasi-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
}

.donasi-small {
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
}

.donasi-qr {
    flex: 0 0 auto;
}

.qr-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    min-width: 200px;
}

.qr-card img {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
}

.qr-label {
    margin-top: 12px;
    font-weight: 500;
    color: #1e293b;
}

.qr-label i {
    margin-right: 6px;
    color: #2563eb;
}

.qr-card.empty-state {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
}

.qr-card.empty-state i {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.qr-card.empty-state p {
    font-weight: 500;
}

.qr-card.empty-state small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* FOOTER */
footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

footer .footer-credit {
    margin-top: 6px;
    font-size: 0.8rem;
}

footer a {
    color: #2563eb;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
    }
    nav {
        justify-content: center;
    }
    .toolkit-wrapper,
    .donasi-wrapper {
        padding: 20px 16px;
    }
    .tabs {
        gap: 4px;
    }
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .donasi-content {
        flex-direction: column;
    }
    .qr-card img {
        max-width: 180px;
    }
}

/* ==============================
   PRIVACY BADGE & NOTES
   ============================== */

.privacy-badge {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #166534;
}

.privacy-badge i {
    font-size: 1.6rem;
    color: #22c55e;
    flex-shrink: 0;
}

.privacy-badge span {
    line-height: 1.5;
}

.privacy-badge strong {
    color: #0f172a;
}

.privacy-note {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-note i {
    color: #2563eb;
    font-size: 0.9rem;
}

.process-info {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    border: 1px dashed #e2e8f0;
}

.process-info i {
    margin-right: 6px;
    color: #2563eb;
}

/* Responsif */
@media (max-width: 600px) {
    .privacy-badge {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .privacy-badge i {
        font-size: 1.4rem;
    }
    .privacy-note {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    .process-info {
        font-size: 0.7rem;
    }
}
/* ==============================
   VERSI MOBILE - RESPONSIVE
   ============================== */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .toolkit-wrapper,
    .donasi-wrapper {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .toolkit-wrapper h1,
    .donasi-wrapper h1 {
        font-size: 1.6rem;
    }

    .toolkit-wrapper .subtitle,
    .donasi-wrapper .subtitle {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    /* Tabs */
    .tabs {
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tab-btn i {
        margin-right: 4px;
    }

    .tab-content h2 {
        font-size: 1rem;
    }

    /* Privacy Badge */
    .privacy-badge {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.82rem;
        gap: 8px;
    }

    .privacy-badge i {
        font-size: 1.3rem;
    }

    .privacy-note {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Drop Zone */
    .drop-zone {
        padding: 28px 16px;
    }

    .drop-zone i {
        font-size: 2rem !important;
        margin-bottom: 8px;
    }

    .drop-zone p {
        font-size: 0.85rem;
    }

    /* File List */
    .file-list,
    .file-info {
        font-size: 0.82rem;
        padding: 10px 12px;
    }

    .file-list .file-item {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Options */
    .split-options input,
    .compress-options select {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .split-options label,
    .compress-options label {
        font-size: 0.82rem;
    }

    /* Button */
    .btn-primary {
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 8px;
    }

    .btn-primary i {
        margin-right: 6px;
    }

    /* Process Info */
    .process-info {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    /* Status */
    .status {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    /* Donasi */
    .donasi-content {
        flex-direction: column;
        gap: 24px;
    }

    .donasi-info {
        min-width: unset;
        width: 100%;
    }

    .donasi-icon i {
        font-size: 3rem;
    }

    .donasi-text p {
        font-size: 0.95rem;
    }

    .qr-card {
        padding: 16px;
        min-width: unset;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .qr-card img {
        max-width: 180px;
    }

    .qr-label {
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        font-size: 0.8rem;
        padding: 16px 0;
    }

    footer .footer-credit {
        font-size: 0.7rem;
    }
}

/* HP Kecil (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .toolkit-wrapper,
    .donasi-wrapper {
        padding: 14px 12px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .toolkit-wrapper h1,
    .donasi-wrapper h1 {
        font-size: 1.3rem;
    }

    .toolkit-wrapper .subtitle,
    .donasi-wrapper .subtitle {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }

    /* Header */
    header {
        padding: 10px 0;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .logo a i {
        font-size: 1.3rem;
    }

    nav a {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    nav a i {
        margin-right: 3px;
    }

    /* Tabs */
    .tab-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        border-bottom-width: 2px;
    }

    .tab-btn i {
        font-size: 0.7rem;
    }

    .tab-content h2 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    /* Privacy */
    .privacy-badge {
        padding: 10px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
        gap: 6px;
    }

    .privacy-badge i {
        font-size: 1.1rem;
    }

    .privacy-note {
        font-size: 0.68rem;
        padding: 5px 10px;
        border-radius: 6px;
    }

    .privacy-note i {
        font-size: 0.75rem;
    }

    /* Drop Zone */
    .drop-zone {
        padding: 20px 12px;
        border-radius: 8px;
        border-width: 2px;
    }

    .drop-zone i {
        font-size: 1.6rem !important;
        margin-bottom: 6px;
    }

    .drop-zone p {
        font-size: 0.75rem;
    }

    /* File List */
    .file-list,
    .file-info {
        font-size: 0.75rem;
        padding: 8px 10px;
        border-radius: 6px;
        margin: 10px 0;
    }

    .file-list .file-item {
        padding: 4px 0;
        font-size: 0.75rem;
    }

    .file-list .file-item .remove-merge {
        font-size: 0.9rem;
        padding: 2px 6px;
    }

    #merge-preview {
        font-size: 0.75rem;
    }

    /* Options */
    .split-options,
    .compress-options {
        margin: 10px 0;
    }

    .split-options label,
    .compress-options label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .split-options input,
    .compress-options select {
        font-size: 0.82rem;
        padding: 8px 10px;
        border-radius: 6px;
    }

    /* Button */
    .btn-primary {
        font-size: 0.82rem;
        padding: 10px 16px;
        border-radius: 8px;
        margin-top: 4px;
    }

    .btn-primary i {
        font-size: 0.8rem;
        margin-right: 4px;
    }

    /* Process Info */
    .process-info {
        font-size: 0.65rem;
        padding: 6px 10px;
        border-radius: 6px;
        margin-top: 8px;
    }

    /* Status */
    .status {
        font-size: 0.78rem;
        padding: 8px 12px;
        border-radius: 6px;
        margin-top: 12px;
    }

    /* Donasi */
    .donasi-icon i {
        font-size: 2.5rem;
    }

    .donasi-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .donasi-small {
        font-size: 0.75rem !important;
    }

    .qr-card {
        padding: 14px;
        border-radius: 12px;
        max-width: 220px;
    }

    .qr-card img {
        max-width: 150px;
    }

    .qr-label {
        font-size: 0.75rem;
        margin-top: 8px;
    }

    .qr-card.empty-state {
        min-height: 150px;
        padding: 20px;
    }

    .qr-card.empty-state i {
        font-size: 2.5rem;
    }

    .qr-card.empty-state p {
        font-size: 0.8rem;
    }

    .qr-card.empty-state small {
        font-size: 0.65rem;
    }

    /* Footer */
    footer {
        font-size: 0.7rem;
        padding: 12px 0;
    }

    footer .footer-credit {
        font-size: 0.6rem;
    }
}

/* HP Sangat Kecil (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .toolkit-wrapper,
    .donasi-wrapper {
        padding: 10px 8px;
        border-radius: 8px;
    }

    .toolkit-wrapper h1,
    .donasi-wrapper h1 {
        font-size: 1.1rem;
    }

    .toolkit-wrapper .subtitle,
    .donasi-wrapper .subtitle {
        font-size: 0.65rem;
        margin-bottom: 10px;
    }

    .tab-btn {
        padding: 4px 8px;
        font-size: 0.6rem;
    }

    .tab-btn i {
        font-size: 0.6rem;
    }

    .drop-zone {
        padding: 14px 8px;
    }

    .drop-zone i {
        font-size: 1.2rem !important;
    }

    .drop-zone p {
        font-size: 0.65rem;
    }

    .btn-primary {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .file-list,
    .file-info {
        font-size: 0.65rem;
        padding: 6px 8px;
    }

    .file-list .file-item {
        font-size: 0.65rem;
    }

    .privacy-badge {
        font-size: 0.65rem;
        padding: 8px 10px;
    }

    .privacy-badge i {
        font-size: 0.9rem;
    }

    .privacy-note {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .process-info {
        font-size: 0.55rem;
        padding: 4px 8px;
    }

    .status {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .qr-card {
        padding: 10px;
        max-width: 180px;
    }

    .qr-card img {
        max-width: 120px;
    }

    .qr-label {
        font-size: 0.65rem;
    }
}
/* Tambahan untuk header di mobile */
@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .logo a {
        justify-content: center;
        font-size: 1.2rem;
    }

    nav {
        justify-content: center;
        gap: 4px;
    }

    nav a {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    nav a i {
        margin-right: 4px;
    }
}

@media (max-width: 400px) {
    nav {
        gap: 2px;
    }

    nav a {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .logo a {
        font-size: 1rem;
    }

    .logo a i {
        font-size: 1.2rem;
    }
}