/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   mOny v3.0 - EstÃƒÂ©tica Gemas + NeÃƒÂ³n
   Inspirado en MonAi con identidad propia
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* --- VARIABLES & THEME --- */
:root {
    /* Background Colors */
    --bg-app: #000000;
    --bg-card: #1A1A1A;
    --bg-input: #2A2A2A;
    --bg-elevated: #0D0D0D;

    /* Gem Colors - Sistema de Niveles */
    --gem-ruby: #FF4757;
    /* Ã°Å¸â€Â´ Rojo - Deuda */
    --gem-topaz: #FFC107;
    /* Ã°Å¸Å¸Â¡ Amarillo - Equilibrio */
    --gem-emerald: #00D664;
    /* Ã°Å¸Å¸Â¢ Verde NeÃƒÂ³n - Ahorro (PRIMARY) */
    --gem-diamond: #E8E8E8;
    /* Ã°Å¸â€™Å½ Blanco - Libertad */

    /* Accent Colors */
    --accent: var(--gem-emerald);
    --accent-glow: rgba(0, 214, 100, 0.3);
    --danger: #FF4757;
    --danger-glow: rgba(255, 71, 87, 0.3);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --text-muted: #555555;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 0 20px var(--accent-glow);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* --- LIGHT MODE THEME --- */
[data-theme="light"] {
    /* Background Colors */
    --bg-app: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-input: #E8E8ED;
    --bg-elevated: #FFFFFF;

    /* Text Colors */
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-muted: #AEAEB2;

    /* Shadows for light mode */
    --shadow-glow: 0 0 20px rgba(0, 214, 100, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none; /* Firefox */
}

/* Ocultar barra de scroll en navegadores basados en WebKit */
*::-webkit-scrollbar {
    display: none;
}

html {
    font-size: 19px; /* ZOOM: Aumentado de 16px a 19px para mejorar legibilidad en toda la app */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- APP CONTAINER --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    container-type: inline-size;
}

/* --- DASHBOARD --- */
.dashboard {
    flex: 1;
    padding: 16px 20px;
    padding-bottom: 100px;
    overflow-y: auto;
}

/* --- TOP BAR --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 24px;
}

/* --- 3D LEVEL BADGE (Image-based with effects) --- */
.level-indicator {
    display: flex;
    align-items: center;
}

.level-badge {
    position: relative;
    width: 56px;
    height: 56px;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Custom tooltip */
.level-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.level-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.1);
}

.level-tooltip::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--bg-elevated);
}

.level-badge:hover .level-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hover effects */
.level-badge:hover {
    transform: scale(1.15) rotateY(-5deg) rotateX(5deg);
}

.level-badge:hover .badge-image {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* Click/Active effect */
.level-badge:active {
    transform: scale(0.95);
}

.level-badge:active .badge-image {
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Subtle pulse animation */
@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.level-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

.level-badge:hover {
    animation: none;
}

/* Level-specific glow on hover */
.level-alerta:hover .badge-image {
    filter: drop-shadow(0 0 15px rgba(255, 71, 87, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.level-bronce:hover .badge-image {
    filter: drop-shadow(0 0 15px rgba(255, 159, 67, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.level-plata:hover .badge-image {
    filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.level-diamante:hover .badge-image {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- BALANCE SECTION --- */
.balance-section {
    text-align: center;
    margin-bottom: 32px;
}

.balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    font-family: var(--font-display);
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
    word-break: break-word;
}

.balance-amount.negative {
    color: var(--danger);
}

.balance-amount.positive {
    color: var(--accent);
}

/* Summary Chips */
.summary-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-body);
}

.chip:hover {
    transform: scale(1.05);
}

.chip-expense {
    background: var(--danger);
    color: white;
}

.chip-expense.active {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.3);
    transform: scale(1.05);
}

.chip-income {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--bg-input);
}

.chip-income.has-income {
    background: var(--accent);
    color: white;
    border: none;
}

.chip-income.active {
    box-shadow: 0 0 0 3px rgba(0, 214, 100, 0.3);
    transform: scale(1.05);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn i {
    font-size: 0.75rem;
}

.filter-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --- CATEGORY CHART --- */
.chart-wrapper {
    position: relative;
    width: 100%;
    padding: 20px;
    overflow: visible;
}

.category-chart {
    display: flex;
    gap: 10px;
    padding: 40px 10px 30px 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.category-chart::-webkit-scrollbar {
    display: none;
}

.category-chart.grabbing {
    cursor: grabbing;
}

/* Scroll Indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator-left {
    left: 5px;
}

.scroll-indicator-right {
    right: 5px;
}

.chart-wrapper:hover .scroll-indicator {
    opacity: 0.7;
}

.scroll-indicator:hover {
    opacity: 1 !important;
    color: var(--accent);
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* 5 bars per view: (100% - 4 gaps) / 5 */
    min-width: calc((100% - 40px) / 5);
    width: calc((100% - 40px) / 5);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.chart-bar:hover {
    transform: scale(1.2) translateY(-8px);
}

/* Selected bar state */
.chart-bar.selected {
    transform: scale(1.15) translateY(-6px);
}

.chart-bar.selected .bar-container {
    box-shadow: 0 0 0 2px rgba(255, 200, 100, 0.8),
        0 4px 12px rgba(255, 200, 100, 0.3);
}

.chart-bar.selected .chart-emoji {
    transform: scale(1.2);
}

/* Adjacent bars also scale slightly for smooth dock effect */
.chart-bar:hover+.chart-bar,
.chart-bar:has(+ .chart-bar:hover) {
    transform: scale(1.05) translateY(-4px);
}

.bar-container {
    width: 100%;
    height: 150px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Taller bars on larger screens */
@media (min-width: 480px) {
    .bar-container {
        height: 180px;
    }
}

.bar-fill {
    width: 100%;
    transition: height 0.3s ease;
    min-height: 4px;
}

/* Expense bars - muted warm gradient (MonAi style) */
.bar-fill.expense {
    background: linear-gradient(to top,
            rgba(180, 90, 60, 0.9) 0%,
            rgba(210, 140, 80, 0.95) 50%,
            rgba(230, 180, 100, 1) 100%);
}

/* Income bars - muted green gradient (MonAi style) */
.bar-fill.income {
    background: linear-gradient(to top,
            rgba(40, 140, 90, 0.85) 0%,
            rgba(60, 170, 110, 0.9) 50%,
            rgba(100, 200, 140, 0.95) 100%);
}

/* Default fallback */
.bar-fill:not(.expense):not(.income) {
    background: linear-gradient(to top,
            rgba(180, 90, 60, 0.9) 0%,
            rgba(210, 140, 80, 0.95) 50%,
            rgba(230, 180, 100, 1) 100%);
}

.chart-emoji.ph {
    font-size: 1.5rem;
}

/* Evitar alerta de Google "ContraseÃƒÂ±a Comprometida" usando text-security en lugar de type="password" */
.pin-masked {
    -webkit-text-security: disc;
    font-family: text-security-disc, sans-serif; /* fallback */
}

.chart-amount {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- TRANSACTIONS LIST --- */
.transactions-section {
    flex: 1;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-header {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 0 8px 0;
    display: flex;
    justify-content: space-between;
}

.date-total {
    color: var(--text-muted);
}

/* Category Filter Indicator */
.category-filter-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-full);
    padding: 8px 12px 8px 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-attention {
    0% {
        background: var(--bg-input);
        color: var(--text-secondary);
        transform: scale(1);
    }

    50% {
        background: rgba(255, 71, 87, 0.3);
        color: white;
        transform: scale(1.05);
    }

    /* Subtle red tint */
    100% {
        background: var(--bg-input);
        color: var(--text-secondary);
        transform: scale(1);
    }
}

.btn-clear-filter {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
    /* Latido suave infinito para llamar la atenciÃƒÂ³n */
    animation: pulse-attention 3s infinite ease-in-out;
}

.btn-clear-filter:hover {
    background: var(--danger);
    color: white;
    animation: none;
    /* Stop pulse on hover */
    transform: scale(1.1);
}

/* Transaction Item Wrapper (for swipe) */
.transaction-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 2px;
    border: 1px solid var(--bg-app);
    /* Mask edges with app background color */
}

/* Swipe Delete Background */
.swipe-delete-bg {
    position: absolute;
    right: -1px;
    /* The simple fix: just hide it 1px behind */
    top: 0;
    bottom: 0;
    width: 100px;
    background: var(--bg-card);
    /* Mismo color que la tarjeta para evitar bordes visibles */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--danger);
    /* Texto rojo para mantener alerta */
    font-size: 1.25rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    z-index: 0;
}

.swipe-edit-bg {
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 100px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ff9800; /* Naranja */
    font-size: 1.25rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    z-index: 0;
}

.swipe-delete-bg span, .swipe-edit-bg span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Transaction Item */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.2s;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.transaction-item:hover {
    background: var(--bg-input);
}

.transaction-item:active {
    transform: scale(0.98);
}

/* Swiped state */
.transaction-item-wrapper.swiped .transaction-item {
    transform: translateX(-100px);
}

.tx-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-input);
    flex-shrink: 0;
}

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.tx-description {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-amount {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tx-amount .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
}

.tx-amount.expense .dot {
    background: var(--danger);
}

.tx-amount.income .dot {
    background: var(--accent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 0.9375rem;
}

/* --- BOTTOM BAR Ã¢â‚¬â€ INTEGRATED LAYOUT --- */
/* [ + ]  [ input text Ã¢â‚¬Â¦ Ã¢â€ â€™ ]  [ Ã°Å¸Å½Â¤ ]     */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 28px 16px;

    /* Fondo original */
    background: linear-gradient(to top, var(--bg-app) 70%, transparent);

    z-index: 50;

    /* Auto-hide transition Ã¢â‚¬â€ rÃƒÂ¡pida */
    transform: translateY(0);
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 1;
    will-change: transform, opacity;
}

/* Hidden state Ã¢â‚¬â€ triggered by scroll JS */
.bottom-bar.bar-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

/* + button Ã¢â‚¬â€ small circle */
.btn-action,
.btn-add-small {
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    color: var(--text-primary);
    width: 56px;  /* BOTONES MÃƒÂS GRANDES (antes 44px) */
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* ICONO MÃƒÂS GRANDE */
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-action:hover,
.btn-add-small:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Spacer (kept for any future use) */
.spacer {
    flex: 1;
}

/* Eye toggle button in header Ã¢â‚¬â€ active state (bar hidden) */
#btn-anchor.minimized {
    color: var(--accent);
    background: rgba(0, 214, 100, 0.12);
}

#btn-anchor.minimized i {
    filter: drop-shadow(0 0 4px var(--accent));
}


/* Ã¢â€â‚¬Ã¢â€â‚¬ Scroll-to-top FAB (appears when minimized + scrolled down) Ã¢â€â‚¬Ã¢â€â‚¬ */
/* Ã¢â€â‚¬Ã¢â€â‚¬ FAB wrapper Ã¢â‚¬â€ same centering as bottom-bar Ã¢â€â‚¬Ã¢â€â‚¬ */
.fab-wrapper * { pointer-events: auto; } .fab-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: 160px;
    /* tall enough for both bar-visible and hidden states */
    pointer-events: none;
    z-index: 70;
}

/* FAB default position: above the footer bar */
.fab-wrapper .btn-scroll-top {
    bottom: 115px; /* MÃƒÂ¡s espacio para no chocar con el micro */
    /* clears the bottom bar height */
}

/* When bar is hidden (minimized), FAB can sit lower */
.fab-wrapper:not(.bar-visible) .btn-scroll-top {
    bottom: 20px;
}

.fab-wrapper .btn-ai-fab {
    bottom: 165px; /* Sit above the scroll button */
}

.fab-wrapper:not(.bar-visible) .btn-ai-fab {
    bottom: 70px;
}

/* ðŸ’  BotÃ³n flotante para Chat IA ðŸ’  */
.btn-ai-fab {
    position: absolute;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 214, 100, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 71;
}

.btn-ai-fab:active {
    transform: scale(0.9);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Scroll-to-top FAB Ã¢â‚¬â€ glassmorphism, distinct from mic Ã¢â€â‚¬Ã¢â€â‚¬ */
.btn-scroll-top {
    position: absolute;
    right: 16px;

    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 214, 100, 0.55);
    background: rgba(18, 18, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45),
        0 0 0 0 rgba(0, 214, 100, 0);
    pointer-events: none;
    /* only tappable when .visible */

    /* Hidden by default */
    opacity: 0;
    transform: scale(0.6) translateY(8px);
    transition: opacity 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.22s ease;
}

/* Visible state */
.btn-scroll-top.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.btn-scroll-top:hover {
    transform: scale(1.08) translateY(0);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(0, 214, 100, 0.35);
    border-color: rgba(0, 214, 100, 0.9);
}

.btn-scroll-top:active {
    transform: scale(0.96) translateY(0);
}


/* Input wrapper Ã¢â‚¬â€ takes all remaining space */
.bottom-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.bottom-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(0, 214, 100, 0.2);
}

.bottom-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    caret-color: var(--accent);
    min-width: 0;
}

.bottom-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Send Ã¢â€ â€™ button (appears on focus) */
.bottom-input-send {
    background: var(--accent);
    border: none;
    cursor: pointer;
    color: #000;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.bottom-input-wrapper:focus-within .bottom-input-send {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.bottom-input-send:hover {
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-glow);
}

/* Mic button */
.btn-voice {
    background: var(--accent);
    border: none;
    color: white;
    width: 64px; /* BOTÃƒâ€œN MÃƒÂS GRANDE (antes 52px) */
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* ICONO MÃƒÂS GRANDE */
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.btn-voice:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-voice:active {
    transform: scale(0.95);
}

.btn-voice.listening {
    background: var(--danger);
    animation: pulse-listening 1.5s infinite;
    box-shadow: 0 0 20px var(--danger-glow);
}

@keyframes pulse-listening {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 24px 24px 24px;
    transform: translateY(0);
    transition: transform 0.3s;
    /* Hidden scrollbar Ã¢â‚¬â€ scroll still works via wheel/touch */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-sheet::-webkit-scrollbar {
    display: none;
}

/* Drag handle pill */
.modal-sheet::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-input);
}

.modal-overlay.hidden .modal-sheet {
    transform: translateY(100%);
}

.btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg-input);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-close:hover {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}


/* --- TRANSACTION FORM --- */
.dropdowns-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.dropdown-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-input);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    cursor: pointer;
}

.dropdown-btn i {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.input-large {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--bg-input);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.input-large::placeholder {
    color: var(--text-muted);
}

.input-large:focus {
    border-color: var(--accent);
}

.input-amount {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 8vw, 2.5rem);
    font-weight: 700;
}

/* Category Chips */
.category-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
    width: 100%;
}

.chip-category {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 14px 8px 6px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.chip-category span:not(.delete-custom) {
    pointer-events: none;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    flex-shrink: 0;
}

/* Etiqueta de texto dentro del chip */
.chip-label {
    overflow: hidden;
    white-space: nowrap;
    /* Corta el texto limpio si no cabe, SIN poner puntos suspensivos */
    text-overflow: clip; 
}

/* BotÃƒÂ³n de borrar integrado (la X) */
.delete-custom {
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -9px; /* Mitad de 18px para centrar perfecto */
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.delete-custom:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* Solo mostrar en hover (desktop) o si el chip estÃƒÂ¡ seleccionado */
.chip-category:hover .delete-custom,
.chip-category.selected .delete-custom {
    opacity: 1;
    pointer-events: auto;
}

.chip-category.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.chip-category.selected.expense {
    background: var(--danger);
    border-color: var(--danger);
}

.chip-add {
    padding: 10px 14px;
}

.chip-add i {
    font-size: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.btn-tag,
.btn-delete {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

.btn-delete {
    color: var(--danger);
}

.btn-save {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s;
}

.btn-save:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

/* --- MONTH PICKER --- */
.modal-picker {
    padding: 24px 20px;
}

.modal-picker h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.picker-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.picker-tab {
    flex: 1;
    padding: 12px;
    background: var(--bg-input);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.picker-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--accent);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.month-btn {
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.month-btn:hover {
    background: var(--bg-input);
}

.month-btn.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.btn-apply {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- CONFIRMATION MODALS --- */
.modal-confirm {
    width: 90%;
    max-width: 320px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    margin: auto;
}

.modal-confirm h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-confirm p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.btn-confirm-delete {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    color: var(--danger);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.btn-cancel {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
}

/* --- CONSCIENCE MODAL --- */
.modal-conscience {
    border: 2px solid var(--gem-topaz);
}

.conscience-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.conscience-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
}

.btn-confirm-conscience {
    width: 100%;
    padding: 14px;
    background: var(--gem-topaz);
    border: none;
    border-radius: var(--radius-md);
    color: black;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

/* --- LEVEL UP MODAL --- */
.modal-levelup {
    width: 90%;
    max-width: 320px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
    margin: auto;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-glow);
}

.levelup-gem {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

/* Level up badge container */
.levelup-badge-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.levelup-badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: levelupBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.levelup-sparkles {
    position: absolute;
    font-size: 2rem;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.levelup-sparkles::before,
.levelup-sparkles::after {
    content: '\2728';
    position: absolute;
}

.levelup-sparkles::before {
    top: -20px;
    left: -40px;
    animation: sparkleFloat 2s ease-in-out infinite 0.3s;
}

.levelup-sparkles::after {
    top: -20px;
    right: -40px;
    animation: sparkleFloat 2s ease-in-out infinite 0.6s;
}

@keyframes levelupBounce {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-5px);
    }
}

@keyframes sparkleFloat {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    50% {
        opacity: 0.6;
        transform: translateY(-10px) rotate(10deg);
    }
}

/* Level-specific glow in modal */
.levelup-badge-container.level-bronce .levelup-badge-img {
    filter: drop-shadow(0 0 20px rgba(255, 159, 67, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.levelup-badge-container.level-plata .levelup-badge-img {
    filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.levelup-badge-container.level-diamante .levelup-badge-img {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.modal-levelup h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.modal-levelup p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.btn-celebrate {
    padding: 14px 32px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

/* --- UTILITY CLASSES --- */
.hidden {
    display: none !important;
}

/* --- RESPONSIVE --- */
@media (min-width: 481px) {
    .app-container {
        border-left: 1px solid var(--bg-card);
        border-right: 1px solid var(--bg-card);
    }
}

/* Safe area for notch devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-bar {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   ONBOARDING SCREEN (BLOQUE 2)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.onboarding {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    overflow: hidden;

    /* Force dark mode for onboarding Ã¢â‚¬â€ always */
    --bg-app: #000000;
    --bg-primary: #000000;
    --bg-secondary: #121212;
    --bg-card: #1a1a2e;
    --bg-input: #2a2a3e;
    --text-primary: #FFFFFF;
    --text-secondary: #94a3b8;
    --accent: #00D664;
}

.onboarding.hidden {
    display: none !important;
}

/* --- STEP TRANSITIONS --- */
.onboarding-step { position: absolute; inset: 0; display: flex; justify-content: center; opacity: 0; pointer-events: none; transition: transform 0.4s ease, opacity 0.4s ease; overflow-y: auto; padding: 8px 0 60px; scrollbar-width: none; -ms-overflow-style: none; }
.onboarding-step::-webkit-scrollbar { display: none; }

.onboarding-step.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.onboarding-step.exit-left {
    opacity: 0;
    transform: translateX(-80px);
    pointer-events: none;
}

.onboarding-content {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    text-align: center;
    margin: auto;
}

/* --- WELCOME LOGO --- */
.onboarding-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.onboarding-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

.onboarding-logo {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    position: relative;
    z-index: 1;
}

.logo-m {
    color: var(--accent);
}

.logo-ony {
    color: var(--text-primary);
}

.logo-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 214, 100, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.8;
    }
}

/* --- TITLES & TEXT --- */
.onboarding-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.onboarding-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: justify;
}

/* --- HEADER (Back + Step Label) --- */
.onboarding-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    text-align: left;
}

.onboarding-step-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-onboarding-back {
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-onboarding-back:hover {
    background: var(--bg-input);
}

/* --- PRIMARY CTA BUTTON --- */
.btn-onboarding-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-onboarding-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 214, 100, 0.3);
}

.btn-onboarding-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-glow {
    animation: btn-glow-pulse 2s ease-in-out infinite;
}

@keyframes btn-glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 214, 100, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 214, 100, 0.45);
    }
}

/* --- PROFILE GRID --- */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 0;
    text-align: center;
}

.profile-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 12px 10px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 214, 100, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-card:hover {
    border-color: rgba(0, 214, 100, 0.4);
    transform: translateY(-3px);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:active {
    transform: translateY(0) scale(0.97);
}

.profile-card.selected {
    border-color: var(--accent);
    background: rgba(0, 214, 100, 0.08);
    box-shadow: 0 0 24px rgba(0, 214, 100, 0.15),
        inset 0 0 20px rgba(0, 214, 100, 0.05);
}

.profile-card.selected::before {
    opacity: 1;
}

.profile-emoji {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 3px;
    transition: transform 0.3s;
}

.profile-card.selected .profile-emoji {
    transform: scale(1.15);
}

.profile-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.profile-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: block;
}

/* --- ONBOARDING FORM --- */
.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
    text-align: left;
}

.onboarding-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.onboarding-field input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.onboarding-field input::placeholder {
    color: var(--text-muted);
}

.onboarding-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
}

/* Hide number spinners (arrows) */
.onboarding-field input[type="number"]::-webkit-inner-spin-button,
.onboarding-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.onboarding-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.onboarding-field input.error {
    border-color: var(--danger);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    padding-left: 40px;
    padding-right: 80px;
}

.input-prefix {
    position: absolute;
    left: 14px;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-display);
    z-index: 1;
    pointer-events: none;
}

.input-suffix {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    pointer-events: none;
}

/* --- DONE / CELEBRATION --- */
.onboarding-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.done-emoji {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: bounce-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bounce-in {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.onboarding-done .onboarding-title #done-name {
    color: var(--accent);
}

/* --- PROGRESS DOTS --- */
.onboarding-dots {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 0;
    z-index: 10000;
}

.onboarding-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.onboarding-dots .dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   VOICE CONFIRM BAR (Layer 3 Ã¢â‚¬â€ Quick Save)
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.voice-confirm-bar {
    position: fixed;
    bottom: 72px;
    /* sits just above the bottom bar */
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 90;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 214, 100, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 16px;

    /* Hidden by default */
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.voice-confirm-bar.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.vcb-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.vcb-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.vcb-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vcb-cat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 2px;
}

.vcb-cat-emoji {
    font-style: normal;
    font-size: 0.9rem;
}

.vcb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.vcb-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.vcb-btn:active {
    transform: scale(0.9);
}

.vcb-confirm {
    background: var(--accent);
    color: #000;
}

.vcb-edit {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.vcb-cancel {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   SETTINGS MODAL
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-main);
}

/* Profile Card en ConfiguraciÃ³n */
.profile-card {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid rgba(0, 214, 100, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 16px;
    box-shadow: 0 0 15px rgba(0, 214, 100, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-email {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.profile-status {
    font-size: 0.85rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.settings-section {
    margin-bottom: 16px;
}

.settings-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.settings-section-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 8px 0 16px 0; /* MÃƒÂ¡s espacio arriba y abajo */
    line-height: 1.4;
    padding: 0 4px;
}

.settings-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--bg-secondary);
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-bottom: 8px;
}

.settings-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.settings-action-btn i {
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.btn-danger-soft {
    border-color: rgba(255, 71, 87, 0.25);
}

.btn-danger-soft i {
    color: var(--danger) !important;
}

.btn-danger-soft:hover {
    background: rgba(255, 71, 87, 0.08) !important;
}

/* Keyword list (learned mappings) */
.keyword-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.keyword-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
}

.keyword-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}

.keyword-item-word {
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
}

.keyword-item-mappings {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 2;
}

.keyword-mapping-chip {
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 214, 100, 0.12);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(0, 214, 100, 0.2);
}

.keyword-item-del {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 8px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.keyword-item-del:hover {
    background: rgba(255, 71, 87, 0.25);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Hide native number input spinners Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Dictionary accordion Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.settings-dict-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-align: left;
    letter-spacing: 0.01em;
    transition: background 0.15s ease;
}

.settings-dict-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dict-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    flex: 1;
}

.dict-toggle-label i {
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 1;
}

.dict-toggle-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dict-toggle-chevron {
    font-size: 0.75rem;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.settings-dict-toggle.open .dict-toggle-chevron {
    transform: rotate(-180deg);
}

/* Accordion body Ã¢â‚¬â€ collapsed by default */
.settings-dict-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease;
    opacity: 0;
    padding: 0 4px; /* Respiro lateral interno */
}

.settings-dict-body.open {
    max-height: 600px;
    opacity: 1;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   BUDGET PROGRESS BARS Ã¢â‚¬â€ Dashboard
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.budget-section {
    padding: 0 16px 8px;
}

.budget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.15s ease;
}

.budget-header:hover {
    opacity: 0.8;
}

.budget-chevron {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.budget-header.open .budget-chevron {
    transform: rotate(180deg);
}

.budget-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.budget-title i {
    font-size: 1rem;
    color: var(--accent);
}

.budget-month-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* Collapsible content */
.budget-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
    margin-top: 0;
}

.budget-collapsible.open {
    max-height: 2000px;
    margin-top: 12px;
}

.budget-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Eye toggle button in Settings */
.settings-budget-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.btn-toggle-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.btn-toggle-eye:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-toggle-eye.off {
    color: var(--text-muted);
}

/* Individual budget bar */
.budget-item {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: transform 0.15s ease;
}

.budget-item:active {
    transform: scale(0.98);
}

.budget-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.budget-item-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.budget-item-label .emoji {
    font-size: 0.95rem;
}

.budget-item-amounts {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
}

.budget-item-amounts .spent {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Progress bar track */
.budget-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
    min-width: 2px;
}

/* State: OK (< 80%) */
.budget-bar-fill.state-ok {
    background: var(--accent);
}

/* State: Warning (80-99%) */
.budget-bar-fill.state-warning {
    background: var(--warning, #FFC107);
}

/* State: Over (>= 100%) */
.budget-bar-fill.state-over {
    background: var(--danger);
}

/* Percentage badge */
.budget-item-pct {
    font-size: 0.68rem;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1;
}

.budget-item-pct.state-ok {
    color: var(--accent);
    background: rgba(0, 214, 100, 0.1);
}

.budget-item-pct.state-warning {
    color: var(--warning, #FFC107);
    background: rgba(255, 193, 7, 0.1);
}

.budget-item-pct.state-over {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.1);
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   BUDGET FORM Ã¢â‚¬â€ Settings (Modern)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.budget-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.budget-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease;
}

.budget-form-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent);
    transform: translateX(2px);
}

.budget-form-row .emoji {
    font-size: 1rem;
    flex-shrink: 0;
}

.budget-form-row .label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.budget-form-row input {
    width: 68px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-family: 'Space Grotesk', monospace;
    color: var(--text-main);
    text-align: center;
    transition: border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.2s ease;
    appearance: textfield;
    -moz-appearance: textfield;
}

.budget-form-row input::-webkit-inner-spin-button,
.budget-form-row input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.budget-form-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 214, 100, 0.15);
    background: rgba(0, 214, 100, 0.04);
    outline: none;
}

.budget-form-row input::placeholder {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Highlight rows with active budgets */
.budget-form-row:has(input:not(:placeholder-shown)) {
    border-left-color: rgba(0, 214, 100, 0.3);
}

/* Accent soft button (save budgets) */
.btn-accent-soft {
    background: rgba(0, 214, 100, 0.08) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(0, 214, 100, 0.2);
    transition: all 0.25s ease;
}

.btn-accent-soft:hover {
    background: rgba(0, 214, 100, 0.15) !important;
    border-color: rgba(0, 214, 100, 0.4);
    box-shadow: 0 2px 12px rgba(0, 214, 100, 0.12);
}

/* Budget toast alert */
.budget-toast {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.95);
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.budget-toast.show {
    top: 24px;
}

.budget-toast.danger {
    background: rgba(255, 71, 87, 0.95);
    color: #fff;
}

/* --- PIN OVERLAY --- */
/* PROHIBIDO BORRAR O ALTERAR: Los tamaÃ±os de fuente (64px en botones), el max-height de media query (con min-width) y los gaps/paddings estÃ¡n meticulosamente calculados y aprobados por el usuario para encajar perfecto en PC y Celular sin scroll. */
.pin-overlay { z-index: 10000; background: var(--bg-app); display: block; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; text-align: center; }
.pin-overlay::-webkit-scrollbar { display: none; }

.pin-container { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: max(30px, 15vh) 20px 10px; margin: 0 auto; }

.pin-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    text-align: center;
}

.pin-title {
    font-size: 1.25rem;
    margin-bottom: 2px;
    text-align: center;
}

.pin-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.pin-dots {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-input);
    transition: all 0.2s ease;
}

.pin-dot.filled {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.2);
}

.pin-dot.error {
    background: var(--danger);
    border-color: var(--danger);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

@media (max-height: 700px) and (min-width: 500px) {
    .pin-container { padding-top: max(5px, 2vh); padding-bottom: 0; gap: 4px; }
    .pin-logo { margin-bottom: 0px; }
    .pin-title { margin-bottom: 0px; }
    .pin-dots { margin-top: 4px; margin-bottom: 4px; }
    .pin-keypad { gap: 10px; }
}

.pin-key {
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    color: var(--text-primary);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 auto;
}

.pin-key:hover {
    background: var(--bg-input);
    border-color: var(--text-muted);
}

.pin-key:active {
    transform: scale(0.9);
    background: var(--accent);
    color: #000;
}

.pin-key-empty {
    background: none;
    border: none;
    pointer-events: none;
}

.pin-key-action {
    background: none;
    border: none;
    font-size: 1.8rem;
}

.pin-key-action:hover {
    background: none;
    color: var(--accent);
}

.pin-footer {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}

/* --- SETTINGS PIN ELEMENTS --- */
.settings-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.settings-info {
    display: flex;
    flex-direction: column;
}

.settings-label {
    font-size: 0.9375rem;
    font-weight: 500;
}

.settings-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.settings-select {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 214, 100, 0.2);
}

.settings-select option {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.btn-toggle-switch {
    width: 48px;
    height: 24px;
    background: var(--bg-card);
    border: 1px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle-switch.active {
    background: var(--accent);
    border-color: var(--accent);
}

.switch-dot {
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-toggle-switch.active .switch-dot {
    transform: translateX(24px);
    background: #000;
}

.settings-action-btn.hidden {
    display: none;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   AUTH SCREEN Ã¢â‚¬â€ Login / Register (Bloque 13)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.auth-screen { position: fixed; inset: 0; z-index: 200; display: block; background: #000; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }

.auth-screen::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.auth-bg-glow {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center,
        rgba(0, 214, 100, 0.12) 0%,
        transparent 70%);
    pointer-events: none;
    animation: authGlowPulse 4s ease-in-out infinite;
}

@keyframes authGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.auth-container { width: 100%; max-width: 380px; padding: 12px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; margin: 0 auto; animation: authFadeIn 0.5s ease; }

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo-wrapper {
    position: relative;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -2px;
    position: relative;
    z-index: 2; /* Encima del glow */
}

.auth-logo .logo-m { color: var(--accent); }
.auth-logo .logo-ony { color: #FFFFFF; }

.auth-logo-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 214, 100, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.auth-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
}

.auth-tabs {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 2px;
    margin-bottom: 8px;
    width: 100%;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(0, 214, 100, 0.4);
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.auth-field label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input::placeholder { color: var(--text-muted); }
.auth-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 214, 100, 0.15);
}

.auth-password-wrapper { position: relative; }
.auth-password-wrapper input { padding-right: 48px; }

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}
.btn-toggle-password:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); }

.auth-error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b78;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.875rem;
    line-height: 1.4;
    animation: authFadeIn 0.2s ease;
}

.btn-auth-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 24px rgba(0, 214, 100, 0.3);
    margin-top: 8px;
}
.btn-auth-primary:hover {
    background: #00f073;
    box-shadow: 0 0 32px rgba(0, 214, 100, 0.5);
    transform: translateY(-1px);
}
.btn-auth-primary:active { transform: translateY(0); }
.btn-auth-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 214, 100, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    transition: background 0.3s;
}
.auth-status-dot.connected {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 214, 100, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}
.auth-status-dot.error { background: var(--danger); }

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-height: 650px) {
    .auth-logo { font-size: 2.2rem; margin-bottom: 4px; line-height: 1; }
    .auth-container { padding: 12px 20px; max-height: 100vh; }
    .auth-tagline { margin-bottom: 6px; font-size: 0.85rem; }
    .auth-form { gap: 2px; }
    .auth-field { gap: 2px; }
    .auth-field input { padding: 8px 12px; }
    .btn-auth-primary { padding: 10px 24px; font-size: 0.9375rem; }
    .g_id_signin { margin-top: 12px !important; margin-bottom: 4px !important; }
    .auth-footer { margin-top: 16px; }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   ACCOUNT MODAL Ã¢â‚¬â€ Mi Cuenta
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

.account-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 214, 100, 0.05);
    border: 1px solid rgba(0, 214, 100, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0, 214, 100, 0.3);
}

.account-details { min-width: 0; }
.account-email {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}
.account-status {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 2px;
}

.account-telegram-form {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.account-telegram-form code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--accent);
}

 / *   G o o g l e   A u t h   S t y l e s   * / 
 . a u t h - s e p a r a t o r   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         t e x t - a l i g n :   c e n t e r ; 
         c o l o r :   v a r ( - - t e x t - t e r t i a r y ) ; 
         m a r g i n :   1 . 5 r e m   0 ; 
         f o n t - s i z e :   0 . 8 5 r e m ; 
 } 
 . a u t h - s e p a r a t o r : : b e f o r e , 
 . a u t h - s e p a r a t o r : : a f t e r   { 
         c o n t e n t :   ' ' ; 
         f l e x :   1 ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ; 
 } 
 . a u t h - s e p a r a t o r   s p a n   { 
         p a d d i n g :   0   1 0 p x ; 
 } 
 . a u t h - m o d a l   { 
         m a x - w i d t h :   4 0 0 p x ; 
 } 
 
 
 . t x - t a b . a c t i v e [ d a t a - t y p e = ' G A S T O ' ]   {   b a c k g r o u n d :   v a r ( - - d a n g e r ) ;   c o l o r :   # f f f ;   b o x - s h a d o w :   0   0   1 6 p x   r g b a ( 2 5 5 ,   5 9 ,   9 2 ,   0 . 4 ) ;   f o n t - w e i g h t :   6 0 0 ;   }   . t x - t a b . a c t i v e [ d a t a - t y p e = ' I N G R E S O ' ]   {   b a c k g r o u n d :   v a r ( - - a c c e n t ) ;   c o l o r :   # 0 0 0 ;   b o x - s h a d o w :   0   0   1 6 p x   r g b a ( 0 ,   2 1 4 ,   1 0 0 ,   0 . 4 ) ;   f o n t - w e i g h t :   6 0 0 ;   } 
 
 



















/* Profile Card en ConfiguraciÃ³n */
.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid rgba(0, 214, 100, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-avatar-container {
    position: relative;
    width: 56px;
    height: 56px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    background: var(--gem-emerald);
    color: var(--bg-app);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 214, 100, 0.3);
    background-size: cover;
    background-position: center;
}

.btn-avatar-edit {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.profile-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.profile-email {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.profile-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.profile-status.connected {
    color: var(--gem-emerald);
    font-weight: 600;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   mOnyIA CHAT â€” Estilo Meta AI v2
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Modal container */
.chat-modal-content {
    background: #0A0A0A;
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* â”€â”€ Header â”€â”€ */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: #111111;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 10;
}

.chat-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.chat-back-btn:hover { color: var(--accent); }

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D664 0%, #00A84F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 214, 100, 0.4);
}

.chat-header-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #F0F0F0;
    line-height: 1.2;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-right: 4px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-status {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.chat-header-actions {
    display: flex;
    gap: 4px;
}

.chat-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.chat-action-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #F0F0F0;
}

/* â”€â”€ Messages Area â”€â”€ */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #0A0A0A;
    scrollbar-width: none;
}

.chat-date-divider {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
    position: relative;
}

.chat-date-divider::before,
.chat-date-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.chat-date-divider::before { left: 0; }
.chat-date-divider::after { right: 0; }

/* Bubble wrapper */
.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeInBubble 0.2s ease;
    margin-bottom: 4px;
}

@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bubble-content {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.94rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.bubble-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
    padding: 0 4px;
}

/* Bot bubble */
.chat-bubble-bot {
    align-self: flex-start;
}

.chat-bubble-bot .bubble-content {
    background: #1C1C1C;
    color: #E8E8E8;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}

.chat-bubble-bot .bubble-time {
    align-self: flex-start;
}

/* User bubble */
.chat-bubble-user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble-user .bubble-content {
    background: var(--accent);
    color: #000;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-bubble-user .bubble-time {
    align-self: flex-end;
}

/* Image bubble */
.chat-bubble-img {
    max-width: 240px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.chat-bubble-img img {
    width: 100%;
    display: block;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    align-items: center;
    background: #1C1C1C;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.06);
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* â”€â”€ Image Preview â”€â”€ */
.chat-image-preview {
    position: relative;
    padding: 8px 16px;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.chat-image-preview img {
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.chat-preview-remove {
    position: absolute;
    top: 4px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* â”€â”€ Input Area â”€â”€ */
.chat-input-area {
    background: #111111;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-bottom: env(safe-area-inset-bottom, 8px);
    flex-shrink: 0;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.chat-input {
    flex: 1;
    background: #1C1C1C;
    border: 1px solid rgba(255,255,255,0.08);
    color: #F0F0F0;
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-input::placeholder {
    color: #555;
}

/* Attach / Camera / Send buttons */
.chat-attach-btn,
.chat-quick-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1C1C1C;
    border: 1px solid rgba(255,255,255,0.08);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.chat-attach-btn:hover,
.chat-quick-btn:hover {
    background: #2A2A2A;
    color: #E0E0E0;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.2s;
    box-shadow: 0 2px 12px rgba(0, 214, 100, 0.35);
}

.chat-send-btn:active { transform: scale(0.9); }
.chat-send-btn.has-text {
    /* When user is typing, switch icon from mic to send */
    background: var(--accent);
}
.chat-send-btn:disabled {
    background: #2A2A2A;
    color: #555;
    box-shadow: none;
}

/* â”€â”€ Attach Menu (popup) â”€â”€ */
.chat-attach-menu {
    display: flex;
    gap: 24px;
    padding: 16px 20px 8px;
    justify-content: flex-start;
    animation: fadeInBubble 0.2s ease;
}

.attach-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #CCC;
    font-size: 0.78rem;
    transition: transform 0.2s;
}

.attach-option:active { transform: scale(0.9); }

.attach-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.attach-gallery-icon { background: #1A3A2A; color: #4ADE80; }
.attach-camera-icon  { background: #3A1A1A; color: #F87171; }
.attach-doc-icon     { background: #1A1A3A; color: #818CF8; }
