/* Componentes base copiados de Zenly (index.html): botones, formularios, ventanas y pestañas con indicador.
   Van dentro de .zen para convivir con el resto de MILO mientras se rediseña. */
:root { --pd: #2d4ecc; --bg3: #121218; --sh: 0 8px 32px rgba(67, 97, 238, 0.2); }

.zen .btn { padding: 8px 16px; border-radius: 9px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: none; color: var(--t); }
.zen .btn-p { background: linear-gradient(135deg, var(--p), var(--pd)); color: #fff; box-shadow: 0 4px 14px rgba(67, 97, 238, .4); }
.zen .btn-p:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(67, 97, 238, .5); }
.zen .btn-g { background: transparent; color: var(--t2); border: 1px solid var(--brd); }
.zen .btn-g:hover { background: var(--card2); }
.zen .btn-d { background: rgba(239, 68, 68, .12); color: var(--red); border: 1px solid rgba(239, 68, 68, .25); }
.zen .btn-d:hover { background: rgba(239, 68, 68, .22); }
.zen .btn-s { background: rgba(16, 185, 129, .12); color: var(--grn); border: 1px solid rgba(16, 185, 129, .25); }
.zen .btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 7px; }

.zen .sec { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.zen .inc-h { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.zen .inc-card { background: var(--card); border: 1px solid var(--brd); border-radius: 14px; padding: 20px; text-align: center; }
.zen .inc-card .amt { font-size: 28px; font-weight: 800; margin: 4px 0; }
.zen .inc-card .lbl { font-size: 11px; color: var(--t3); }
@media (max-width: 600px) { .zen .inc-h { gap: 8px; } .zen .inc-card { padding: 12px 8px; } .zen .inc-card .amt { font-size: 18px; } }
.zen .inc-tabs { display: flex; gap: 0; position: relative; background: var(--card); border: 1px solid var(--brd); border-radius: 10px; padding: 3px; width: fit-content; max-width: 100%; margin-bottom: 16px; }
.zen .inc-tab-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 7px; background: linear-gradient(135deg, rgba(177, 77, 255, .28), rgba(30, 167, 255, .28)); border: 1px solid rgba(177, 77, 255, .45); box-shadow: 0 2px 10px rgba(177, 77, 255, .22); transition: left .26s cubic-bezier(.4, 0, .2, 1), width .26s cubic-bezier(.4, 0, .2, 1); pointer-events: none; z-index: 0; }
.zen .inc-tab { position: relative; z-index: 1; padding: 6px 18px; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--t3); transition: color .15s; white-space: nowrap; display: inline-flex; align-items: center; }
.zen .inc-tab.active { color: var(--t); }
@media (max-width: 600px) { .zen .inc-tab { padding: 7px 14px; font-size: 13px; } }

/* ventanas */
.zen.mo, .zen .mo { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.zen.mo.open, .zen .mo.open { display: flex; }
.zen .modal { background: var(--bg2); border: 1px solid var(--brd); border-radius: 18px; width: 500px; max-width: 100%; padding: 24px; box-shadow: var(--sh); animation: zsu .2s ease; margin: auto; flex-shrink: 0; color: var(--t); }
@keyframes zsu { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.zen .mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.zen .mt { font-size: 16px; font-weight: 700; }
.zen .mc { background: var(--card2); border: none; color: var(--t3); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.zen .mc:hover { color: var(--t); background: var(--brd); }
.zen .fg { margin-bottom: 14px; }
.zen .fl { font-size: 11px; font-weight: 600; color: var(--t3); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: .5px; }
.zen .fi, .zen .fs, .zen .fta { width: 100%; padding: 10px 12px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--brd); color: var(--t); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; box-shadow: none; }
.zen .fi:focus, .zen .fs:focus, .zen .fta:focus { border-color: var(--pl); box-shadow: 0 0 0 3px rgba(67, 97, 238, .15); }
.zen .fs option { background: var(--bg3); }
.zen .fr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zen .fa { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--brd); flex-wrap: wrap; }
body.mo-lock { overflow: hidden; touch-action: none; }
