:root {
    --primary: #2E86AB;
    --primary-dark: #1A5A7A;
    --secondary: #A23B72;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #919395;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background-color: #2a2f3d;
    color: var(--dark);
    line-height: 1.6;
    animation: fadeIn 1s ease-in-out;
    overflow-x: hidden;
    position: relative;
    
   
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(22, 10, 131, 0.568) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(8, 248, 216, 0.26) 1px, transparent 1px);
    background-size: 150px 150px;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 5% 99%, rgb(10, 190, 240) 20%, transparent 30%),
        radial-gradient(circle at 95% 20%, rgba(236, 236, 232, 0.322) 20%, transparent 40%),
        radial-gradient(circle at 95% 80%, rgba(202, 5, 202, 0.24) 20%, transparent 40%);
    animation: floatBackground 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes floatBackground {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(10px, -5px) scale(1.02);
        opacity: 0.5;
    }
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 121, 243, 0.2);
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }


.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00c6ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}


.btn-primary, .btn-secondary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 121, 243, 0.3);
}


.progress-fill {
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Lightweight floating elements - reduced quantity */
/*.floating-element {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(214, 6, 6, 0.3);
    border-radius: 50%;
    animation: floatElement 15s linear infinite;
    z-index: -1;
    pointer-events: none;
} */

.floating-element:nth-child(1) { 
    left: 10%; 
    animation-delay: 0s;
    animation-duration: 20s;
}
.floating-element:nth-child(2) { 
    left: 30%; 
    animation-delay: 5s;
    animation-duration: 25s;
}
.floating-element:nth-child(3) { 
    left: 70%; 
    animation-delay: 10s;
    animation-duration: 18s;
}

@keyframes floatElement {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}


.glow-on-hover {
    transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


@media (max-width: 768px) {
    body::before {
        animation-duration: 40s;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
    
 
    body {
        background-size: 200px 200px;
    }
}


.body-pattern-alt {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 3px, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 3px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.12) 2px, transparent 2px);
    background-size: 120px 120px;
}


.body-geometric {
    background-image: 
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(60deg, rgba(255, 255, 255, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.08)),
        linear-gradient(60deg, rgba(255, 255, 255, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.08));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}


.body-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
}


.app-container {
    position: relative;
    z-index: 1;
}



.body.pattern-only {
    background-color: #0d1c2c;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    background-color: rgb(245, 245, 245);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(46, 134, 171, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector select {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    background-color: white;
}


.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: rgba(46, 134, 171, 0.1);
}


.section {
    display: none;
}

.section.active {
    display: block;
}

.page {
    display: none;
    padding: 2rem;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray);
}


.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.25rem;
}


.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.auth-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    margin: 0;
}

#forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

#forgot-password:hover {
    text-decoration: underline;
}


.otp-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.otp-digit {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.2);
}

.resend-otp {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.resend-otp a {
    color: var(--primary);
    text-decoration: none;
}

.resend-otp a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.overview-card .overview-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overview-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.overview-icon.income {
    background-color: var(--success);
}

.overview-icon.expenses {
    background-color: var(--danger);
}

.overview-icon.savings {
    background-color: var(--primary);
}

.overview-details .label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

.overview-details .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.chart-container {
    height: 250px;
    position: relative;
}


.goals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.goal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.goal-details {
    flex: 1;
}

.goal-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.goal-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--success);
    border-radius: 4px;
}


.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--gray);
}


.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray);
}

.badge-icon.earned {
    background-color: var(--warning);
    color: white;
}

.badge-name {
    font-size: 0.8rem;
    text-align: center;
}


.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    padding: 1rem;
    background-color: rgba(46, 134, 171, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}


.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.income-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.income-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.category-item:hover {
    background-color: #dbeafe;
    transform: translateY(-2px);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.category-amount {
    font-size: 0.8rem;
    color: var(--gray);
}

.expense-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
}

.expense-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expense-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.expense-details .expense-description {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.expense-details .expense-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.expense-amount {
    font-weight: 700;
    color: var(--danger);
}


.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.icon-selector {
    display: flex;
    gap: 0.5rem;
}

.icon-selector input[type="radio"] {
    display: none;
}

.icon-selector label {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-selector input[type="radio"]:checked + label {
    background-color: var(--primary);
    color: white;
}

.goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.goal-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.goal-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.goal-card-details {
    flex: 1;
}

.goal-card-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.goal-card-target {
    font-size: 0.9rem;
    color: var(--gray);
}

.goal-card-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.goal-card-actions {
    display: flex;
    gap: 0.5rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    padding: 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success);
}


.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.user-avatar {
    text-align: center;
    margin-bottom: 1rem;
}

.user-avatar i {
    font-size: 5rem;
    color: var(--primary);
}

.user-details {
    margin-bottom: 1.5rem;
}

.user-details p {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}


.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.debt-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.debt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.debt-info {
    flex: 1;
}

.debt-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.debt-details {
    font-size: 0.9rem;
    color: var(--gray);
}

.debt-amount {
    font-weight: 700;
    color: var(--danger);
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.close:hover {
    color: var(--dark);
}


.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background-color: var(--dark);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background-color: var(--success);
}

.toast.error {
    background-color: var(--danger);
}

.toast.warning {
    background-color: var(--warning);
}


.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .page {
        padding: 1rem;
    }
    
    .dashboard-grid, .budget-grid, .goals-grid, .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}


.otp-timer {
    text-align: center;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 600;
    color: #666;
}

.otp-timer.expiring {
    color: #f44336;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


.otp-digit {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.2);
}

.otp-digit.filled {
    border-color: var(--success);
    background-color: rgba(76, 175, 80, 0.1);
}

/* Resend OTP Link */
.resend-otp {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.resend-otp a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.resend-otp a:hover {
    text-decoration: underline;
}

.resend-otp a:disabled {
    color: var(--gray);
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.income-display, .income-form {
    transition: all 0.3s ease;
}

.income-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.chatbot-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chatbot-title i {
    font-size: 1.2rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--primary);
    color: white;
}

.user-message .message-avatar {
    background: var(--secondary);
    color: white;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    line-height: 1.4;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px 18px 18px 5px;
}

.user-message .message-content {
    background: var(--primary);
    color: white;
    border-radius: 18px 18px 5px 18px;
}

.message-content p {
    margin: 0 0 8px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.quick-questions {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-question {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.quick-question:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
    border-radius: 0 0 15px 15px;
}

#chatbot-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
}

#chatbot-input:focus {
    border-color: var(--primary);
}

#chatbot-send {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-send:hover {
    background: var(--primary-dark);
}


.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(46, 134, 171, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.6);
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Informational Pages */
.info-links {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
}

.info-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.info-link:hover {
    color: var(--primary);
}

.large-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.modal-content h3 {
    color: var(--primary-dark);
    margin: 25px 0 15px 0;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-content ul, .modal-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.modal-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
}


@media (max-width: 768px) {
    .chatbot-widget {
        width: calc(100vw - 40px);
        height: 70vh;
        right: 20px;
        bottom: 80px;
    }
    
    .info-links {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .quick-questions {
        flex-direction: column;
    }
    
    .quick-question {
        flex: none;
    }
}


.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chatbot-controls {
    display: flex;
    gap: 5px;
}

.chatbot-control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
    font-size: 0.8rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}


.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10;
}

.resize-handle-n {
    top: -3px;
    left: 10px;
    right: 10px;
    height: 6px;
    cursor: n-resize;
}

.resize-handle-e {
    top: 10px;
    right: -3px;
    bottom: 10px;
    width: 6px;
    cursor: e-resize;
}

.resize-handle-s {
    bottom: -3px;
    left: 10px;
    right: 10px;
    height: 6px;
    cursor: s-resize;
}

.resize-handle-w {
    top: 10px;
    left: -3px;
    bottom: 10px;
    width: 6px;
    cursor: w-resize;
}

.resize-handle-ne {
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

.resize-handle-nw {
    top: -3px;
    left: -3px;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

.resize-handle-se {
    bottom: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    cursor: se-resize;
}

.resize-handle-sw {
    bottom: -3px;
    left: -3px;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}

.chatbot-widget.minimized {
    height: 60px !important;
    width: 300px !important;
}

.chatbot-widget.minimized .chatbot-messages,
.chatbot-widget.minimized .quick-questions,
.chatbot-widget.minimized .chatbot-input {
    display: none;
}

.chatbot-widget.compact {
    width: 350px !important;
    height: 400px !important;
}

.chatbot-widget.medium {
    width: 450px !important;
    height: 500px !important;
}

.chatbot-widget.large {
    width: 550px !important;
    height: 600px !important;
}

.chatbot-widget.fullscreen {
    width: 90vw !important;
    height: 90vh !important;
    right: 5vw !important;
    bottom: 5vh !important;
    border-radius: 10px;
}


.chatbot-widget.resizing {
    pointer-events: none;
    user-select: none;
}

.chatbot-widget.resizing * {
    pointer-events: none;
}


.chatbot-size-indicator {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-widget.resizing .chatbot-size-indicator {
    opacity: 1;
}

@media (max-width: 768px) {
    .chatbot-widget {
        min-width: 300px !important;
        min-height: 400px !important;
        max-width: 95vw !important;
        max-height: 80vh !important;
    }
    
    .chatbot-widget.fullscreen {
        width: 95vw !important;
        height: 85vh !important;
        right: 2.5vw !important;
        bottom: 2.5vh !important;
    }
}


.chatbot-widget {
    transition: width 0.2s ease, height 0.2s ease, transform 0.3s ease;
}

.chatbot-widget:not(.resizing) {
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}


.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    font-size: 0.9rem;
}

.user-menu-btn:hover {
    background: #e9ecef;
    border-color: var(--primary);
}

.user-menu-btn i:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

.user-menu-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-menu-btn i:last-child {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.user-menu.active .user-menu-dropdown,
.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: var(--light);
    color: var(--primary);
}

.menu-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.menu-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 5px 0;
}

.menu-item-logout {
    color: var(--danger);
    border-top: 1px solid var(--light-gray);
    margin-top: 5px;
}

.family-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.family-not-setup {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.family-info.hidden {
    display: none;
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.family-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.family-members {
    margin-bottom: 20px;
}

.family-member {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.member-email {
    color: var(--gray);
    font-size: 0.8rem;
}

.member-role {
    background: var(--light-gray);
    color: var(--gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
}

.member-actions {
    display: flex;
    gap: 8px;
}

.member-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.member-action-btn.edit {
    color: var(--primary);
}

.member-action-btn.edit:hover {
    background: var(--primary);
    color: white;
}

.member-action-btn.remove {
    color: var(--danger);
}

.member-action-btn.remove:hover {
    background: var(--danger);
    color: white;
}

.family-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--gray);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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


.large-modal {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.8rem;
}

.modal-content h3 {
    color: var(--primary-dark);
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.modal-content h4 {
    color: var(--dark);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark);
}

.modal-content ul, .modal-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.modal-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--dark);
}

.modal-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid var(--primary);
}

.contact-info h3 {
    margin-top: 0;
    color: var(--primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-item i {
    width: 20px;
    margin-right: 12px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-item span {
    color: var(--gray);
    font-size: 0.9rem;
}


.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.policy-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.policy-section h4 {
    color: var(--primary);
    margin-top: 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}


.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
}

.warning-box strong {
    color: #856404;
}

.success-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--success);
}


.step-guide {
    counter-reset: step;
    margin: 20px 0;
}

.step-item {
    position: relative;
    padding: 15px 15px 15px 50px;
    margin-bottom: 10px;
    background: rgb(226, 213, 213);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.step-item:before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: var(--primary);
    color: rgb(231, 218, 218);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}


@media (max-width: 768px) {
    .user-menu-dropdown {
        width: 200px;
        right: -10px;
    }
    
    .large-modal {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-item i {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .user-menu-btn span {
        display: none;
    }
    
    .user-menu-btn {
        padding: 8px;
    }
    
    .user-menu-dropdown {
        width: 180px;
    }
}


.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.large-modal::-webkit-scrollbar {
    width: 8px;
}

.large-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.large-modal::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.large-modal::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


@media print {
    .modal-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .contact-info {
        background: white !important;
        border: 1px solid #ccc;
    }
    
    .highlight-box {
        background: #f0f0f0 !important;
        color: black !important;
    }
}


.btn-primary, .btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 121, 243, 0.3);
}

.btn-primary::before, .btn-secondary::before {
    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.6s, height 0.6s;
}

.btn-primary:active::before, .btn-secondary:active::before {
    width: 300px;
    height: 300px;
}


.card, .dashboard-card {
    transition: all 0.3s ease;
    animation: cardAppear 0.5s ease-out;
}

.card:hover, .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }



.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}


.user-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

.user-menu.active {
    animation: dropdown 0.3s ease-out;
}

@keyframes dropdown {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.progress-bar {
    overflow: hidden;
    position: relative;
}

.progress-fill {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}


.toast {
    animation: toastSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1), toastFade 0.5s ease-out 3s forwards;
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastFade {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}


.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


.animated-bg {
    background: linear-gradient(-45deg, #0079f3, #023b4b, #0079f3, #689dac);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }
.scale-in { animation: scaleIn 0.4s ease-out; }
.bounce-in { animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}