/* ===================================
   Takip Defterim - Premium Styles
   Modern, Clean, Professional
   =================================== */

/* Vue.js v-cloak - template literal'ları yüklenme sırasında gizle */
[v-cloak] {
    display: none !important;
}

[v-cloak] > * {
    display: none !important;
}

/* Vue yüklenmeden önce loading göster */
.vue-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ===================================
   CSS Variables & Root
   =================================== */
:root {
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 400ms;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
}

* {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tabular numbers for financial data */
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.font-mono {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes countUp {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn var(--transition-slow) ease-out; }
.animate-slide-up { animation: slideUp var(--transition-slow) ease-out; }
.animate-slide-down { animation: slideDown var(--transition-normal) ease-out; }
.animate-scale-in { animation: scaleIn var(--transition-normal) ease-out; }
.animate-pulse { animation: pulseSoft 2s ease-in-out infinite; }

/* Vue Transitions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* =================================== */
   Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* ===================================
   Card System - Unified
   =================================== */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal) ease;
}

.dark .card {
    background: #1e293b;
    border-color: #334155;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Stat Cards (Hero Section)
   =================================== */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    transition: all var(--transition-normal) ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ===================================
   Expense Cards
   =================================== */
.expense-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .expense-card {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    border-color: #475569;
}

.expense-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    border-color: #c7d2fe;
}

.dark .expense-card:hover {
    border-color: #6366f1;
}

/* Monthly variant */
.expense-card-monthly {
    background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
}

.dark .expense-card-monthly {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
}

.expense-card-monthly:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
    border-color: #a7f3d0;
}

/* Yearly variant */
.expense-card-yearly {
    background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
}

.dark .expense-card-yearly {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
}

.expense-card-yearly:hover {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
    border-color: #e9d5ff;
}

/* Custom category cards */
.expense-card-custom {
    border-style: dashed;
    border-color: #cbd5e1;
}

.dark .expense-card-custom {
    border-color: #475569;
}

/* ===================================
   Add Card Button
   =================================== */
.add-card {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-normal) ease;
    cursor: pointer;
}

.dark .add-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: #475569;
}

.add-card:hover {
    border-color: #6366f1;
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
    transform: translateY(-4px) scale(1.01);
}

.dark .add-card:hover {
    background: linear-gradient(145deg, #312e81 0%, #1e293b 100%);
}

.add-card-monthly:hover {
    border-color: #10b981;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
}

.add-card-yearly:hover {
    border-color: #a855f7;
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%);
}

/* ===================================
   Delete Button
   =================================== */
.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast) ease;
    cursor: pointer;
    border: none;
}

.expense-card:hover .delete-btn,
.group:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) !important;
}

/* ===================================
   Input Fields
   =================================== */
.input-field {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    transition: all var(--transition-fast) ease;
}

.dark .input-field {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-field::placeholder {
    color: #94a3b8;
}

/* Amount input (compact) */
.input-amount {
    width: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 32px 10px 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #0f172a;
    transition: all var(--transition-fast) ease;
}

.dark .input-amount {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

.input-amount:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-amount::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-currency {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-weight: 600;
    font-size: 13px;
    pointer-events: none;
}

/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.dark .btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.dark .btn-secondary:hover {
    background: #475569;
}

/* ===================================
   Budget Progress Bar
   =================================== */
.budget-progress-green {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.budget-progress-yellow {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.budget-progress-red {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ===================================
   Select Dropdown
   =================================== */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

select option {
    background: white;
    color: #0f172a;
    padding: 8px;
}

.dark select option {
    background: #1e293b;
    color: white;
}

/* ===================================
   Chart Container
   =================================== */
#trendChart,
#categoryChart {
    max-height: 256px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .card {
        padding: 16px;
        border-radius: var(--radius-lg);
    }
    
    .expense-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 12px;
    }
}

/* ===================================
   Focus States (Accessibility)
   =================================== */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ===================================
   Selection
   =================================== */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: inherit;
}

/* ===================================
   Smooth Scrolling
   =================================== */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Loading States
   =================================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===================================
   Subscription Cards
   =================================== */
.subscription-card {
    background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid #fecdd3;
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .subscription-card {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    border-color: #be123c;
}

.subscription-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.15);
    border-color: #fb7185;
}

.subscription-card-inactive {
    opacity: 0.5;
    filter: grayscale(0.3);
}

/* Trial badge animation */
.trial-badge {
    animation: pulseSoft 2s ease-in-out infinite;
}

/* Subscription status indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-trial {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: pulseSoft 1.5s ease-in-out infinite;
}

.status-renewing {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.status-paused {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

/* ===================================
   Tab Navigation
   =================================== */
.tab-active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.dark .tab-active {
    background: #334155;
}

/* ===================================
   Subscription Category Headers
   =================================== */
.subscription-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(244, 63, 94, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.dark .subscription-category-header {
    background: rgba(244, 63, 94, 0.15);
}

/* ===================================
   Glassmorphism Modal
   =================================== */
.modal-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark .modal-content {
    background: #1e293b;
    border: 1px solid #334155;
}

/* ===================================
   Template Button Grid
   =================================== */
.template-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.template-btn:hover {
    transform: translateY(-1px);
}

.template-btn-selected {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
    border-color: transparent;
}

/* ===================================
   Insights Cards
   =================================== */
.insight-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.insight-warning {
    background: #fef3c7;
    color: #92400e;
}

.dark .insight-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.insight-info {
    background: #dbeafe;
    color: #1e40af;
}

.dark .insight-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.insight-alert {
    background: #fee2e2;
    color: #991b1b;
}

.dark .insight-alert {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ===================================
   Cost Breakdown Grid
   =================================== */
.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
    border-radius: var(--radius-lg);
}

.dark .cost-breakdown {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.cost-breakdown-item {
    text-align: center;
}

.cost-breakdown-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .cost-breakdown-label {
    color: #94a3b8;
}

.cost-breakdown-value {
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #0f172a;
}

.dark .cost-breakdown-value {
    color: white;
}

/* ===================================
   Toggle Switch
   =================================== */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.dark .toggle-switch {
    background: #475569;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast) ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* Toggle Switch with Input */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #e2e8f0;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.dark .toggle-slider {
    background: #475569;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ===================================
   Empty State
   =================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

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

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.dark .empty-state-title {
    color: white;
}

.empty-state-text {
    color: #64748b;
    margin-bottom: 24px;
}

.dark .empty-state-text {
    color: #94a3b8;
}

/* ===================================
   Goals & Insights Styles
   =================================== */

/* Goal Progress Animation */
@keyframes goalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.goal-card:hover {
    transform: translateY(-2px);
}

/* Insight Card Hover */
.insight-card {
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateX(4px);
}

/* Badge Animation */
@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.achievement-badge {
    animation: badgeBounce 2s ease-in-out infinite;
}

.achievement-badge:hover {
    animation: none;
    transform: scale(1.1);
}

/* Streak Fire Animation */
@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    50% { transform: scale(1) rotate(-1deg); }
    75% { transform: scale(1.05) rotate(2deg); }
}

.streak-fire {
    display: inline-block;
    animation: fireFlicker 0.5s ease-in-out infinite;
}

/* Confetti Animation for Goal Completion */
@keyframes confetti-fall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #6366f1, #ec4899, #10b981, #f59e0b);
    animation: confetti-fall 3s ease-out forwards;
    z-index: 9999;
    pointer-events: none;
}

/* Insight Gradient Borders */
.insight-blue { background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1)); }
.insight-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1)); }
.insight-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.1)); }
.insight-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1)); }
.insight-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.1)); }

/* Simulation Card Glow */
.simulation-card {
    position: relative;
    overflow: hidden;
}

.simulation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Progress Bar Glow Effect */
.progress-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Motivational Message Styles */
.motivation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Goal Completed State */
.goal-completed {
    position: relative;
    overflow: hidden;
}

.goal-completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Optimization Suggestion Card */
.optimization-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.optimization-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* ===================================
   AI Chat Styles
   =================================== */

/* AI Floating Button Pulse */
@keyframes ai-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(168, 85, 247, 0); }
}

.ai-button {
    animation: ai-pulse 2s infinite;
}

/* AI Chat Panel Animation */
@keyframes chat-slide-up {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.ai-chat-panel {
    animation: chat-slide-up 0.3s ease-out;
}

/* AI Message Animation */
@keyframes message-appear {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.ai-message {
    animation: message-appear 0.3s ease-out;
}

/* AI Typing Dots */
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.ai-typing-dot {
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.ai-typing-dot:nth-child(1) { animation-delay: 0s; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* AI Chat Scrollbar */
#ai-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

#ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* AI Gradient Text */
.ai-gradient-text {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quick Question Hover Effect */
.quick-question {
    position: relative;
    overflow: hidden;
}

.quick-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.quick-question:hover::before {
    left: 100%;
}

/* Mobile Responsive AI Chat */
@media (max-width: 640px) {
    .ai-chat-panel {
        width: calc(100vw - 1rem) !important;
        height: calc(100vh - 2rem) !important;
        bottom: 0.5rem !important;
        right: 0.5rem !important;
        border-radius: 1.5rem !important;
    }
}

/* ===================================
   Finance Score & Personality Styles
   =================================== */

/* Score Card Shimmer */
@keyframes score-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.finance-score-card {
    position: relative;
    overflow: hidden;
}

.finance-score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: score-shimmer 3s infinite;
}

/* Score Number Animation */
@keyframes score-pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.score-number {
    animation: score-pop 0.6s ease-out;
}

/* What-If Card Hover */
.whatif-card {
    transition: all 0.3s ease;
}

.whatif-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px rgba(245, 158, 11, 0.3);
}

/* Sleeping Subscription Pulse */
@keyframes sleep-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.sleeping-sub {
    animation: sleep-pulse 2s ease-in-out infinite;
}

/* Usage Button Ripple */
.usage-btn {
    position: relative;
    overflow: hidden;
}

.usage-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.usage-btn:active::after {
    width: 200px;
    height: 200px;
}

/* Personality Card Gradient Border */
.personality-card {
    position: relative;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                linear-gradient(135deg, #6366f1, #ec4899) border-box;
    border: 2px solid transparent;
    border-radius: 16px;
}

/* Goal vs Spending Progress Glow */
.goal-progress-glow {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* PDF Export Button Shine */
@keyframes btn-shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.export-btn {
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shine 3s infinite;
}

/* Share Card Social Gradient */
.share-card {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(16, 185, 129, 0.1) 100%);
}

/* Mood Emoji Bounce */
@keyframes mood-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.mood-emoji:hover {
    animation: mood-bounce 0.3s ease;
}

/* ===================================
   Confetti Animation
   =================================== */

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

/* Timeline Bar Glow */
.timeline-bar:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* Challenge Card Shine */
@keyframes challenge-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.challenge-completed {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(16, 185, 129, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: challenge-shine 2s ease infinite;
}

/* Behavior Alert Pulse */
@keyframes alert-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.behavior-alert:hover {
    animation: alert-pulse 0.5s ease;
}

/* Silent Money Flow Animation */
@keyframes money-flow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.silent-money-icon {
    animation: money-flow 1.5s ease-in-out infinite;
}

/* Story Card Gradient Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.story-card {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* Finance Report Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}

/* ===================================
   Mobile Responsive Enhancements
   =================================== */

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
    .main-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    /* Smaller text for mobile */
    .text-responsive {
        font-size: 0.875rem;
    }
    
    /* Smaller cards padding */
    .card {
        padding: 1rem;
    }
    
    /* Full width modals on mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem;
        max-height: calc(100vh - 2rem);
    }
    
    /* Smaller info buttons on mobile */
    .info-btn {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.625rem;
    }
    
    /* Touch-friendly buttons */
    button, 
    .btn,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smaller info button exceptions */
    .info-btn-small {
        min-height: 20px;
        min-width: 20px;
    }
    
    /* Adjust grid layouts */
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* Hide text on small screens for certain buttons */
    .mobile-icon-only span:not(.icon) {
        display: none;
    }
    
    /* Smaller challenge cards */
    .challenge-card {
        padding: 0.75rem;
    }
    
    /* Compact header */
    header {
        padding: 0.75rem 1rem;
    }
    
    /* Bottom safe area for fixed elements */
    .fixed-bottom {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smooth touch scrolling */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   NEW FEATURES v4.0 STYLES
   =================================== */

/* Quick Add FAB Button */
.quick-add-fab {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    border: none;
    cursor: pointer;
}

.quick-add-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.quick-add-fab:active {
    transform: scale(0.95);
}

/* Quick Add Modal */
.quick-add-modal {
    position: fixed;
    bottom: 8rem;
    right: 1.5rem;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 45;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.dark .quick-add-modal {
    background: #1e293b;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Spending Alert Card */
.spending-alert {
    position: fixed;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
    z-index: 50;
    animation: bounceIn 0.5s ease-out;
}

.dark .spending-alert {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #f59e0b;
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Badge Showcase */
.badge-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .badge-card {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    border-color: #475569;
}

.badge-card.earned {
    border-color: #10b981;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
}

.dark .badge-card.earned {
    background: linear-gradient(145deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
}

.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.badge-card:hover:not(.locked) {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.badge-card.locked .badge-icon {
    filter: grayscale(1) opacity(0.5);
}

/* Life Comparison Card */
.life-comparison-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.life-comparison-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.comparison-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.comparison-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

/* Silent Killers Card */
.silent-killer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
    border-left: 4px solid #ef4444;
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.silent-killer-item:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, transparent 100%);
    transform: translateX(4px);
}

.silent-killer-item.severity-high {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, transparent 100%);
}

.silent-killer-item.severity-medium {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, transparent 100%);
}

.silent-killer-item.severity-low {
    border-left-color: #6366f1;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
}

/* Monthly Challenge Banner */
.monthly-challenge-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.monthly-challenge-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Export Modal */
.export-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .export-option {
    background: #1e293b;
    border-color: #334155;
}

.export-option:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.dark .export-option:hover {
    background: #312e81;
}

.export-option.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.dark .export-option.active {
    background: linear-gradient(135deg, #312e81 0%, #3730a3 100%);
}

/* Forecast Card */
.forecast-card {
    position: relative;
    overflow: hidden;
}

.forecast-card.excellent {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.forecast-card.good {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.forecast-card.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.forecast-card.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.dark .forecast-card.excellent { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
.dark .forecast-card.good { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
.dark .forecast-card.warning { background: linear-gradient(135deg, #78350f 0%, #92400e 100%); }
.dark .forecast-card.danger { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%); }

/* Subscription Alternative Tag */
.alternative-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #1e40af;
    margin-top: 0.5rem;
}

.dark .alternative-tag {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #93c5fd;
}

/* Reminder Settings */
.reminder-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.dark .reminder-setting {
    background: #1e293b;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: #10b981;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    left: 26px;
}

/* Notification Badge Pulse */
@keyframes notification-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.notification-badge {
    animation: notification-pulse 2s ease-in-out infinite;
}

/* Profile Page */
.profile-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 0 0 30px 30px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Shimmer Effect for Loading States */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Glow Effect for Important Items */
.glow-emerald {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.glow-amber {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.glow-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ===================================
   Confetti Animation
   =================================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===================================
   Onboarding Animations
   =================================== */
.onboarding-bounce {
    animation: onboarding-bounce 2s ease-in-out infinite;
}

@keyframes onboarding-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   Night Prompt Glow
   =================================== */
.night-glow {
    animation: night-glow 2s ease-in-out infinite alternate;
}

@keyframes night-glow {
    from { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    to { box-shadow: 0 0 40px rgba(147, 51, 234, 0.5); }
}

/* ===================================
   Streak Fire Animation
   =================================== */
.streak-fire {
    animation: streak-fire 0.5s ease-in-out infinite alternate;
}

@keyframes streak-fire {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* ===================================
   Tip Slide Animation
   =================================== */
.tip-slide {
    animation: tip-slide 0.4s ease-out;
}

@keyframes tip-slide {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Responsive adjustments for new features */
@media (max-width: 640px) {
    .quick-add-fab {
        bottom: 4.5rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .quick-add-modal {
        bottom: 7rem;
        right: 1rem;
        width: calc(100vw - 2rem);
    }
    
    .life-comparison-card {
        padding: 1rem;
    }
    
    .monthly-challenge-banner {
        padding: 1rem;
    }
    
    .badge-icon {
        font-size: 2rem;
    }
}
