/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neo Sans Pro', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    line-height: 1.5;
    color: #333;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== СТРАНИЦА ВХОДА ========== */
body:has(.login-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #006699 0%, #3399CC 100%);
    position: relative;
    overflow: hidden;
}

body:has(.login-container)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 150, 199, 0.8) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.7) 0%, transparent 40%),
                linear-gradient(135deg, rgba(0, 119, 182, 0.9) 0%, rgba(3, 4, 94, 0.7) 100%);
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 3;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 20px;
}

.demo-hint {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.demo-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.demo-badge strong {
    color: #FFCC66;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #006699;
    font-size: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
    background: white;
}

.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 45px;
}

.input-icon span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 102, 0, 0.4);
}

.error {
    background: #fee;
    color: #c00;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border-left: 4px solid #c00;
}

.test-accounts {
    margin-top: 25px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid rgba(0, 102, 153, 0.1);
}

.test-accounts p {
    margin-bottom: 5px;
}

.test-accounts code {
    background: #006699;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* ========== ШАПКА ========== */
header {
    background: white;
    padding: 15px 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid rgba(0, 102, 153, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    color: #FF9900;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #006699 0%, #3399CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Меню */
.main-menu {
    display: flex;
    gap: 8px;
    background: #f5f7fa;
    padding: 6px;
    border-radius: 40px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    color: #555;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(255, 153, 0, 0.1);
    color: #FF6600;
}

.menu-item.active {
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.menu-icon {
    font-size: 18px;
}

.menu-text {
    font-size: 15px;
}

/* Правая часть */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f0f5fa;
    border-radius: 30px;
}

.user-avatar {
    font-size: 20px;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: #006699;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fee;
    color: #c00;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #fcc;
    transform: scale(1.05);
}

/* ========== БАЛАНС ========== */
.balance-big {
    background: linear-gradient(135deg, #006699 0%, #3399CC 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 102, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.balance-big::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.balance-label {
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.balance-value {
    font-size: 52px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* ========== СЧЕТА ========== */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0 20px;
}

.account-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 153, 0.1);
    border-top: 4px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.account-icon {
    font-size: 28px;
}

.account-name {
    font-weight: 600;
    color: #006699;
    font-size: 18px;
}

.account-balance {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.account-balance.positive { color: #2e7d32; }
.account-balance.negative { color: #d32f2f; }

.account-details {
    display: flex;
    gap: 20px;
    font-size: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.account-details .income { color: #4caf50; font-weight: 600; }
.account-details .expense { color: #f44336; font-weight: 600; }

.total-balance {
    background: #f0f5fa;
    padding: 18px 25px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
    font-size: 18px;
    border: 1px solid rgba(0, 102, 153, 0.1);
}

.total-balance strong {
    font-size: 22px;
    color: #006699;
}

/* ========== КОМПАКТНАЯ СВОДКА ========== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0 30px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 153, 0.1);
    border-top: 4px solid;
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.summary-card.material { border-top-color: #FF9800; }
.summary-card.finishing { border-top-color: #E91E63; }
.summary-card.work { border-top-color: #2196F3; }
.summary-card.org { border-top-color: #9C27B0; }

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 16px;
    color: #006699;
}

.summary-icon {
    font-size: 24px;
}

.summary-numbers {
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

.summary-row span:first-child { color: #666; }
.summary-row span:last-child { font-weight: 600; }

.summary-row:nth-child(1) span:last-child { color: #2196F3; }
.summary-row:nth-child(2) span:last-child { color: #4caf50; }
.summary-row.highlight {
    border-top: 1px dashed #ddd;
    margin-top: 6px;
    padding-top: 8px;
}
.summary-row.highlight span:last-child { color: #E91E63; }

.summary-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar.mini {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
    color: #006699;
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
.admin-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 35px 0;
}

.add-transaction {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 153, 0.1);
}

.add-transaction h3 {
    margin-bottom: 20px;
    color: #006699;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-transaction form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.add-transaction select,
.add-transaction input {
    flex: 1 1 160px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.add-transaction select:focus,
.add-transaction input:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
    background: white;
}

.add-transaction button {
    flex: 0 0 auto;
    width: auto;
    padding: 14px 30px;
}

/* ========== УВЕДОМЛЕНИЕ ========== */
.notice-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(238, 90, 36, 0.3);
    border: 2px solid #FFD700;
    animation: noticePulse 2s infinite;
}

@keyframes noticePulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(238, 90, 36, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(238, 90, 36, 0.5); }
}

.notice-icon {
    font-size: 36px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.notice-text {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.notice-edit-form {
    background: #FFF9E6;
    padding: 25px;
    border-radius: 16px;
    margin: 20px 0;
    border: 2px dashed #FF9800;
}

.notice-edit-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #FF9800;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 15px;
}

.notice-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-edit-actions label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

/* ========== ФИЛЬТРЫ ========== */
.history-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 20px;
}

.history-header-row h3 {
    color: #006699;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    box-shadow: none;
}

.filters-toggle:hover {
    border-color: #FF9900;
    background: #fff8f0;
}

.filter-badge {
    color: #FF6600;
    font-size: 14px;
}

.filters-panel {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin: 15px 0 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 153, 0.1);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filters-row select {
    flex: 1;
    min-width: 160px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: white;
}

.apply-filters {
    padding: 14px 28px;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    width: auto;
}

.clear-filters-btn {
    padding: 14px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    width: auto;
}

/* ========== РАСКРЫВАЮЩИЕСЯ ТРАНЗАКЦИИ ========== */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.transaction-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 6px solid;
    border: 1px solid rgba(0, 102, 153, 0.08);
}

.transaction-item.income { border-left-color: #4caf50; }
.transaction-item.expense { border-left-color: #f44336; }

.transaction-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.transaction-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 12px;
}

.preview-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Важно для правильного переноса текста */
}

.preview-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f5fa;
    border-radius: 12px;
    flex-shrink: 0;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.preview-date {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.preview-cat {
    font-size: 14px;
    font-weight: 600;
    color: #006699;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.account-badge {
    display: inline-block;
    background: #e9f7fe;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #006699;
    white-space: nowrap;
}

.preview-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.preview-amount {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.preview-amount.income-text { color: #2e7d32; }
.preview-amount.expense-text { color: #d32f2f; }

.expand-icon {
    font-size: 14px;
    color: #999;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.transaction-details {
    padding: 0 18px 18px 70px;
    border-top: 1px solid #eee;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
}

.detail-row {
    display: flex;
    font-size: 14px;
    line-height: 1.5;
}

.detail-label {
    width: 90px;
    color: #888;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

/* Форма редактирования */
.edit-transaction-form { padding-top: 15px; }

.edit-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.edit-row label {
    width: 90px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.edit-row select,
.edit-row input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    min-width: 0;
}

.photo-edit {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.current-photo {
    font-size: 12px;
    color: #4caf50;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.save-btn, .cancel-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    font-size: 14px;
}

.save-btn { background: #4caf50; color: white; border: none; }
.cancel-btn { background: #f44336; color: white; border: none; }

.delete-photo-btn {
    background: #ffebee;
    border: none;
    color: #f44336;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    width: auto;
}

.empty-transactions {
    text-align: center;
    padding: 50px;
    color: #999;
    background: white;
    border-radius: 16px;
    font-size: 16px;
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ТРАНЗАКЦИЙ ========== */
@media (max-width: 600px) {
    .transaction-preview {
        padding: 14px;
        gap: 10px;
    }
    
    .preview-left {
        gap: 10px;
    }
    
    .preview-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .preview-cat {
        font-size: 13px;
    }
    
    .account-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .preview-amount {
        font-size: 16px;
    }
    
    .expand-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .transaction-details {
        padding: 0 14px 14px 50px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 2px;
    }
    
    .edit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .edit-row label {
        width: 100%;
        margin-bottom: 0;
    }
    
    .edit-actions {
        flex-wrap: wrap;
    }
    
    .save-btn, .cancel-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .transaction-preview {
        flex-wrap: wrap;
    }
    
    .preview-left {
        width: 100%;
    }
    
    .preview-right {
        width: 100%;
        justify-content: space-between;
        padding-left: 46px;
    }
    
    .preview-amount {
        font-size: 18px;
    }
}

/* Форма редактирования */
.edit-transaction-form { padding-top: 15px; }
.edit-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.edit-row label {
    width: 90px;
    font-size: 14px;
    color: #666;
}

.edit-row select,
.edit-row input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

.save-btn, .cancel-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}

.save-btn { background: #4caf50; color: white; border: none; }
.cancel-btn { background: #f44336; color: white; border: none; }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1000px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-panel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 12px; }
    
    header {
        flex-direction: column;
        padding: 18px;
    }
    
    .main-menu { width: 100%; justify-content: center; }
    .menu-text { display: none; }
    .menu-icon { font-size: 24px; }
    .menu-item { padding: 12px 20px; }
    
    .balance-big {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }
    .balance-value { font-size: 42px; }
    
    .accounts-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: 1fr; }
    
    .filters-row { flex-direction: column; align-items: stretch; }
    .filters-row select { width: 100%; }
    
    .transaction-details { padding-left: 20px; }
    .detail-row { flex-wrap: wrap; }
    .detail-label { width: 100%; margin-bottom: 4px; }
}

@media (max-width: 480px) {
    .login-container { padding: 30px 20px; }
    .balance-value { font-size: 36px; }
    .preview-amount { font-size: 18px; }
    .preview-icon { width: 40px; height: 40px; font-size: 24px; }
}