.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;}
.glass-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.08);}
.glass-card:nth-child(1) {
    animation-delay: 0s;}
.glass-card:nth-child(2) {
    animation-delay: -1.5s;}
.glass-card:nth-child(3) {
    animation-delay: -3s;}
.glass-card:nth-child(4) {
    animation-delay: -4.5s;}
.glass-card:nth-child(5) {
    animation-delay: -1s;}
.glass-card:nth-child(6) {
    animation-delay: -2.5s;}
.glass-card:nth-child(7) {
    animation-delay: -4s;}
.glass-card:nth-child(8) {
    animation-delay: -5.5s;}
.glass-card:nth-child(1)::before {
    animation-delay: 0s;}
.glass-card:nth-child(2)::before {
    animation-delay: -1s;}
.glass-card:nth-child(3)::before {
    animation-delay: -2s;}
.glass-card:nth-child(4)::before {
    animation-delay: -3s;}
.glass-card:nth-child(5)::before {
    animation-delay: -0.5s;}
.glass-card:nth-child(6)::before {
    animation-delay: -1.5s;}
.glass-card:nth-child(7)::before {
    animation-delay: -2.5s;}
.glass-card:nth-child(8)::before {
    animation-delay: -3.5s;}
.glass-card>* {
    position: relative;
    z-index: 2;}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.25);
    border: 1px solid rgba(255, 85, 0, 0.4);}
.btn-primary:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    background: var(--accent-deep, #c45a24);
    box-shadow: 0 1px 4px rgba(255, 85, 0, 0.3);}
.btn-secondary {
    position: relative;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);}
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    transition: left 0.6s ease;}
.btn-secondary:hover::before {
    left: 100%;}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-color: rgba(255, 85, 0, 0.4);
    transform: translateY(-2px) scale(1.02);}
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.2);}
.btn-success {
    background: var(--success);
    color: white;}
.btn-warning {
    background: var(--warning);
    color: white;}
.btn-danger {
    background: var(--danger);
    color: white;}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;}
.btn i,
.btn .bi {
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;}
.btn i:only-child,
.btn .bi:only-child {
    margin: 0;
    font-size: 1.2em;}
.btn:has(i:not(:only-child)),
.btn:has(.bi:not(:only-child)) {
    gap: 0.5rem;}
.btn i:not(:only-child),
.btn .bi:not(:only-child) {
    font-size: 1.2em;}
.form-group {
    margin-bottom: 1.25rem;}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);}
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);}
.form-control::placeholder {
    color: var(--text-muted);}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;}
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;}
.form-error {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;}
input[type="file"] {
    color: var(--text-secondary);
    cursor: pointer;}
input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);}
input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);}
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);}
.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;}
.card-title i,
.card-title .bi {
    font-size: 1.25em;}
.card-body {
    padding: 0;}
.stat-card {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);}
.stat-card.glass-card::before,
.stat-card.glass-card::after {
    display: none !important;}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 85, 0, 0.6) 0%,
            rgba(255, 85, 0, 0.8) 50%,
            rgba(255, 85, 0, 0.6) 100%);
    border-radius: 3px 0 0 3px;
    z-index: 1;}
.stat-card:hover {
    transform: translateY(-2px);}
.stat-card>* {
    position: relative;
    z-index: 2;}
.stat-card svg {
    width: 32px !important;
    height: 32px !important;}
.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 85, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);}
.stat-card:hover .stat-icon {
    background: rgba(255, 85, 0, 0.3);
    transform: scale(1.05);}
.stat-card-animated {
    cursor: pointer;}
.stat-card-base {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;}
.stat-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    z-index: 3;
    pointer-events: none;
    clip-path: circle(0px at 48px 48px);
    opacity: 0;
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;}
.stat-card-animated:hover .stat-card-overlay {
    clip-path: circle(150% at 48px 48px);
    opacity: 1;}
.stat-card-overlay .stat-icon {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #1e293b;}
.stat-card-overlay .stat-icon svg {
    color: #1e293b;}
.stat-card-overlay .stat-value {
    font-weight: 700;}
.stat-card-animated:hover .stat-card-base {
    opacity: 0;}
@media (prefers-reduced-motion: reduce) {
    .stat-card-overlay {
        transition: opacity 0.3s ease;
        clip-path: none;
        opacity: 0;}
    .stat-card-animated:hover .stat-card-overlay {
        opacity: 1;
        clip-path: none;}}
.stat-card-animated {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;}
.grid-3 .stat-card-overlay {
    clip-path: circle(0px at 50% 48px);}
.grid-3 .stat-card-animated:hover .stat-card-overlay {
    clip-path: circle(150% at 50% 48px);}
.stat-card:nth-child(1)::before {
    animation-delay: 0s;}
.stat-card:nth-child(2)::before {
    animation-delay: -3s;}
.stat-card:nth-child(3)::before {
    animation-delay: -6s;}
.stat-card:nth-child(4)::before {
    animation-delay: -9s;}
.stat-card:nth-child(1)::after {
    animation-delay: 0s;}
.stat-card:nth-child(2)::after {
    animation-delay: -0.75s;}
.stat-card:nth-child(3)::after {
    animation-delay: -1.5s;}
.stat-card:nth-child(4)::after {
    animation-delay: -2.25s;}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;}
.grid {
    display: grid;
    gap: 1.5rem;}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);}
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);}
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);}}
@media (max-width: 640px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;}}
@media (max-width: 520px) {
    #categoryBudgets .flex.justify-between {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;}
    #categoryBudgets .flex.justify-between.items-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;}
    #categoryBudgets .flex.items-center.gap-2 {
        justify-content: flex-start;
        text-align: left;}
    #categoryBudgets input.form-control {
        width: 100% !important;}
    #categoryBudgets button {
        width: 100%;}
    input[type="file"]::file-selector-button {
        width: 100%;
        margin-bottom: 0.5rem;}}
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;}
.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;}
.table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;}
.table tr:hover td {
    background: var(--glass-bg);}
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;}
.progress-success {
    background: var(--success);}
.progress-warning {
    background: var(--warning);}
.progress-danger {
    background: var(--danger);}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--glass-bg);}
.category-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;}
.category-badge-icon {
    display: inline-flex;
    flex-shrink: 0;}
.category-badge-icon svg {
    width: 1rem !important;
    height: 1rem !important;}
.category-badge-label {
    min-width: 0;
    overflow-wrap: anywhere;}
.category-breakdown-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;}
.category-breakdown-icon {
    display: inline-flex;
    flex-shrink: 0;}
.category-breakdown-icon svg {
    width: 1.125rem !important;
    height: 1.125rem !important;}
.category-breakdown-label {
    min-width: 0;
    overflow-wrap: anywhere;}
.category-breakdown-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;}
.category-breakdown-progress {
    width: clamp(64px, 18vw, 100px);
    flex-shrink: 0;}
.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);}
.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);}
.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);}
.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);}
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;}
.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;}
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);}
.modal-overlay.active .modal {
    transform: scale(1);}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);}
.modal-title {
    font-size: 1.25rem;
    font-weight: 600;}
.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);}
.modal-close:hover {
    background: var(--danger);
    color: white;}
.modal-body {
    padding: 1.5rem;}
.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--glass-border);}
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;}
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;}
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;}
.toast {
    min-width: 300px;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;}
    to {
        transform: translateX(0);
        opacity: 1;}}
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;}
.toast-success .toast-icon {
    background: var(--success);}
.toast-error .toast-icon {
    background: var(--danger);}
.toast-warning .toast-icon {
    background: var(--warning);}
.toast-info .toast-icon {
    background: var(--info);}
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;}
.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;}
.empty-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;}
.empty-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;}
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;}
.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);}
.text-center {
    text-align: center;}
.text-success {
    color: var(--success);}
.text-warning {
    color: var(--warning);}
.text-danger {
    color: var(--danger);}
.text-muted {
    color: var(--text-muted);}
.mb-0 {
    margin-bottom: 0;}
.mb-1 {
    margin-bottom: 0.5rem;}
.mb-2 {
    margin-bottom: 1rem;}
.mb-3 {
    margin-bottom: 1.5rem;}
.mb-4 {
    margin-bottom: 2rem;}
.mt-1 {
    margin-top: 0.5rem;}
.mt-2 {
    margin-top: 1rem;}
.mt-3 {
    margin-top: 1.5rem;}
.mt-4 {
    margin-top: 2rem;}
.flex {
    display: flex;}
.flex-wrap {
    flex-wrap: wrap;}
.items-center {
    align-items: center;}
.justify-between {
    justify-content: space-between;}
.gap-1 {
    gap: 0.5rem;}
.gap-2 {
    gap: 1rem;}
.gap-3 {
    gap: 1.5rem;}
.hidden {
    display: none;}
.w-full {
    width: 100%;}
* {
    scrollbar-width: none;
    -ms-overflow-style: none;}
*::-webkit-scrollbar {
    display: none;}
.section {
    padding: 4rem 0;
    overflow: visible;}
.hero+.section {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);}
.hero+.section .section-title {
    font-size: 1.75rem;
    font-weight: 600;
    opacity: 0.95;}
.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.625rem;
    letter-spacing: -0.01em;}
.main-content {
    padding-top: 6rem;
    min-height: 100vh;}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;}
.page-header {
    margin-bottom: 2rem;}
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;}
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;}
canvas {
    display: block;}
.chart-container {
    min-width: 0;}
@media (max-width: 1066px) {
    .main-content {
        padding-top: 5.5rem;}}
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;}
    .main-content {
        padding-top: 5.25rem;}
    .page-header {
        margin-bottom: 1.5rem;}
    .page-title {
        font-size: clamp(1.375rem, 5.8vw, 1.75rem);}
    .page-subtitle {
        font-size: 0.875rem;}
    .card {
        padding: 1.1rem;
        border-radius: 24px;}
    .card-header {
        flex-wrap: wrap;
        gap: 0.75rem;}
    .table {
        min-width: 640px;}
    .table th,
    .table td {
        padding: 0.75rem;
        white-space: normal;
        overflow-wrap: break-word;}
    .table-container {
        -webkit-overflow-scrolling: touch;}
    .main-content .flex.justify-between.items-center {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.5rem;}
    .main-content .flex.justify-between.items-center>*:first-child {
        min-width: 0;
        flex: 1 1 1rem;}
    .main-content .flex.justify-between.items-center>*:last-child {
        margin-left: auto;
        max-width: 100%;}
    .chart-container {
        height: 260px;}
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;}
    .toast {
        min-width: 0;
        width: 100%;}}
@media (min-width: 521px) and (max-width: 768px) {
    #categoryBudgets .flex.justify-between.items-center {
        flex-wrap: nowrap;
        align-items: center;
        gap: 1rem;}
    #categoryBudgets .flex.justify-between.items-center>*:first-child {
        min-width: 0;
        flex: 1 1 auto;}
    #categoryBudgets .flex.justify-between.items-center>*:last-child {
        margin-left: 0;
        max-width: none;
        flex: 0 0 auto;}}
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;}
    .main-content {
        padding-top: 5rem;}
    .card {
        padding: 1rem;
        border-radius: 20px;}
    .modal {
        width: calc(100% - 1rem);}}
[data-theme="light"] .glass-card {
    border-color: var(--glass-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);}
[data-theme="light"] .glass-card:hover {
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);}
[data-theme="light"] .btn-secondary {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);}
[data-theme="light"] .btn-secondary::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(15, 23, 42, 0.08) 50%,
            transparent 100%);}
[data-theme="light"] .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);}
[data-theme="light"] .table th {
    background: rgba(15, 23, 42, 0.05);}
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.45);}
[data-theme="light"] .hero+.section {
    border-top-color: rgba(15, 23, 42, 0.08);}