
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.header-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.greeting-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 700;
    font-size: 20px;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.greeting {
    flex: 1;
}

.greeting h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.greeting p {
    font-size: 16px;
    color: white;
    font-weight: 400;
    opacity: 0.9;
}

.score-section {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
    border-radius: 20px;
    padding: 24px 28px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 4px solid #fbbf24;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.6);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.score-section:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.8);
}

.score-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: tokenShimmer 2s infinite;
}

.score-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: tokenPulse 3s ease-in-out infinite;
}

@keyframes tokenShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes tokenPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.score-label {
    font-size: 14px;
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    animation: tokenFloat 2s ease-in-out infinite;
}

.score-label::before {
    content: '🪙 ';
    font-size: 18px;
    margin-right: 4px;
    animation: tokenSpin 4s linear infinite;
    display: inline-block;
}

@keyframes tokenFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes tokenSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.score-value {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    animation: tokenGlow 2s ease-in-out infinite alternate;
}

@keyframes tokenGlow {
    0% {
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.logout-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.logout-button {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: 3px solid #fb923c;
    border-radius: 16px;
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.logout-button::before {
    content: '🔓 ';
    font-size: 16px;
    margin-right: 4px;
}

.logout-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
}

.logout-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Balance Section in Header */
.balance-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.balance-info {
    text-align: center;
}

.balance-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}

.balance-breakdown {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
}

.balance-breakdown .breakdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.balance-breakdown .breakdown-label {
    display: block;
    font-size: 10px;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.balance-breakdown .breakdown-value {
    display: block;
    font-size: 12px;
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header-right-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.activities-button {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activities-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.activities-icon {
    font-size: 16px;
}

.activities-text {
    font-size: 12px;
}

/* Bank Balance Section */
.bank-balance-section {
    margin-bottom: 24px;
}

.bank-balance-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
    border: 3px solid #fcd34d;
    position: relative;
    overflow: hidden;
}

.bank-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

.bank-balance-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.bank-balance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bank-balance-info {
    flex: 1;
}

.bank-balance-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bank-balance-subtitle {
    font-size: 14px;
    color: white;
    opacity: 0.9;
    font-weight: 500;
}

.bank-balance-amount {
    font-size: 48px;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.bank-balance-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item.total {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.breakdown-label {
    display: block;
    font-size: 12px;
    color: #965405;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.breakdown-value {
    display: block;
    font-size: 16px;
    color: #965405;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.breakdown-item.total .breakdown-value {
    font-size: 18px;
    font-weight: 800;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.bank-avatar {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
}

.card:nth-child(4) {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.card:nth-child(4) .card-amount {
    color: #d97706;
}

.card:nth-child(4) .card-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.card:nth-child(4) .card-button:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* 3 Pillars Section */
.pillars-section {
    margin-bottom: 32px;
}

.pillars-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pillar-earn {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.pillar-save {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.pillar-spend {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pillar-earn .pillar-icon {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    border-color: #10b981;
}

.pillar-save .pillar-icon {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: #3b82f6;
}

.pillar-spend .pillar-icon {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #f59e0b;
}

.pillar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.pillar-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.pillar-status {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
}

.pillar-earn .pillar-status.active {
    background: #ecfdf5;
    color: #059669;
}

.pillar-save .pillar-status.active {
    background: #eff6ff;
    color: #2563eb;
}

.pillar-spend .pillar-status.active {
    background: #fffbeb;
    color: #d97706;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card:nth-child(1) {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.card:nth-child(2) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.card:nth-child(3) {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.card-header {
    margin-bottom: 20px;
}

.card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.income-avatar {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    border-color: #10b981;
}

.savings-avatar {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: #3b82f6;
}

.spend-avatar {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #f59e0b;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.card-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card:nth-child(1) .card-amount {
    color: #059669;
}

.card:nth-child(2) .card-amount {
    color: #2563eb;
}

.card:nth-child(3) .card-amount {
    color: #d97706;
}

.card-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.card:nth-child(2) .card-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.card:nth-child(2) .card-button:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.card:nth-child(3) .card-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.card:nth-child(3) .card-button:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Career Page Styles */
.career-header {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.career-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.career-header p {
    font-size: 16px;
    color: white;
    opacity: 0.9;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.career-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.career-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.career-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.career-card:nth-child(1) .career-avatar {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
    border-color: #ef4444;
}

.career-card:nth-child(2) .career-avatar {
    background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
    border-color: #3b82f6;
}

.career-card:nth-child(3) .career-avatar {
    background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
    border-color: #f97316;
}

.career-card:nth-child(4) .career-avatar {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
    border-color: #f59e0b;
}

.career-card:nth-child(5) .career-avatar {
    background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 100%);
    border-color: #8b5cf6;
}

.career-card:nth-child(6) .career-avatar {
    background: linear-gradient(135deg, #a7f3d0 0%, #34d399 100%);
    border-color: #10b981;
}

.career-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.career-salary {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.career-description {
    font-size: 12px;
    color: #64748b;
}

.back-button {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Savings Input Styles */
.savings-input-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid #3b82f6;
}

.savings-input-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.input-group {
    /*display: flex;*/
    /*gap: 12px;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*flex-wrap: wrap;*/
}

.amount-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    width: 200px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.amount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.currency-label {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.salary-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border: 2px solid #3b82f6;
}

.salary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.salary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 2px solid #3b82f6;
    font-weight: 700;
}

.salary-label {
    font-size: 14px;
    color: #64748b;
}

.salary-amount {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
}

.remaining-amount {
    color: #059669 !important;
}

.insufficient-funds {
    color: #dc2626 !important;
}

/* Beautiful Alert Popup */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.alert-popup {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.alert-overlay.show .alert-popup {
    transform: scale(1) translateY(0);
}

.alert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.alert-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.alert-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-career-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    border: 2px solid #10b981;
}

.alert-career-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.alert-career-name {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 4px;
}

.alert-career-salary {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.alert-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Category Tabs Styles */
.category-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-tab.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.tab-icon {
    font-size: 24px;
}

.tab-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.tab-points {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #64748b;
}

.category-tab.active .tab-points {
    color: #059669;
}

/* 3-Column Spend Layout */
.spend-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.categories-column, .items-column, .cart-column {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
}

/* Header Cart Button */
.header-cart-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 50%;
    border: 4px solid white;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    animation: cartPulse 2s infinite;
    position: relative;
    overflow: hidden;
}

/* Floating Cart Button (hidden by default) */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 50%;
    border: 4px solid white;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    animation: cartPulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.header-cart-btn::before,
.floating-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.header-cart-btn:hover,
.floating-cart-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.6);
    animation: cartBounce 0.6s ease;
}

.header-cart-btn:hover::before,
.floating-cart-btn:hover::before {
    transform: scale(1);
}

.header-cart-btn:active,
.floating-cart-btn:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
}

@keyframes cartPulse {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 0 0 0 8px rgba(255, 107, 107, 0.1);
    }
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-5px) scale(1.1);
    }
    40% {
        transform: translateY(-8px) scale(1.15);
    }
    60% {
        transform: translateY(-6px) scale(1.12);
    }
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fbbf24;
    color: #1e293b;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: badgeBounce 0.5s ease;
    z-index: 105;
}

@keyframes badgeBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-icon-main {
    font-size: 32px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.header-cart-btn:hover .cart-icon-main,
.floating-cart-btn:hover .cart-icon-main {
    transform: scale(1.1);
}

/* Cart Popup Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cart-modal.show {
    display: flex;
}

.cart-popup {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.cart-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.cart-close-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.cart-close-btn:hover {
    background: #dc2626;
}

.categories-column h3, .items-column h3, .cart-column h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.categories-column h3::before {
    content: '📂';
    margin-right: 8px;
}

.items-column h3::before {
    content: '🛍️';
    margin-right: 8px;
}

.cart-column h3::before {
    content: '🛒';
    margin-right: 8px;
}

/* Category List Styles */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.category-item.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.category-item.active::before {
    background: #10b981;
    width: 6px;
}

.category-item.unhealthy {
    border-color: #f87171;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.category-item.unhealthy.active {
    border-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.category-item.unhealthy.active::before {
    background: #ef4444;
    width: 6px;
}

.category-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.category-desc {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

/* Items Grid Styles */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.item-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #10b981;
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-card.negative::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.item-card.negative:hover {
    border-color: #ef4444;
}

.item-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.item-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-price {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 4px;
}

.item-points {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 6px 10px;
    border-radius: 12px;
    display: none;
    border: 2px solid #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.item-points::before {
    content: '🪙';
    margin-right: 3px;
    font-size: 10px;
    animation: tokenSpinSlow 3s linear infinite;
    display: inline-block;
}

@keyframes tokenSpinSlow {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.item-card.negative .item-points {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.item-card.negative .item-points::before {
    content: '💸';
    animation: none;
}

.item-card.negative .item-price {
    color: #dc2626;
}

/* Cart Styles */
.cart-summary {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.salary-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.salary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
}

.cart-items {
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-cart p {
    margin: 4px 0;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.cart-item-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-remove:hover {
    background: #dc2626;
}

.cart-totals {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.total-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-weight: 700;
    font-size: 16px;
}

.total-row.remaining span:last-child {
    color: #059669;
}

.total-row.insufficient span:last-child {
    color: #dc2626;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.clear-cart-btn, .checkout-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.clear-cart-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.clear-cart-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.checkout-btn {
    background: #10b981;
    color: white;
}

.checkout-btn:hover:not(:disabled) {
    background: #059669;
}

.checkout-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

/* Spend Category Styles */
.spend-category {
    display: none;
}

.spend-category.active {
    display: block;
}

/* Career Category Styles */
.career-category {
    display: none;
}

.career-category.active {
    display: block;
}

.category-header {
    text-align: center;
    margin-bottom: 24px;
}

.category-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-header p {
    font-size: 16px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.unhealthy-header h2 {
    font-weight: 800;
}

.unhealthy-header p {
    font-weight: 700;
    font-size: 18px;
}

/* Card Type Specific Styles */
.essential-card {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
}

.essential-card .career-description {
    color: #059669 !important;
    font-weight: 600;
}

.marketplace-card {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
}

.marketplace-card .career-description {
    color: #2563eb !important;
    font-weight: 600;
}

.unhealthy-card {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%) !important;
}

.unhealthy-card .career-description {
    color: #dc2626 !important;
    font-weight: 600;
}

.unhealthy-card .career-salary {
    color: #dc2626 !important;
}

/* Career Card Type Specific Styles */
.educated-card {
    border-color: #8b5cf6 !important;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}

.educated-card .career-description {
    color: #7c3aed !important;
    font-weight: 600;
}

.educated-card .career-salary {
    color: #7c3aed !important;
}

.vocational-card {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
}

.vocational-card .career-description {
    color: #d97706 !important;
    font-weight: 600;
}

.vocational-card .career-salary {
    color: #d97706 !important;
}

.noneducated-card {
    border-color: #6b7280 !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.noneducated-card .career-description {
    color: #4b5563 !important;
    font-weight: 600;
}

.noneducated-card .career-salary {
    color: #4b5563 !important;
}

/* Monthly Overview Title */
.monthly-overview-title {
    text-align: center;
    margin-bottom: 24px;
}

.monthly-overview-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid transparent;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    text-align: center;
}

.login-header {
    margin-bottom: 16px;
}

.login-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px auto;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.login-header p {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.pin-container {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pin-input {
    width: 40px !important;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pin-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 12px 0 8px 0;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.avatar-selection {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-radio {
    display: none;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-width: 80px;
}

.avatar-option:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.avatar-radio:checked + .avatar-option {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.avatar {
    font-size: 32px;
    line-height: 1;
}

.avatar-option span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}



.login-text {
    flex: 1;
}

.login-icon {
    font-size: 20px;
}

.demo-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #3b82f6;
    text-align: center;
}

.demo-info p {
    margin: 2px 0;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
}

.demo-info p:first-child {
    font-weight: 700;
}

@media (max-width: 768px) {
    .cards-container, .careers-grid {
        grid-template-columns: 1fr;
    }

    .pillars-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header-right-section {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .activities-button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .activities-text {
        font-size: 10px;
    }

    .pillars-title {
        font-size: 24px;
    }

    .pillar-card {
        padding: 20px;
    }

    .pillar-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .pillar-title {
        font-size: 18px;
    }

    .header-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .greeting-section {
        justify-content: center;
        order: 1;
    }

    .balance-section {
        order: 2;
        margin: 0 auto;
        max-width: 100%;
    }

    .balance-breakdown {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .balance-breakdown .breakdown-item {
        padding: 6px;
    }

    .balance-breakdown .breakdown-label {
        font-size: 9px;
    }

    .balance-breakdown .breakdown-value {
        font-size: 11px;
    }

    .balance-amount {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .header-right-section {
        order: 3;
        justify-content: center;
    }

    .score-section {
        margin: 0 auto;
        max-width: 200px;
    }

    .career-header {
        padding: 20px;
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .career-header .header-cart-btn {
        margin: 16px auto 0 auto;
        width: 70px;
        height: 70px;
    }

    .career-header .header-cart-btn .cart-icon-main {
        font-size: 28px;
    }

    .career-header .header-cart-btn .cart-badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: -10px;
        right: -10px;
    }

    .logout-section {
        justify-content: center;
    }

    .career-header {
        padding: 20px;
    }

    .greeting h1, .career-header h1 {
        font-size: 24px;
    }

    /* Mobile Bank Balance */
    .bank-balance-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bank-balance-amount {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .bank-balance-title {
        font-size: 20px;
    }

    .breakdown-value {
        font-size: 14px;
    }

    .breakdown-item.total .breakdown-value {
        font-size: 16px;
    }

    .card {
        padding: 24px 20px;
        min-height: 240px;
    }

    .card-amount {
        font-size: 28px;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .category-tab {
        min-width: 200px;
    }

    .login-card {
        padding: 16px;
        max-width: 280px;
    }

    .login-header h1 {
        font-size: 18px;
    }

    .login-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 auto 6px auto;
    }

    .pin-input {
        width: 35px !important;
        height: 35px;
        font-size: 14px;
    }

    /* Mobile 3-Column Layout */
    .spend-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .categories-column {
        order: 1;
    }

    .items-column {
        order: 2;
    }

    .cart-column {
        order: 3;
    }

    .floating-cart-btn {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 20px;
    }

    .floating-cart-btn .cart-icon-main {
        font-size: 28px;
    }

    .cart-badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: -10px;
        right: -10px;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .category-name {
        font-size: 12px;
    }

    .category-desc {
        font-size: 10px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .item-card {
        padding: 12px;
    }

    .item-icon {
        font-size: 24px;
    }

    .item-name {
        font-size: 11px;
    }

    .item-price {
        font-size: 12px;
    }

    .item-points {
        font-size: 10px;
    }

    .cart-summary {
        height: auto;
    }

    .cart-items {
        min-height: 120px;
        max-height: 150px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 8px;
    }

    .clear-cart-btn, .checkout-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}
