/* app.css - Premium visual system for EcoSave Savings App */

:root {
    --primary-color: #5F56A8;
    --primary-light: #EFEBFF;
    --primary-dark: #4A4090;
    --accent-color: #7C3AED;
    
    --bg-color: #F8F7FC;
    --card-bg: #FFFFFF;
    
    --text-main: #232233;
    --text-muted: #828099;
    --text-light: #B4B2CD;
    
    --success-color: #10B981;
    --success-bg: #E6FDF4;
    --danger-color: #EF4444;
    --danger-bg: #FEE2E2;
    
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 12px 40px rgba(95, 86, 168, 0.08);
    --shadow-fab: 0 10px 25px rgba(95, 86, 168, 0.3);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. Global Reset & Layout
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #1A1829; /* Dark backdrop for browser testing */
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Core App container mimicking a high-end smartphone view */
#app-container {
    width: 100%;
    max-width: 440px; /* Standard phone width in desktop browsers */
    height: 100vh;
    max-height: 920px;
    background-color: var(--bg-color);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 440px) {
    #app-container {
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Scrollable area inside views */
.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 100px 20px; /* padding-bottom accounts for nav bar & FAB */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.scroll-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* ==========================================================================
   2. Single Page View Router Structure & Transitions
   ========================================================================== */
.app-view {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    animation: viewFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.app-view.active {
    display: flex;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Header Bar */
.app-header {
    height: 72px;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(95, 86, 168, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    z-index: 10;
}

.header-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.header-profile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(95, 86, 168, 0.15);
}

.profile-avatar {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.header-action-btn:hover {
    background-color: rgba(95, 86, 168, 0.08);
    color: var(--primary-color);
}

/* ==========================================================================
   3. Lock Screen View Styles
   ========================================================================== */
#view-lock {
    background: radial-gradient(circle at top, #7C3AED 0%, #4A4090 100%);
    color: #FFFFFF;
    justify-content: space-between;
    padding: 60px 30px 40px 30px;
}

.lock-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.lock-logo-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.app-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.lock-instruction {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.pin-dots {
    display: flex;
    gap: 16px;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pin-dot.filled {
    background-color: #FFFFFF;
    transform: scale(1.25);
    box-shadow: 0 0 15px #FFFFFF;
}

/* Keypad Styles */
.keypad-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 40px;
}

.keypad-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    user-select: none;
}

.keypad-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.92);
}

.keypad-backspace {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.keypad-backspace:active {
    background-color: transparent;
    color: #FFFFFF;
}

.lock-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lock-footer-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.lock-footer-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   4. Dashboard Elements
   ========================================================================= */

/* Balance & Chart card */
.balance-chart-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balance-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.balance-amount {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

/* Donut container */
.chart-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 20px;
}

.chart-donut-wrapper {
    width: 100%;
    height: 100%;
}

.donut-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.donut-percentage {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.donut-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    width: 100%;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.legend-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Section Title bar */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 8px;
}

.section-title-bar h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.text-action-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.text-action-btn:hover {
    color: var(--primary-color);
}

/* Accounts List */
.accounts-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-card-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(95, 86, 168, 0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.account-card-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Left accent bar on card */
.account-card-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.account-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-icon-badge svg {
    width: 20px;
    height: 20px;
}

.account-details-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.account-name-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.account-sub-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.account-balance-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Empty State visual */
.empty-state {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-primary-small {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary-small:active {
    transform: scale(0.96);
    background-color: var(--primary-dark);
}

/* Floating Action Button (FAB) */
.floating-action-btn {
    position: absolute;
    bottom: 96px; /* Floating above the bottom navigation bar */
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    box-shadow: var(--shadow-fab);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition-smooth);
    animation: fabPulse 2.5s infinite;
}

.floating-action-btn:active {
    transform: scale(0.92) rotate(45deg);
    background-color: var(--accent-color);
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 10px 25px rgba(95, 86, 168, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(95, 86, 168, 0.55);
    }
    100% {
        box-shadow: 0 10px 25px rgba(95, 86, 168, 0.3);
    }
}

/* ==========================================================================
   5. Account Details View Elements
   ========================================================================== */
.account-summary-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.account-summary-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-summary-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.account-summary-icon-badge svg {
    width: 24px;
    height: 24px;
}

.account-summary-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.account-summary-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.account-summary-balance-box {
    border-top: 1px solid rgba(95, 86, 168, 0.06);
    padding-top: 16px;
}

.summary-balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.summary-balance-amount {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Quick action deposit/withdrawal buttons */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.btn-action-card {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.btn-action-card.versement {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-action-card.versement:active {
    background-color: var(--primary-dark);
    transform: scale(0.96);
}

.btn-action-card.retrait {
    background-color: #E2E1EC;
    color: var(--text-main);
}

.btn-action-card.retrait:active {
    background-color: #CFCED9;
    transform: scale(0.96);
}

.action-card-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Metrics row */
.details-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.metric-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Transactions list visualization */
.transactions-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-day-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.tx-day-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
    margin-top: 6px;
}

.tx-row-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(95, 86, 168, 0.02);
}

.tx-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.tx-badge.in {
    background-color: var(--success-bg);
    color: var(--success-color);
}

.tx-badge.out {
    background-color: var(--danger-bg);
    color: var(--danger-color);
}

.tx-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 190px;
}

.tx-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tx-amount {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.tx-amount.in {
    color: var(--success-color);
}

.tx-amount.out {
    color: var(--text-main);
}

/* ==========================================================================
   6. Form & Inputs Elements
   ========================================================================== */
.form-instructions-container {
    margin-bottom: 24px;
}

.form-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    height: 52px;
    border-radius: var(--border-radius-md);
    border: 1.5px solid rgba(95, 86, 168, 0.12);
    background-color: var(--card-bg);
    padding: 0 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(95, 86, 168, 0.15);
}

.form-select {
    width: 100%;
    height: 52px;
    border-radius: var(--border-radius-md);
    border: 1.5px solid rgba(95, 86, 168, 0.12);
    background-color: var(--card-bg);
    padding: 0 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23828099'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.form-select:focus {
    border-color: var(--primary-color);
}

/* Selector Grids (Icons & Colors) */
.icons-grid-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.icon-selector-btn {
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid rgba(95, 86, 168, 0.1);
    background-color: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.icon-selector-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.icon-selector-btn.active {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.colors-grid-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.color-selector-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.color-selector-btn.active {
    border-color: var(--text-main);
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.color-selector-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.btn-primary-full {
    width: 100%;
    height: 52px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow-fab);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-primary-full:active {
    background-color: var(--primary-dark);
    transform: scale(0.98);
}

/* ==========================================================================
   7. Fixed Bottom Navigation Bar
   ========================================================================== */
#app-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(95, 86, 168, 0.08);
    display: none; /* hidden until logged in */
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 10px 10px; /* spacing for bottom swipe indicators */
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.03);
    z-index: 10;
}

#app-nav-bar.active {
    display: flex;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    font-family: inherit;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item span {
    font-size: 0.72rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary-color);
}

/* ==========================================================================
   8. Popup / Modal Windows Elements
   ========================================================================== */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 24, 41, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end; /* Slide up from bottom visual */
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    background-color: var(--bg-color);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    padding: 24px 20px 40px 20px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.tx-account-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    border: 1px solid rgba(95, 86, 168, 0.05);
}

.preview-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.95rem;
}

.preview-badge svg {
    width: 18px;
    height: 18px;
}

.tx-account-preview div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.preview-bal {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   9. Toast Notifications Styles
   ========================================================================== */
.toast-container {
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    background-color: var(--text-main);
    color: #FFFFFF;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast-container.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-container.success {
    background-color: var(--success-color);
}

.toast-container.error {
    background-color: var(--danger-color);
}

/* ==========================================================================
   10. Settings & Extra Visuals
   ========================================================================== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.settings-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.settings-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
