:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --success-light: #34d399;
    --info-color: #0ea5e9;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e1b4b;
    --light-color: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ========================================
   SPLASH SCREEN STYLES
   ======================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 500px;
}

.splash-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    }
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.splash-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.splash-loading {
    margin-bottom: 2rem;
}

.splash-privacy {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: flex-start;
    text-align: left;
    max-width: 400px;
}

.splash-privacy i {
    font-size: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--gradient-1);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 2rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 5rem; /* Space for bottom nav */
    }

    .section {
        padding-bottom: 2.5rem; /* Additional gap for each page */
    }
}

.navbar {
    background: rgba(30, 27, 75, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-radius: 12px;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem;
    border: 1px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    border-color: var(--primary-light);
}

.section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.section.active {
    display: block;
}

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

.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

.stat-card {
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-card.received {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.stat-card.given {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
    color: white;
}

.stat-card:nth-child(3),
.stat-card:nth-child(4) {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f472b6 100%);
    color: white;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-info h3 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-info p {
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
    font-size: 0.95rem;
}

.friend-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.friend-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.friend-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.friend-notes {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
    background: rgba(99, 102, 241, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.treat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.treat-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.treat-card.received {
    border-left-color: var(--primary-color);
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
}

.treat-card.given {
    border-left-color: var(--success-color);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
}

.treat-card h5 {
    font-weight: 600;
    color: var(--dark-color);
}

.treat-type-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.treat-card-new {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.treat-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.treat-card-new.received::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.treat-card-new.given::before {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
}

.treat-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.treat-card-header {
    padding: 1rem 1.25rem 0.5rem;
}

.treat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.treat-card-new.received .treat-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.treat-card-new.given .treat-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
}

.treat-card-new .treat-type-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.treat-card-body {
    padding: 0.5rem 1.25rem 1rem;
}

.treat-description {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.treat-friend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
}

.treat-card-new.given .treat-friend {
    background: rgba(16, 185, 129, 0.05);
}

.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.treat-card-new.given .friend-avatar {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.friend-name {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.treat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.treat-date,
.treat-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
}

.treat-date i,
.treat-price i {
    font-size: 0.9rem;
}

.treat-price {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 600;
}

.treat-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-action.edit {
    background: #f1f5f9;
    color: var(--primary-color);
}

.btn-action.edit:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-action.delete {
    background: #f1f5f9;
    color: var(--danger-color);
}

.btn-action.delete:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

.treat-type-badge.received {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.treat-type-badge.given {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(99, 102, 241, 0.05);
    padding-left: 0.5rem;
    border-radius: 10px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.activity-icon.received {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.activity-icon.given {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    color: white;
}

.top-friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.top-friend-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
}

.top-friend-item:last-child {
    border-bottom: none;
}

.friend-stats {
    display: flex;
    gap: 1.5rem;
}

.friend-stat {
    text-align: center;
}

.friend-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.friend-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #38bdf8 100%);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, var(--info-color) 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    color: #1e293b;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-color) 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #f87171 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, var(--danger-color) 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-outline-primary,
.btn-outline-danger,
.btn-outline-success {
    border: 2px solid;
    background: transparent;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: white;
}

.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.developer-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.developer-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.app-info h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.social-icon.github {
    background: #333;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

#currency-symbol {
    font-size: 1.5rem;
    color: #cdcdcd;
    font-weight: 700;
}

h2 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
}

h2 i {
    margin-right: 0.5rem;
}

h5.card-title {
    color: white;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

.d-grid {
    gap: 1rem !important;
}

.text-muted {
    color: #64748b !important;
}

@media (max-width: 991px) {
    .navbar-toggler,
    .navbar-collapse {
        display: none !important;
    }

    .stat-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
    
    .stat-info p {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
        margin: 0;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        text-align: center;
        flex-direction: column;
        min-height: 70px;
    }
    
    .nav-link i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    }
    
    .navbar-collapse {
        background: rgba(30, 27, 75, 0.98);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .treat-card-new {
        margin-bottom: 1.5rem;
    }
    
    .treat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .treat-description {
        font-size: 1rem;
    }
    
    .treat-card-header {
        padding: 1rem 1.25rem 0.5rem;
    }
    
    .treat-card-body {
        padding: 0.5rem 1.25rem 1rem;
    }
    
    .treat-card-actions {
        padding: 0 1.25rem 1rem;
    }
}

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1030;
    padding: 0.5rem;
}

.bottom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav li {
    flex: 1;
    text-align: center;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-size: 0.75rem;
    min-height: 60px;
}

.bottom-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bottom-nav-link.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.bottom-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.achievement-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.achievement-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.achievement-icon.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #38bdf8 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.achievement-icon.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #f87171 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.achievement-icon.bg-pink {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f472b6 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.achievement-icon.bg-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.achievement-icon.bg-purple {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a78bfa 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.achievement-info h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.achievement-info p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Budget Cards */
.budget-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.budget-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.budget-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.budget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.budget-value.positive {
    color: var(--success-color);
}

.budget-value.negative {
    color: var(--danger-color);
}

/* Friend Card Actions - Vertical Stack on Right */
.friend-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.friend-card-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.friend-card-actions .btn i {
    font-size: 0.9rem;
}

/* Achievement Cards - Earned and Locked states */
.achievement-card.earned {
    border: 2px solid var(--success-color);
}

.achievement-card.locked {
    opacity: 0.7;
    background: #f8f9fa;
}

.achievement-card.locked .achievement-icon {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%) !important;
    box-shadow: none;
}

.achievement-card.locked h5 {
    color: #6c757d !important;
}

/* Badge Progress */
.badge-progress h5 {
    color: var(--dark-color);
    font-weight: 600;
}

.badge-progress .progress {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

/* Toast Notifications for Badges */
.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 10px;
}

.toast-header {
    padding: 0.75rem 1rem;
    border-bottom: none;
    font-weight: 600;
}

.toast-body {
    padding: 1rem;
}

.toast-body .achievement-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.toast-body .achievement-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%) !important;
}

.toast-body .achievement-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%) !important;
}

.toast-body .achievement-icon.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #38bdf8 100%) !important;
}

.toast-body .achievement-icon.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #f87171 100%) !important;
}

.toast-body .achievement-icon.bg-pink {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f472b6 100%) !important;
}

.toast-body .achievement-icon.bg-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
}

.toast-body .achievement-icon.bg-purple {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a78bfa 100%) !important;
}