/* Kiwo · panel de clientes (mykiwo.com/cuenta) */
/* Fondo celeste (como el menú) y tarjetas blancas; las variables se fijan aquí para que no cambien con el tema oscuro/claro del sistema */
.acct {
    --surface: #ffffff;
    --surface-2: #eef4fa;
    --bg-soft: #f1f6fb;
    --border: #d9e4ef;
    --text: #0f1f2e;
    --text-2: #46596b;
    --text-3: #6b7f93;
    --shadow: 0 14px 40px rgba(8, 60, 100, .22);
    background: var(--sky);
    color: var(--text);
    min-height: 100vh;
}
.acct-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: var(--sky); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.acct-brand img { display: block; }
.acct-bar-right { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; font-size: 14px; }
.acct-bar-right[hidden], [hidden] { display: none !important; }
.acct-main { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; display: flex; flex-direction: column; gap: 18px; }

.acct-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.acct-card.narrow { max-width: 440px; width: 100%; margin: 24px auto 0; }
.acct-card h1 { font-size: 26px; margin: 0 0 6px; }
.acct-card h2 { font-size: 19px; margin: 0 0 12px; }
.acct-card h3 { font-size: 16px; margin: 20px 0 10px; }
.acct-sub { color: var(--text-2); margin: 0 0 18px; }
.acct-note { color: var(--text-3); font-size: 13px; margin: 14px 0 0; }

.acct form { display: flex; flex-direction: column; gap: 14px; }
.acct label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.acct input[type=email], .acct input[type=password], .acct input[type=text], .acct input[type=file], .acct select {
    padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font: 16px var(--font);
}
.acct input:focus-visible, .acct select:focus-visible, .acct button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.acct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--sky); color: #fff; font: 800 15px var(--font); cursor: pointer; text-decoration: none; }
.acct-btn:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(39, 187, 245, .45); text-decoration: none; }
.acct-btn:disabled { opacity: .6; cursor: wait; }
.acct-btn.alt { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.acct-btn.danger { background: transparent; border: 1px solid #ef4444; color: #ef4444; min-height: 38px; padding: 0 16px; font-size: 13px; }
.acct-link { background: none; border: 0; padding: 0; color: #0b6fa0; font: 600 14px var(--font); cursor: pointer; text-decoration: underline; }
.acct-bar .acct-link { color: #fff; }
.acct-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }

.acct-google { display: flex; justify-content: center; margin-bottom: 14px; min-height: 0; }
.acct-or { text-align: center; color: var(--text-3); margin: 6px 0 14px; position: relative; }
.acct-or span { background: var(--surface); padding: 0 12px; position: relative; }
.acct-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }

.acct-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #e6f7ec; color: #14532d; font-weight: 600; font-size: 14px; }
.acct-msg.is-error { background: #fde8e8; color: #7f1d1d; }
.acct-loading { text-align: center; background: none; color: #fff; }

.acct-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
.acct-tabs button { flex: none; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .18); color: #fff; font: 700 14px var(--font); cursor: pointer; }
.acct-tabs button:hover { background: rgba(255, 255, 255, .3); }
.acct-tabs button.is-on { background: #fff; border-color: #fff; color: #0b6fa0; }
.acct-pane { display: flex; flex-direction: column; gap: 18px; }

.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-badge { padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #dcfce7; color: #15803d; }
.acct-badge.expired, .acct-badge.suspended { background: #fee2e2; color: #b91c1c; }
.acct-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0; }
.acct-dl dt { font-size: 12px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.acct-dl dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }

.acct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acct-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.acct-list small { display: block; color: var(--text-3); }

.acct-pay { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); margin-top: 12px; }
.acct-pay h3 { margin: 0 0 8px; }
.acct-pay p { margin: 2px 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.acct-dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.acct-dl-item { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; }
.acct-dl-item strong { font-size: 17px; }
.acct-dl-item small { color: var(--text-3); }
.acct-dl-item .acct-btn { margin-top: 8px; }
.acct-btn.is-disabled { opacity: .5; pointer-events: none; }

.acct-captcha { display: flex; justify-content: center; min-height: 0; }
.acct-captcha:empty { display: none; }

/* Selector de idioma y moneda en la barra */
.acct-bar .sw { margin-left: auto; }
.acct-bar .sw-group { border-color: rgba(255, 255, 255, .55); }
.acct-bar .sw-btn { color: #fff; }
.acct-bar .sw-btn.is-on { background: #fff; color: #0B6FA0; }

/* Renombrar dispositivos */
.acct-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acct-rename-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-rename { min-width: 180px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
@media (max-width: 560px) { .acct-list li { flex-direction: column; align-items: stretch; } .acct-actions { justify-content: flex-start; } }
