:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --nav-height: 70px;
    --header-height: 60px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
}

.app-container {
    min-height: 100vh;
    max-width: 100%;
    padding-bottom: var(--nav-height);
}

.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.icon-btn i {
    font-size: 18px;
}

.main-content {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*Card =====================================================================*/
/*.debt-card {*/
/*    background: var(--gradient-primary);*/
/*    color: white;*/
/*    padding: 24px;*/
/*    border-radius: var(--radius-lg);*/
/*    margin-bottom: 24px;*/
/*    box-shadow: var(--shadow-lg);*/
/*}*/

/*.debt-card-header {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    margin-bottom: 12px;*/
/*}*/

/*.debt-card-header h2 {*/
/*    font-size: 16px;*/
/*    font-weight: 600;*/
/*    opacity: 0.9;*/
/*}*/

/*.debt-trend {*/
/*    font-size: 14px;*/
/*    font-weight: 600;*/
/*}*/

/*.debt-amount {*/
/*    font-size: 32px;*/
/*    font-weight: 800;*/
/*    margin-bottom: 16px;*/
/*}*/

/*.debt-progress {*/
/*    background: rgba(255, 255, 255, 0.2);*/
/*    border-radius: 10px;*/
/*    padding: 4px;*/
/*}*/

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: none;
    color: var(--text-primary);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.action-icon {
    font-size: 20px;
}

.action-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-secondary);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.stat-icon.income { background: var(--success); }
.stat-icon.paid { background: var(--info); }
.stat-icon.months { background: var(--primary-color); }
.stat-icon.average { background: var(--warning); }

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.recent-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.text-btn:hover {
    background: var(--bg-hover);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.transaction-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.transaction-icon.salary { background: var(--success); }
.transaction-icon.payment { background: var(--info); }

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salary-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-secondary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.salary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.salary-card.debt-none::before {
    background: var(--success);
}

.salary-card.debt-full::before {
    background: var(--error);
}

.salary-card.debt-partial::before {
    background: var(--warning);
}

.salary-card.debt-overpaid::before {
    background: var(--info);
}

.salary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.salary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.salary-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.salary-card-amount {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.salary-card-details {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.salary-detail-left,
.salary-detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-detail-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 4px solid transparent;
}

.salary-detail-left .salary-detail-item {
    border-left-color: var(--success);
}

.salary-detail-right .salary-detail-item {
    border-left-color: var(--error);
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
}

.detail-value.positive {
    color: var(--success);
}

.detail-value.negative {
    color: var(--error);
}

.detail-value.neutral {
    color: var(--text-primary);
}

.salary-card-status {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.debt-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.debt-status.none {
    background: var(--success);
    color: white;
}

.debt-status.full {
    background: var(--error);
    color: white;
}

.debt-status.partial {
    background: var(--warning);
    color: #000;
}

.debt-status.overpaid {
    background: var(--info);
    color: white;
}

.salary-card-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.payment-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-secondary);
    transition: all 0.3s;
}

.payment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.payment-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.payment-card-amount {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.payment-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.payment-detail-item {
    text-align: center;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.payment-card-actions {
    display: flex;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    display: flex;
    padding: 8px 16px;
    border-top: 1px solid var(--bg-secondary);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.nav-btn.active {
    color: var(--primary-color);
    background: var(--bg-hover);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 11px;
    font-weight: 600;
}

.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-group {
    flex: 1;
}

.modern-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state .btn-primary {
    margin-top: 16px;
    display: inline-flex;
    width: auto;
    padding: 12px 24px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 0 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.modern-textarea {
    height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.debt-info {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.debt-info div {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debt-info span {
    font-weight: bold;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
    padding: 14px;
}

.format-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-card);
}

.format-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.format-option input[type="radio"] {
    margin: 0;
}

.format-option input[type="radio"]:checked + .format-icon {
    background: var(--primary-color);
    color: white;
}

.format-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-secondary);
    transition: all 0.3s;
    flex-shrink: 0;
}

.format-info {
    flex: 1;
}

.format-info strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.format-info small {
    color: var(--text-muted);
    font-size: 12px;
}

.report-preview {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.report-preview h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.preview-content {
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-sm);
    min-height: 80px;
    font-size: 14px;
    color: var(--text-secondary);
}

.preview-content p {
    margin: 0;
}

.data-management-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.data-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.data-option-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.data-option-card.warning:hover {
    border-color: var(--error);
}

.option-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.option-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.option-arrow {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.data-stats {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
}

.data-stats h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-hover);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span:first-child {
    color: var(--text-secondary);
}

.stat-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.warning-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 24px;
    color: var(--error);
    flex-shrink: 0;
}

.warning-message p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
}

.data-to-delete {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
}

.data-to-delete h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.data-to-delete ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.data-to-delete li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.confirmation-dialog {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.confirmation-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.confirmation-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
    line-height: 1.4;
    flex: 1;
}

.confirmation-message {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    padding-left: 64px;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.confirmation-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.confirmation-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.confirmation-btn.confirm {
    background: var(--primary-color);
    color: white;
}

.confirmation-btn.confirm.warning {
    background: var(--warning);
}

.confirmation-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.confirmation-btn.cancel:hover {
    background: var(--bg-hover);
}

.confirmation-btn.confirm:hover {
    background: var(--primary-dark);
}

.confirmation-btn.confirm.warning:hover {
    background: #e4a70b;
}

.modal-body .btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.modal-body .btn-grid button {
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .icon-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .icon-btn i {
        font-size: 16px;
    }
    
    .confirmation-dialog {
        padding: 24px;
        max-width: calc(100% - 40px);
    }
    
    .confirmation-header {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    
    .confirmation-icon {
        margin-top: 0;
    }
    
    .confirmation-message {
        padding-left: 0;
        text-align: center;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .modal-body .btn-grid {
        gap: 8px;
    }
    
    .modal-body .btn-grid button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .data-option-card {
        padding: 12px;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .salary-card-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .salary-detail-left,
    .salary-detail-right {
        flex: none;
    }
    
    .payment-card-details {
        grid-template-columns: 1fr;
    }
    
    .salary-card-actions,
    .payment-card-actions {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .format-options {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bottom-nav {
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .format-options {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .header-actions {
        gap: 6px;
    }
    
    .icon-btn {
        min-width: 38px;
        height: 38px;
    }
    
    .confirmation-dialog {
        max-width: 400px;
    }
}

@media (max-width: 360px) {
    .icon-btn {
        min-width: 34px;
        height: 34px;
        padding: 5px;
    }
    
    .icon-btn i {
        font-size: 15px;
    }
    
    .confirmation-dialog {
        padding: 20px;
        max-width: calc(100% - 32px);
    }
}

@media (min-width: 1200px) {
    .confirmation-dialog {
        max-width: 500px;
    }
}

@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .app-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .main-content {
        padding-top: calc(16px + env(safe-area-inset-top));
    }
}

.login-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-screen.active {
    display: flex;
}

.login-container {
    width: 100%;
    max-width: 420px; /* Трохи більше для кращого вигляду */
    margin: 0 auto;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--bg-secondary);
    text-align: center;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-btn {
    margin-top: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

.login-info {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.login-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.login-info strong {
    color: var(--primary-color);
}

.login-info small {
    color: var(--text-muted);
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-screen.active .login-card {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
}

/* Адаптація для модальних вікон з селекторами місяців */
.modal-body .debt-info {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    animation: fadeIn 0.3s ease;
}

.modal-body .debt-info div {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body .debt-info span {
    font-weight: bold;
    color: var(--primary-color);
}

.modal-body .debt-info span[style*="color: var(--error)"] {
    color: var(--error) !important;
}

.modal-body .debt-info span[style*="color: var(--success)"] {
    color: var(--success) !important;
}

/* Фільтри на сторінці платежів */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* Стилі для карток з інформацією про борг */
.salary-card .debt-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 12px 0;
}

.salary-card .debt-info div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
}

.salary-card .debt-info .label {
    color: var(--text-secondary);
    font-size: 12px;
}

.salary-card .debt-info .value {
    font-weight: 700;
    font-size: 14px;
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Покращення для мобільних пристроїв */
@media (max-width: 480px) {
    .filter-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .modal-body .debt-info {
        padding: 12px;
        margin: 16px 0;
    }
    
    .modal-body .debt-info div {
        font-size: 13px;
    }
}

/* Покращення для темної теми */
[data-theme="dark"] .modal-body .debt-info {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .salary-card .debt-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

/* СТИЛІ ДЛЯ СПОВІЩЕНЬ */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--info);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: notificationSlideIn 0.3s ease-out;
    transform: translateX(100%);
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    max-height: 200px;
    margin-bottom: 8px;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Типи сповіщень */
.notification.success {
    border-left-color: var(--success);
    background: var(--bg-card);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
    background: var(--bg-card);
}

.notification.error .notification-icon {
    color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
    background: var(--bg-card);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification.info {
    border-left-color: var(--info);
    background: var(--bg-card);
}

.notification.info .notification-icon {
    color: var(--info);
}

/* Анімація виходу */
.notification.hiding {
    animation: notificationSlideOut 0.3s ease-in forwards;
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
        margin-bottom: 8px;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: env(safe-area-inset-top, 10px);
        right: 10px;
        left: 10px;
    }
    
    .notification {
        padding: 12px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-icon {
        font-size: 18px;
    }
}

/* Для темної теми - більш пом'якшені кольори */
[data-theme="dark"] .notification {
    background: var(--bg-secondary);
    border-left-width: 6px;
}

[data-theme="dark"] .notification.success {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .notification.error {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .notification.warning {
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .notification.info {
    background: rgba(59, 130, 246, 0.1);
}

/* Стилі для опцій з боргом у випадаючому списку */
.modern-select option[style*="color: var(--error)"] {
    color: var(--error) !important;
    font-weight: 600;
}

.modern-select option[style*="color: var(--success)"] {
    color: var(--success) !important;
}

/* Для темної теми */
[data-theme="dark"] .modern-select option[style*="color: var(--error)"] {
    color: #f87171 !important;
}

[data-theme="dark"] .modern-select option[style*="color: var(--success)"] {
    color: #34d399 !important;
}

/* Покращення для мобільних пристроїв */
@media (max-width: 480px) {
    .modern-select option {
        font-size: 14px;
        padding: 8px 4px;
    }
}

.year-toggle {
    font-size: 14px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.year-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.year-header:hover {
    background: var(--bg-hover);
}

year-salaries {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Збільште відступ між картками */
    margin-top: 16px;
}

/* ШВИДКИЙ ФІКС ДЛЯ ВІДСТУПІВ */
#salaryTableMobile .salary-card {
    margin-bottom: 20px !important;
    padding: 20px !important;
}

#salaryTableMobile .salary-card:last-child {
    margin-bottom: 0 !important;
}

.year-salaries {
    gap: 20px !important;
}

.salary-card > div {
    margin-bottom: 16px !important;
}

.salary-card > div:last-child {
    margin-bottom: 0 !important;
}

/*Лінії по роках*/
/* ========== СТИЛІ ДЛЯ РОЗДІЛЮВАЧА РОКІВ ========== */

.year-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    position: relative;
    width: 100%;
}

.divider-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    opacity: 0.4;
    min-width: 20px;
}

.divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    margin: 0 16px;
    position: relative;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

/* Анімація для кращого вигляду */
.year-divider {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для темної теми */
[data-theme="dark"] .divider-line {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

[data-theme="dark"] .divider-dot {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
    .year-divider {
        margin: 20px 0;
    }
    
    .divider-dot {
        margin: 0 12px;
        width: 6px;
        height: 6px;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }
    
    .divider-line {
        height: 1.5px;
    }
}

/*Карта*/
.debt-card {
    background: linear-gradient(145deg, 
        rgba(99, 102, 241, 1) 0%, 
        rgba(139, 92, 246, 1) 100%);
    color: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    
    /* 3D тінь */
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.3),
        0 15px 45px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* 3D ефект */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ефект наведення */
.debt-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.4),
        0 25px 50px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Світлові ефекти */
.debt-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0.3;
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Блискітки */
.debt-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 2px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.1) 3px, transparent 4px);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    opacity: 0.6;
    z-index: 1;
}

/* Вміст картки */
.debt-card > * {
    position: relative;
    z-index: 2;
}

.debt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.debt-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.debt-trend {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.debt-amount {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: amountGlow 3s ease-in-out infinite alternate;
}

@keyframes amountGlow {
    0% { 
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.3),
            0 4px 20px rgba(0, 0, 0, 0.2);
    }
    100% { 
        text-shadow: 
            0 2px 15px rgba(255, 255, 255, 0.5),
            0 4px 25px rgba(255, 255, 255, 0.4),
            0 6px 30px rgba(255, 255, 255, 0.3);
    }
}

.debt-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 100%);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Ефект світіння прогрес-бару */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Додатковий 3D ефект для картки */
.debt-card .card-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%);
    border-radius: 0 0 0 var(--radius-lg);
    top: 0;
    left: 0;
    z-index: 1;
}

/* Для темної теми */
[data-theme="dark"] .debt-card {
    background: linear-gradient(145deg, 
        rgba(79, 70, 229, 1) 0%, 
        rgba(124, 58, 237, 1) 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 15px 45px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .debt-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .debt-amount {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
    .debt-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .debt-card-header h2 {
        font-size: 16px;
    }
    
    .debt-amount {
        font-size: 34px;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .debt-trend {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .debt-card {
        padding: 16px;
        border-radius: var(--radius-md);
    }
    
    .debt-amount {
        font-size: 28px;
    }
    
    .debt-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .debt-trend {
        align-self: flex-end;
    }
}

/* Неонова версія (опційно) */
.debt-card.neon {
    background: linear-gradient(145deg, 
        rgba(99, 102, 241, 0.9) 0%, 
        rgba(139, 92, 246, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.7),
        0 0 40px rgba(99, 102, 241, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: neonPulse 3s infinite alternate;
}

@keyframes neonPulse {
    0% {
        box-shadow: 
            0 0 20px rgba(99, 102, 241, 0.7),
            0 0 40px rgba(99, 102, 241, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(99, 102, 241, 0.9),
            0 0 50px rgba(99, 102, 241, 0.7),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Металічна версія (опційно) */
.debt-card.metal {
    background: linear-gradient(145deg, 
        #4a5568 0%,
        #2d3748 50%,
        #1a202c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.debt-card.metal .debt-amount {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.debt-card.premium {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 1) 0%, 
        rgba(139, 92, 246, 1) 50%, 
        rgba(168, 85, 247, 1) 100%);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

.debt-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.debt-card.premium .debt-amount {
    font-size: 34px;
    font-weight: 900;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    background: linear-gradient(to bottom, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/*Кінець карти*/

/*Лого*/
.app-title.mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.app-title.mobile .short-text {
    display: inline;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-title.mobile .full-text {
    display: none;
}

@media (min-width: 768px) {
    .app-title.mobile .short-text {
        display: none;
    }
    
    .app-title.mobile .full-text {
        display: inline;
        font-weight: 700;
        color: var(--text-primary);
    }
}

.app-title.mobile i {
    font-size: 22px;
    color: var(--primary-color);
}
/*КінецьЛого*/

/*Лого входу*/
.login-header {
    margin-bottom: 40px;
}

.login-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
}

.login-logo-wrapper:hover .login-logo-icon {
    transform: rotate(15deg) scale(1.05);
}

.login-logo-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    position: relative;
}

.logo-primary {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo-secondary {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-badge {
    position: absolute;
    top: -8px;
    right: -40px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.login-description {
    color: var(--text-secondary);
    font-size: 16px;
    text-align: center;
    opacity: 0.8;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}
/*Кінецьлого входу*/
