/* ============================================================
   Colorful Visual Style Guide — CSS
   Brickora Capital · appmobile/public/assets/css/skins/colorful/app.css
   ============================================================ */

:root {
    /* ── Primary ──────────────────────────────────────── */
    --c-primary:        #7C3AED;
    --c-primary-dark:   #6D28D9;
    --c-primary-light:  #8B5CF6;
    --c-primary-50:     #F5F3FF;
    --c-primary-100:    #EDE9FE;

    /* ── Accent ───────────────────────────────────────── */
    --c-accent:         #A855F7;
    --c-accent-dark:    #9333EA;

    /* ── Backgrounds ──────────────────────────────────── */
    --c-bg:             #F5F3FF;
    --c-surface:        #FFFFFF;

    /* ── Text ─────────────────────────────────────────── */
    --c-text:           #1E1B4B;
    --c-text-secondary: #6B7280;
    --c-text-muted:     #94A3B8;

    /* ── Shadows ──────────────────────────────────────── */
    --c-shadow-color:   rgba(124, 58, 237, 0.14);
    --c-shadow-sm:      0 2px 12px var(--c-shadow-color);
    --c-shadow-md:      0 4px 24px var(--c-shadow-color);
    --c-shadow-lg:      0 8px 48px var(--c-shadow-color);

    /* ── Navigation flotante ──────────────────────────── */
    --c-nav-bg:             #2D1B69;
    --c-nav-active:         #7C3AED;
    --c-nav-icon-active:    #FFFFFF;
    --c-nav-icon-inactive:  rgba(255, 255, 255, 0.45);
    --c-nav-radius:         28px;

    /* ── Border radii ─────────────────────────────────── */
    --c-radius-sm:  10px;
    --c-radius-md:  16px;
    --c-radius-lg:  24px;
    --c-radius-xl:  32px;

    /* ── Inputs ───────────────────────────────────────── */
    --c-input-bg:       #F5F3FF;
    --c-input-border:   #DDD6FE;
    --c-input-radius:   14px;
}

body { background-color: var(--c-bg); }

/* ============================================================
   Floating Navigation Bar
   ============================================================ */

.colorful-nav {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: var(--c-nav-bg);
    border-radius: var(--c-nav-radius);
    padding: 6px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 40px rgba(45, 27, 105, 0.5);
    z-index: 100;
}

.colorful-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.colorful-nav-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    position: relative;
    transition: background 0.2s ease;
}

.colorful-nav-item.active .colorful-nav-icon-wrap {
    background: var(--c-nav-active);
}

.colorful-nav-item .material-icons-outlined {
    font-size: 22px;
    color: var(--c-nav-icon-inactive);
    transition: color 0.2s ease;
}

.colorful-nav-item.active .material-icons-outlined {
    color: var(--c-nav-icon-active);
}

.colorful-nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--c-nav-icon-inactive);
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
}

.colorful-nav-item.active .colorful-nav-label {
    color: var(--c-nav-icon-active);
}

.colorful-nav-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    background: #EF4444;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid var(--c-nav-bg);
}

/* Spacer to push content above the floating nav */
.colorful-nav-spacer {
    height: calc(100px + env(safe-area-inset-bottom));
}

/* ============================================================
   Auth — Welcome (Colorful)
   ============================================================ */

.cw-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-accent) 100%);
    z-index: 0;
}

.cw-screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    padding-top: calc(16px + env(safe-area-inset-top));
}

.cw-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cw-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cw-brand-name {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1;
}

.cw-brand-tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 2px;
}

.cw-country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 8px 14px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.cw-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
}

.cw-headline {
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 14px 0;
}

.cw-subheadline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.cw-stats {
    display: flex;
    gap: 28px;
}

.cw-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.cw-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    font-weight: 500;
}

.cw-card {
    background: white;
    border-radius: 32px 32px 0 0;
    padding: 32px 24px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cw-card-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-align: center;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.cw-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: var(--c-primary);
    color: white;
    border: none;
    border-radius: var(--c-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--c-shadow-md);
    transition: opacity 0.2s, transform 0.1s;
    font-family: inherit;
}

.cw-btn-primary:active { transform: scale(0.98); opacity: 0.9; }

.cw-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
    border-radius: var(--c-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.cw-btn-outline:active { transform: scale(0.98); background: var(--c-primary-50); }

.cw-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--c-text-secondary);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================
   Auth — Login / Registro (Colorful)
   ============================================================ */

.cl-screen {
    min-height: 100vh;
    background: var(--c-bg);
    display: flex;
    flex-direction: column;
}

.cl-header {
    background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
    padding: 16px 24px 52px;
    padding-top: calc(16px + env(safe-area-inset-top));
}

.cl-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 20px;
}

.cl-back .material-icons-outlined { font-size: 22px; }

.cl-header-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.cl-header-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.cl-form-card {
    background: white;
    border-radius: 32px 32px 0 0;
    margin-top: -28px;
    padding: 32px 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    flex: 1;
    box-shadow: 0 -4px 32px rgba(45, 27, 105, 0.08);
}

.cl-form-group { margin-bottom: 20px; }

.cl-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.cl-form-input {
    width: 100%;
    background: var(--c-input-bg);
    border: 2px solid var(--c-input-border);
    border-radius: var(--c-input-radius);
    padding: 14px 16px;
    font-size: 16px;
    color: var(--c-text);
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.cl-form-input:focus {
    outline: none;
    border-color: var(--c-primary);
    background: white;
}

.cl-password-wrap { position: relative; }

.cl-password-wrap .cl-form-input { padding-right: 50px; }

.cl-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    margin-top: -10px;
    margin-bottom: 24px;
    text-decoration: none;
}

.cl-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--c-primary);
    color: white;
    border: none;
    border-radius: var(--c-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--c-shadow-md);
    transition: opacity 0.2s, transform 0.1s;
    margin-bottom: 24px;
    font-family: inherit;
}

.cl-btn-submit:active { transform: scale(0.98); }
.cl-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.cl-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: var(--c-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: #DC2626;
    margin-bottom: 20px;
}

.cl-security-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-primary-50);
    border: 1px solid var(--c-primary-100);
    border-radius: var(--c-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--c-primary-dark);
    margin-top: 4px;
}

.cl-phone-wrap {
    display: flex;
    border: 2px solid var(--c-input-border);
    border-radius: var(--c-input-radius);
    overflow: hidden;
    background: var(--c-input-bg);
    transition: border-color 0.2s;
}

.cl-phone-wrap:focus-within {
    border-color: var(--c-primary);
    background: white;
}

.cl-phone-country {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    background: none;
    border: none;
    border-right: 2px solid var(--c-input-border);
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.cl-phone-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--c-text);
    font-family: inherit;
}

.cl-phone-input:focus { outline: none; }

.cl-strength-bar {
    height: 4px;
    background: #E9D5FF;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.cl-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.cl-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 8px;
}

.cl-req {
    font-size: 11px;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.cl-req.valid  { color: #10B981; }
.cl-req.invalid { color: #EF4444; }

.cl-validation {
    font-size: 12px;
    margin-top: 6px;
}

.cl-validation.error { color: #DC2626; }
.cl-validation.success { color: #10B981; }

.cl-terms {
    font-size: 13px;
    color: var(--c-text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.cl-terms a { color: var(--c-primary); font-weight: 600; text-decoration: none; }

.cl-link { color: var(--c-primary); font-weight: 600; text-decoration: none; }

/* ============================================================
   Perfil — Apariencia (skin switcher + color editor)
   ============================================================ */

.apariencia-screen {
    min-height: 100vh;
    background: #F8FAFC;
}

.apariencia-content {
    padding: 16px 20px 0;
}

.apariencia-section { margin-bottom: 24px; }

.apariencia-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

/* ── Skin selector cards ───────────────────────────────── */

.skin-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.skin-card {
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.skin-card.active { border-color: #7C3AED; }
.skin-card:active { transform: scale(0.97); }

.skin-card-preview {
    height: 80px;
    position: relative;
    overflow: hidden;
}

.skin-preview-default {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
}

.skin-preview-colorful {
    background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 55%, #A855F7 100%);
}

/* Mini mock screens inside preview */
.skin-preview-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 18px;
    background: rgba(255,255,255,0.88);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.skin-preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #CBD5E1;
}

.skin-preview-dot.active-blue  { background: #1E40AF; width: 14px; }
.skin-preview-dot.active-purple { background: #7C3AED; width: 14px; }

.skin-preview-bar-dark {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    height: 18px;
    background: #2D1B69;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.skin-preview-dot-white { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.4); }
.skin-preview-dot-white.active { background: #7C3AED; width: 14px; }

.skin-card-info {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skin-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
}

.skin-card-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7C3AED;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skin-card-check .material-icons-outlined {
    font-size: 13px;
    color: white;
}

/* ── Color palette editor ──────────────────────────────── */

.color-palette-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.color-row {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #F1F5F9;
    gap: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.color-row:last-child { border-bottom: none; }
.color-row:active { background: #F8FAFC; }

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.color-swatch input[type="color"] {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.color-row-info { flex: 1; min-width: 0; }

.color-row-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
}

.color-row-hex {
    display: block;
    font-size: 12px;
    color: #94A3B8;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 1px;
}

/* ── Shadow intensity section ──────────────────────────── */

.shadow-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shadow-row {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #F1F5F9;
    gap: 14px;
}

.shadow-row:last-child { border-bottom: none; }

.shadow-row-label {
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    min-width: 90px;
}

.intensity-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #E2E8F0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #7C3AED;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(124,58,237,0.3);
}

.intensity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #7C3AED;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.intensity-value {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    min-width: 36px;
    text-align: right;
}

/* Shadow preview boxes */
.shadow-preview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 16px;
    background: #F8FAFC;
}

.shadow-preview-box {
    height: 52px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #64748B;
    font-weight: 600;
}

#preview-shadow-sm  { box-shadow: var(--c-shadow-sm); }
#preview-shadow-md  { box-shadow: var(--c-shadow-md); }
#preview-shadow-lg  { box-shadow: var(--c-shadow-lg); }

/* ── Reset button ──────────────────────────────────────── */

.reset-palette-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #F1F5F9;
    color: #475569;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.reset-palette-btn:active { background: #E2E8F0; }

/* ============================================================
   Colorful — Base theme variable remapping
   Maps --color-primary (base app) → --c-primary (Colorful)
   ============================================================ */

:root {
    --color-primary:        var(--c-primary);
    --color-primary-dark:   var(--c-primary-dark);
    --color-primary-light:  var(--c-primary-light);
}

/* ============================================================
   Colorful — Global overrides (authenticated screens)
   Uses !important to override inline <style> blocks in views
   ============================================================ */

/* Inputs focus */
.form-input:focus,
input.form-input:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12) !important;
    outline: none !important;
}
.phone-input-wrapper:focus-within,
.cl-phone-wrap:focus-within {
    border-color: var(--c-primary) !important;
}

/* Primary buttons */
.btn-primary,
.btn-explore,
.btn-continue {
    background: var(--c-primary) !important;
}
.btn-primary:active,
.btn-explore:active,
.btn-continue:active {
    background: var(--c-primary-dark) !important;
}
.btn-primary:disabled,
.btn-continue:disabled {
    background: #C4B5FD !important;
}

/* Links */
.cl-link,
.cl-forgot-link,
.section-link,
.notif-mark-all-btn,
.notif-mark-all-btn:active {
    color: var(--c-primary) !important;
}

/* Loading spinner */
.loading-spinner {
    border-top-color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Perfil Main
   ============================================================ */

.perfil-avatar {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-accent) 100%) !important;
}
.rol-badge {
    background: var(--c-primary-50) !important;
    color: var(--c-primary) !important;
}
.perfil-notif-icon {
    background: var(--c-primary-100) !important;
}
.perfil-notif-icon .material-icons-outlined {
    color: var(--c-primary) !important;
}
.perfil-cta-card {
    background: linear-gradient(135deg, var(--c-primary-50) 0%, var(--c-primary-100) 100%) !important;
    border-color: rgba(124,58,237,0.25) !important;
}
.perfil-cta-icon {
    background: var(--c-primary) !important;
}
.perfil-cta-title {
    color: var(--c-primary) !important;
}
.perfil-cta-desc {
    color: var(--c-accent) !important;
}
.menu-icon-blue {
    background: var(--c-primary-100) !important;
}
.menu-icon-blue .material-icons-outlined {
    color: var(--c-primary) !important;
}
.shutter-ring {
    border-color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Perfil Configuración
   ============================================================ */

.status-badge-on {
    background: var(--c-primary-50) !important;
    color: var(--c-primary) !important;
}
.twofa-method-icon {
    background: var(--c-primary-100) !important;
}
.twofa-method-icon .material-icons-outlined {
    color: var(--c-primary) !important;
}
.twofa-toggle input:checked + .twofa-toggle-slider {
    border-color: var(--c-primary) !important;
    background: var(--c-primary) !important;
}
.email-success-icon {
    background: var(--c-primary-50) !important;
}
.email-success-icon .material-icons-outlined {
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Notificaciones
   ============================================================ */

.push-banner {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%) !important;
}
.notification-item.unread {
    background: var(--c-primary-50) !important;
}
.notification-item.unread::before {
    background: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Inversiones
   ============================================================ */

.summary-card-primary {
    border-left-color: var(--c-primary) !important;
}
.stat-item .stat-value {
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Progress Steps (Invertir)
   ============================================================ */

.progress-steps {
    background: var(--c-primary-50) !important;
}
.step.active .step-number {
    background: var(--c-primary) !important;
    color: white !important;
}
.step.active .step-label {
    color: var(--c-primary) !important;
    font-weight: 600 !important;
}
.amount-input-wrapper:focus-within {
    border-color: var(--c-primary) !important;
}
.quick-amount-btn:active,
.quick-amount-btn.active {
    background: var(--c-primary) !important;
    border-color: var(--c-primary) !important;
    color: white !important;
}
.returns-preview {
    background: var(--c-primary-50) !important;
    border: 1px solid var(--c-primary-100) !important;
}
.returns-icon {
    background: var(--c-primary) !important;
}
.returns-label,
.returns-value {
    color: var(--c-primary-dark) !important;
}

/* ============================================================
   Colorful — Simulator
   ============================================================ */

.result-item.highlight {
    background: var(--c-primary-50) !important;
}

/* ============================================================
   Colorful — Catalog / Explorar Header
   ============================================================ */

.catalog-header-clean {
    background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-accent) 100%) !important;
}
.catalog-search-container {
    background: rgba(255,255,255,0.15) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 14px !important;
}
.catalog-search-icon { color: rgba(255,255,255,0.75) !important; }
.catalog-search-input {
    color: white !important;
    background: transparent !important;
}
.catalog-search-input::placeholder { color: rgba(255,255,255,0.55) !important; }
.catalog-search-clear { color: rgba(255,255,255,0.75) !important; }
.catalog-filter-btn {
    background: rgba(255,255,255,0.15) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    border-radius: 14px !important;
    backdrop-filter: blur(8px) !important;
}
.catalog-filter-badge {
    background: white !important;
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Auth minimalist (recuperar, verificar, reset)
   ============================================================ */

/* Override auth-minimal to use purple highlight */
.auth-minimal-title .highlight,
.auth-minimal-title span.highlight {
    color: var(--c-primary) !important;
}
.btn-continue {
    background: var(--c-primary) !important;
}
.verification-digit:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15) !important;
}
.verification-digit.filled {
    background: var(--c-primary-50) !important;
    border-color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Formacion
   ============================================================ */

/* Progress bar fill in formacion screens (Tailwind bg-primary-500) */
/* Override via --color-primary already handled above */

/* ============================================================
   Colorful — Invertir: Método de Pago
   ============================================================ */

/* Progress step active (metodo step 2) */
.step.active .step-number {
    background: var(--c-primary) !important;
    color: white !important;
}
.step.active .step-label {
    color: var(--c-primary) !important;
    font-weight: 500;
}

/* Amount summary gradient card */
.amount-summary {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%) !important;
}

/* Payment method selected state */
.payment-method-card.selected {
    border-color: var(--c-primary) !important;
    background: var(--c-primary-50) !important;
}
.payment-method-card.selected .payment-method-icon {
    background: var(--c-primary) !important;
}
.payment-method-card.selected .payment-method-check .material-icons-outlined {
    color: var(--c-primary) !important;
}

/* Card form minimal input focus */
.form-input-minimal:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12) !important;
}

/* SPEI highlight */
.spei-amount {
    color: var(--c-primary) !important;
}
.spei-notice {
    background: var(--c-primary-50) !important;
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Invertir: Confirmación
   ============================================================ */

/* Returns card gradient */
.returns-card {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 60%, var(--c-accent) 100%) !important;
}

/* ============================================================
   Colorful — Perfil: FAQ
   ============================================================ */

.faq-cta-btn {
    background: var(--c-primary) !important;
}
.faq-item.open .faq-icon {
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Perfil: Quejas
   ============================================================ */

.queja-step-num {
    background: var(--c-primary) !important;
}
/* Override inline style on email mailto button */
a[href^="mailto:quejas"] {
    background: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Perfil: Contacto
   ============================================================ */

/* Email channel icon — first channel card */
.contacto-channel:first-child .contacto-channel-icon {
    background: var(--c-primary-50) !important;
}
.contacto-channel-icon .material-icons-outlined {
    color: var(--c-primary) !important;
}
/* Keep WhatsApp channel icon green */
.contacto-channel:nth-child(2) .contacto-channel-icon .material-icons-outlined {
    color: #16A34A !important;
}
.contacto-form-input:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12) !important;
}
.contacto-submit-btn {
    background: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Perfil: Ayuda
   ============================================================ */

/* FAQ card (first) — override inline #EFF6FF bg and #1E40AF icon */
.ayuda-card:first-child .ayuda-icon {
    background: var(--c-primary-50) !important;
}
.ayuda-card:first-child .ayuda-icon .material-icons-outlined {
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Perfil: Main — Foto y Cámara
   ============================================================ */

/* Photo option icon (cámara/galería) */
.photo-option-icon {
    background: var(--c-primary) !important;
}
.photo-option-icon.danger {
    background: #FEF2F2 !important;
}
/* Camera retry button (inline style override) */
.camera-view button[onclick="startCamera()"] {
    background: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Formacion Card Component
   ============================================================ */

/* Certification badge (uses rgba version of #1E40AF) */
[style*="rgba(30,64,175"] {
    background: rgba(124,58,237,0.9) !important;
}
/* Progress bar fill and percentage text (inline PHP-generated #1E40AF) */
.bg-white.rounded-xl [style*="background: #1E40AF"] {
    background: var(--c-primary) !important;
}
.bg-white.rounded-xl [style*="color: #1E40AF"] {
    color: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Navigation: Register Required Bottom Sheet
   ============================================================ */

/* Lock icon */
#rr-icon {
    color: var(--c-primary) !important;
}
/* Icon circle background */
#register-required-sheet [style*="linear-gradient(135deg, #EFF6FF"] {
    background: linear-gradient(135deg, var(--c-primary-50), var(--c-primary-100)) !important;
    border-color: var(--c-primary-100) !important;
}
/* "Crear cuenta" primary button */
#register-required-sheet a[href*="auth.registro"] {
    background: var(--c-primary) !important;
}

/* ============================================================
   Colorful — Safe area spacer for floating nav
   ============================================================ */

/* Make sure all screens have bottom padding for floating nav */
.inversiones-screen,
.detalle-inversion-screen,
.historial-screen,
.perfil-screen,
.config-screen,
.notificaciones-screen,
.apariencia-screen,
.simulador-screen,
.invertir-screen {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* safe-area-bottom uses --bottom-nav-height (64px default),
   but colorful floating nav needs 100px of clearance */
.safe-area-bottom {
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
}

/* ============================================================
   Colorful — Catalog / Project Cards
   ============================================================ */

/* Project card — purple shadow */
.project-card {
    box-shadow: var(--c-shadow-sm) !important;
    border-radius: var(--c-radius-md) !important;
    overflow: hidden;
    background: var(--c-surface) !important;
}

/* Progress bar fill — use primary color via CSS var */
.progress-bar-fill {
    background-color: var(--c-primary) !important;
}

/* Skeleton bg tinted purple */
.skeleton {
    background: linear-gradient(90deg, var(--c-primary-100) 25%, var(--c-primary-50) 50%, var(--c-primary-100) 75%) !important;
    background-size: 200% 100% !important;
}

/* Filter badge */
.catalog-filter-badge {
    background: white !important;
    color: var(--c-primary) !important;
}

