* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #FFFFFF;
    line-height: 1.4;
    overflow-x: hidden;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #000000;
    min-height: 100vh;
    position: relative;
}

.dashboard-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 8px 20px;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tabs {
    display: flex;
    gap: 24px;
    padding: 0 20px 16px 20px;
    border-bottom: 1px solid #2C2C2C;
}

.tab {
    font-size: 16px;
    font-weight: 600;
    color: #8E8E93;
    padding-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab.active {
    color: #FFFFFF;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
}

/* ===== NEUMORPHISM + GLASSMORPHISM BUTTON ===== */
.neumorph-glass {
    background: rgba(20, 20, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.5),
        -4px -4px 12px rgba(255, 255, 255, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.create-goal-btn {
    margin: 16px 20px;
    border-radius: 34px;
    padding: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    width: calc(100% - 40px);
    z-index: 10;
    background: rgba(10, 132, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 132, 255, 0.25);
    box-shadow: 
        6px 6px 14px rgba(0, 0, 0, 0.6),
        -3px -3px 8px rgba(255, 255, 255, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.create-goal-btn:active {
    transform: scale(0.98);
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.8),
        inset 2px 2px 5px rgba(0,0,0,0.5),
        inset -1px -1px 3px rgba(255,255,255,0.02);
}

/* FAB dengan neumorphism-glass */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 100;
    background: rgba(10, 132, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 132, 255, 0.3);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.02),
        inset 0 1px 2px rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.fab:active {
    transform: scale(0.92);
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9),
        inset 2px 2px 5px rgba(0,0,0,0.4);
}

/* Card & elemen lainnya (tetap sama) */
.goal-card {
    background-color: #121212;
    border-radius: 28px;
    margin: 16px 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s;
    animation: fadeSlideUp 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.goal-card:active {
    transform: scale(0.98);
}

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

.goal-preview-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #1E1E1E;
}

.goal-card-content {
    padding: 20px;
}

.goal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.target-amount {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.daily-rate {
    font-size: 16px;
    color: #8E8E93;
    background: #1C1C1E;
    padding: 4px 12px;
    border-radius: 20px;
}

.progress-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.circular-progress {
    position: relative;
    width: 90px;
    height: 90px;
}

.progress-fill {
    stroke: #34C759;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
}

.remaining-days {
    background-color: #1C1C1E;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    color: #FF9F0A;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0A0A0A 0%, #000000 100%);
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.back-button:active {
    transform: scale(0.96);
}

.back-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.back-text {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.detail-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.detail-action-btn:active {
    transform: scale(0.96);
}

.detail-action-btn svg {
    width: 18px;
    height: 18px;
}

.edit-btn {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: #0A84FF;
}

.edit-btn svg {
    stroke: #0A84FF;
}

.delete-btn {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.delete-btn svg {
    stroke: #FF3B30;
}

.goal-image-large {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #1E1E1E, #2C2C2E);
}

.detail-info {
    padding: 0 20px;
}

.detail-name {
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0 4px;
}

.detail-target {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0;
}

.detail-daily {
    font-size: 18px;
    color: #8E8E93;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    background: #1C1C1E;
    padding: 14px 18px;
    border-radius: 24px;
    margin: 16px 0;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.reminder-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1C1C1E;
    padding: 14px 18px;
    border-radius: 24px;
    margin: 16px 0;
}

.toggle-switch {
    width: 52px;
    height: 30px;
    background-color: #3A3A3C;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-switch.active {
    background-color: #34C759;
}

.toggle-switch .toggle-knob {
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.2s;
}

.toggle-switch.active .toggle-knob {
    left: 24px;
}

.metrics-boxes {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.metric-card {
    flex: 1;
    background: linear-gradient(135deg, #1C1C1E, #161618);
    border-radius: 24px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.metric-label {
    font-size: 14px;
    color: #8E8E93;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 20px;
    font-weight: 800;
}

.green-text {
    color: #34C759;
}

.red-text {
    color: #FF3B30;
}

.transactions-title {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 20px 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-list {
    margin: 0 20px 90px 20px;
}

.transaction-item {
    background-color: #1C1C1E;
    padding: 14px 18px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-amount.plus {
    color: #34C759;
    font-weight: 700;
}

.transaction-amount.minus {
    color: #FF3B30;
    font-weight: 700;
}

.transaction-note {
    font-size: 12px;
    color: #8E8E93;
    margin-top: 4px;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8E8E93;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #121212;
    border-radius: 32px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    color: white;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0 16px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    transition: border 0.2s;
}

.modal-content input:focus, .modal-content textarea:focus {
    outline: none;
    border-color: #0A84FF;
}

.image-upload-area {
    margin: 16px 0;
}

.image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    margin: 8px 0;
    background: #1C1C1E;
}

.toggle-container {
    display: flex;
    background: #1C1C1E;
    border-radius: 40px;
    padding: 4px;
    margin-bottom: 24px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 16px;
    border-radius: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #8E8E93;
}

.toggle-option.active {
    background: linear-gradient(135deg, #0A84FF, #0066CC);
    color: white;
}

.input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.currency-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 24px;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.currency-input:focus {
    outline: none;
    border-color: #0A84FF;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.quick-btn {
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 40px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0A84FF;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:active {
    background: #0A84FF;
    color: white;
    transform: scale(0.96);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
    padding: 14px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #0A84FF, #0066CC);
    color: white;
}

.btn-secondary {
    background: #2C2C2E;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #FF3B30, #CC2F26);
    color: white;
}

.hidden-page {
    display: none;
}

.achievement-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    display: inline-block;
    margin-left: 8px;
}
