:root {
    --primary: #2b8cee;
    --primary-gradient: linear-gradient(135deg, #2b8cee 0%, #1a6ab5 100%);
    --primary-light: #e9f3fe;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --background: #f0f2f5;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.8);
    --text-main: #1c1c1e;
    --text-muted: #6e6e73;
    --border: #d2d2d7;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-premium: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: #000;
    color: var(--text-main);
    line-height: 1.6;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    max-width: 430px;
    background: var(--background);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Status Bar Simulator */
.status-bar {
    padding: 14px 24px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    z-index: 100;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* Main Content */
main {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scroll-behavior: smooth;
    position: relative;
}

main::-webkit-scrollbar {
    width: 0px;
}

/* Screen Layouts */
.screen-fade {
    padding: 24px;
    padding-bottom: 120px;
    animation: screenEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes screenEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.screen-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screen-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.screen-header p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(43, 140, 238, 0.3);
}

.btn-primary:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
}

.btn-danger {
    background: #fff0f0;
    color: var(--danger);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(43, 140, 238, 0.4);
    cursor: pointer;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-card .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
}

/* Navigation */
#bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#bottom-nav.hidden {
    transform: translateY(100%);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 60px;
}

.nav-item .icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-fab-container {
    position: relative;
    top: -25px;
}

.nav-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(43, 140, 238, 0.4);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-fab:active {
    transform: scale(0.9);
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-main);
    background: #fdfdfd;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(43, 140, 238, 0.1);
}

/* Login Screen */
.login-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #f0f2f5 0%, #ffffff 100%);
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 12px 24px rgba(43, 140, 238, 0.3);
}

/* List Items */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.list-item:active {
    background: var(--primary-light);
}

.list-item .info h4 {
    font-weight: 800;
    font-size: 16px;
}

.list-item .info p {
    font-size: 13px;
    color: var(--text-muted);
}

.tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tag-success {
    background: #e9fbf0;
    color: var(--success);
}

.tag-warning {
    background: #fff6e9;
    color: var(--warning);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Loader Override */
.loader {
    border: 3px solid var(--primary-light);
    border-top: 3px solid var(--primary);
}

/* --- Stitch Specific Styles --- */

.stitch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.stitch-header .user-info h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.stitch-header .user-info .role {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 4px 0;
}

.stitch-header .user-info .location {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stitch-header .user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.stitch-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.stitch-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stitch-card:active {
    transform: scale(0.98);
}

.stitch-card .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stitch-card .value-large {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stitch-card .value-large.small-text {
    font-size: 20px;
}

.stitch-card .trend {
    font-size: 11px;
    font-weight: 700;
}

.stitch-card .trend.positive {
    color: var(--success);
}

.stitch-card.highlighting {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stitch-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stitch-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.stitch-item:hover {
    background: var(--bg-light);
}

.stitch-item .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
}

.stitch-item .icon-box.logout {
    background: #fee2e2;
    color: #ef4444;
}

.stitch-item .content h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.stitch-item .arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 18px;
}

/* --- Simulator Premium Design --- */

.simulator-screen {
    background-color: #f8fbff;
    min-height: 100%;
}

.simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 25px;
}

.simulator-header h2 {
    font-size: 19px;
    font-weight: 700;
    color: #333;
}

.back-btn,
.info-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-section {
    margin-bottom: 35px;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #93b3d9;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.amount-input-container {
    background: white;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.currency-symbol {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
}

.large-amount-input {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    border: none;
    padding: 0;
    width: 100%;
    background: transparent;
    outline: none;
}

/* Custom Select */
.select-wrapper {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.premium-select {
    width: 100%;
    padding: 18px 25px;
    background: transparent;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    appearance: none;
    outline: none;
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
}

/* Frequency Toggle */
.frequency-toggle {
    background: #edf2f7;
    padding: 6px;
    border-radius: 14px;
    display: flex;
    gap: 4px;
}

.freq-btn {
    flex: 1;
    padding: 12px 6px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.freq-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Slider Customization */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.term-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

.premium-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(43, 140, 238, 0.3);
}

/* Results Card */
.results-card {
    background: #eef7ff;
    border: 1px solid #c9e4ff;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.quota-container {
    text-align: center;
    margin-bottom: 30px;
}

.result-label {
    font-size: 13px;
    font-weight: 700;
    color: #6da5e2;
    letter-spacing: 0.5px;
}

.quota-value {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.quota-value .symbol {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
}

.quota-value #sim-quota {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 25px;
    border-top: 1px solid rgba(109, 165, 226, 0.2);
}

.result-box {
    display: flex;
    flex-direction: column;
}

.box-label {
    font-size: 10px;
    font-weight: 700;
    color: #94b9e2;
    margin-bottom: 5px;
}

.box-value {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
}

.box-value.success {
    color: #10b981;
}

.watermark-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.5;
    pointer-events: none;
}

/* Create button from sim */
.create-loan-btn {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* FAB Label */
.fab-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 5px;
    text-align: center;
    display: block;
}

.nav-fab-container.active .fab-label {
    opacity: 1;
}

.nav-fab-container:not(.active) .fab-label {
    color: #94a3b8;
}

/* --- Cobros Diarios (Loans) Screen --- */

.cobros-screen {
    background-color: #f8fbff;
    padding-top: 10px;
}

.cobros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cobros-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b3c;
}

.menu-btn,
.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.summary-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.summary-label {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.summary-amount-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.summary-amount-row h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
}

.trend-badge {
    background: #e6fffa;
    color: #38b2ac;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -10px;
}

.avatar-count {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9f5ff;
    color: var(--primary);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.reports-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.reports-link span {
    margin-left: 4px;
}

.summary-watermark {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

/* Search */
.search-container {
    position: relative;
    margin-bottom: 25px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-container input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: none;
    background: #f1f4f8;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
}

/* Chips */
.filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 10px 18px;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(43, 140, 238, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.green {
    background: #48bb78;
}

.dot.yellow {
    background: #ecc94b;
}

.dot.red {
    background: #f56565;
}

/* List */
.section-title-small {
    font-size: 12px;
    font-weight: 800;
    color: #a0aec0;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.cobros-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cobro-item {
    background: white;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.name-row h3 {
    font-size: 17px;
    font-weight: 800;
    color: #2d3748;
}

.status-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.item-date {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.item-installment {
    font-size: 12px;
    color: #a0aec0;
}

.amount-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-amount {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn.call {
    background: #ebf8ff;
    color: #3182ce;
}

.action-btn.whatsapp {
    background: #e6fffa;
    color: #38b2ac;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 15px;
}

.tag-success-light {
    background: #c6f6d5;
    color: #2f855a;
}

.tag-warning-light {
    background: #feebc8;
    color: #9c4221;
}

.tag-danger-light {
    background: #fed7d7;
    color: #9b2c2c;
}

.tag-neutral {
    background: #edf2f7;
    color: #4a5568;
}

/* --- Application Screen Styles --- */

.application-screen {
    background: #f8fbff;
    min-height: 100%;
}

.progress-section {
    padding: 10px 0 25px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.progress-text span:last-child {
    color: #4a5568;
}

.progress-bar-container {
    height: 8px;
    background: #eef5ff;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.form-section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-header .icon {
    font-size: 20px;
    color: var(--primary);
}

.section-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b3c;
    margin: 0;
}

.input-group-premium {
    margin-bottom: 22px;
}

.input-group-premium label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 10px;
}

.input-group-premium input {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 500;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s;
}

.input-group-premium input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 55px;
}

.action-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
}

.hint {
    font-size: 12px;
    color: #a1aebe;
    margin-top: -10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.upload-card {
    background: #f0f7ff;
    border: 1.5px dashed #c0d8ff;
    border-radius: 16px;
    padding: 22px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-card:active {
    background: #e1efff;
}

.upload-icon {
    font-size: 26px;
    color: var(--primary);
}

.upload-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    letter-spacing: 0.5px;
}

.next-step-btn {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.app-footer {
    text-align: center;
    padding: 30px 0;
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e0;
    letter-spacing: 1px;
}

/* --- Step 3 Specific Styles --- */

.card-outline {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    position: relative;
    background: white;
}

.card-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    color: #a0aec0;
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
}

.type-btn {
    border: none;
    padding: 12px 5px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Side Menu Drawer */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.3s;
}

.side-menu.active {
    visibility: visible;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-menu.active .menu-overlay {
    opacity: 1;
}

.menu-content {
    position: absolute;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.side-menu.active .menu-content {
    left: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.menu-logo {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
}

.menu-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.close-menu {
    margin-left: auto;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item-link .icon {
    font-size: 20px;
}

.menu-item-link:active,
.menu-item-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Status Tags */
.tag-success-light {
    background: #e9fbf0;
    color: #10b981;
}

.tag-warning-light {
    background: #fff6e9;
    color: #f59e0b;
}

.tag-danger-light {
    background: #fff0f0;
    color: #ef4444;
}

.tag-neutral {
    background: #f1f5f9;
    color: #64748b;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- Client Module Enhancements --- */

.summary-screen,
.details-screen {
    background: #f8fbff;
}

.payments-list {
    margin-top: 10px;
}

.share-whatsapp {
    transition: transform 0.2s;
}

.share-whatsapp:active {
    transform: scale(0.95);
    background: #e6fffa !important;
}

.share-email {
    transition: transform 0.2s;
}

.share-email:active {
    transform: scale(0.95);
    background: #f1f5f9 !important;
}

/* Animations for new screens */
.summary-screen.screen-fade,
.details-screen.screen-fade {
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Client Card Hover/Active state */
.clients-list .card {
    transition: all 0.3s ease;
}

.clients-list .card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ======================================================
   STEP 2 – DATOS DEL PRESTATARIO (nuevos estilos)
   ====================================================== */

/* Campo obligatorio asterisco */
.req {
    color: var(--danger);
    font-size: 13px;
    margin-left: 2px;
}

/* Icono de sección dentro de form-section */
.section-header .icon svg {
    display: block;
}

/* Sección separadora visual */
.form-section+.form-section {
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
}

/* Select dentro de input-group-premium */
.input-group-premium .select-wrapper {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    padding: 2px;
}

.input-group-premium .select-wrapper .premium-select {
    padding: 16px 44px 16px 18px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* Wrapper de input con prefijo de moneda */
.input-currency-wrap {
    position: relative;
}

.input-currency-wrap input {
    width: 100%;
    padding: 18px 18px 18px 34px !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-main);
}

.input-currency-wrap input:focus {
    border-color: var(--primary);
}

.currency-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    pointer-events: none;
}

/* Date input nativo se adapta al estilo premium */
.input-group-premium input[type="date"] {
    color: #333;
    cursor: pointer;
}

/* Reducir padding inferior de form-section para formularios largos */
.form-section {
    margin-bottom: 28px;
}

/* Realzar sección header del formulario */
.section-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
}