/* --- ESTILOS ESPECÍFICOS: SETTINGS --- */

/* Row wrapper */
.settings-cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

/* Card — fondo/borde/sombra ahora los da .pokebox-light (+ esquinas vía
   .pokebox-light--corners, ver settings.php/common.css). */
.settings-card-wrap {
    width: 100%;
    max-width: 450px;
    margin: 40px 0 35px;
    padding: 30px;
    min-height: 370px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.settings-card-wrap.settings-card-wide {
    max-width: 860px;
    min-height: auto;
    align-items: stretch;
    padding: 34px 54px 42px;
}

/* Section */
.settings-section {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(250px, 0.95fr) minmax(300px, 1.05fr);
    gap: 34px;
    align-items: center;
    padding: 22px 0;
    border-top: 1px solid rgba(0, 58, 112, 0.15);
}

.settings-section:first-of-type {
    border-top: 0;
}

.settings-section-copy {
    text-align: left;
}

.settings-section-title {
    font-family: 'Press Start 2P', monospace;
    color: var(--poke-navy);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    line-height: 1.5;
}

.settings-section .card-desc {
    color: rgba(42, 42, 42, 0.8);
    font-size: 0.85rem;
    font-weight: normal;
    text-shadow: none;
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 0;
    display: block;
    text-align: left;
}

/* Form wrapper */
.form-settings-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    padding-bottom: 10px;
}

.form-settings-wrap.form-align-right {
    align-items: center;
}

.settings-section .form-settings-wrap {
    flex-grow: 0;
    padding-bottom: 0;
    gap: 8px;
}

/* Select label */
.select-label {
    font-family: 'Press Start 2P', monospace;
    color: rgba(0, 58, 112, 0.85);
    font-size: 0.52rem;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    text-shadow: none;
    line-height: 1.6;
}

/* ── Pokémon-themed select ──
   Campo claro -- dentro de .pokebox-light un select oscuro se lee como
   un hueco roto, no como parte del formulario. Flechita del select
   recoloreada a navy (antes %23e0e0e0 gris claro, invisible sobre
   blanco). */
.pokemon-select {
    background-color: #fff;
    border: 2px solid rgba(0, 58, 112, 0.4);
    border-radius: 8px;
    color: #2a2a2a;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 48px;
    height: 48px;
    padding: 10px 40px 10px 14px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23003a70%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 0.6em auto;
}

.pokemon-select:hover {
    border-color: rgba(0, 58, 112, 0.7);
}

.pokemon-select:focus,
.pokemon-select:focus-visible {
    outline: none;
    border-color: var(--poke-yellow, var(--poke-yellow));
    box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.2);
}

/* ── Pokémon-themed text input ── Campo claro, mismo motivo que .pokemon-select. */
.pokemon-input {
    background: #fff;
    border: 2px solid rgba(0, 58, 112, 0.4);
    border-radius: 8px;
    color: #2a2a2a;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 48px;
    height: 48px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pokemon-input::placeholder {
    color: rgba(0, 58, 112, 0.35);
    opacity: 1;
}

.pokemon-input:focus {
    border-color: var(--poke-yellow, var(--poke-yellow));
    box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.2);
}

/* ── Sound controls ── */
.pokemon-range {
    width: 100%;
    accent-color: var(--poke-yellow, var(--poke-yellow));
    cursor: pointer;
}

.sound-control-row {
    width: 100%;
    min-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

.sound-volume-value {
    min-width: 48px;
    color: rgba(0, 58, 112, 0.9);
    font-size: 0.9rem;
    text-shadow: none;
}

.sound-mute-row {
    width: 100%;
    min-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    color: rgba(0, 58, 112, 0.85);
    font-size: 0.9rem;
    text-shadow: none;
    cursor: pointer;
}

.sound-mute-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--poke-yellow, var(--poke-yellow));
    cursor: pointer;
}

/* ── Paleta accesible ───────────────────────────────────────────────────── */
.accessibility-control { align-items: center; }

.accessibility-toggle-row {
    width: min(100%, 340px);
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(0, 58, 112, .18);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f3f5f6);
    color: var(--poke-navy);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0, 58, 112, .12);
}

.pokemon-switch { position: relative; width: 52px; height: 28px; flex: 0 0 52px; }
.pokemon-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.pokemon-switch-track {
    position: absolute;
    inset: 0;
    border: 2px solid var(--state-unknown-dark);
    border-radius: 999px;
    background: var(--state-unknown);
    transition: background .2s ease, border-color .2s ease;
    pointer-events: none;
}
.pokemon-switch-track::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border: 3px solid #151515;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--poke-red) 0 43%, #151515 43% 57%, #fff 57%);
    box-shadow: 0 1px 2px rgba(0,0,0,.35);
    transition: transform .2s ease;
}
.pokemon-switch input:checked + .pokemon-switch-track {
    border-color: var(--state-correct-dark);
    background: var(--state-correct);
}
.pokemon-switch input:checked + .pokemon-switch-track::before { transform: translateX(24px); }
.pokemon-switch input:focus-visible + .pokemon-switch-track {
    outline: 3px solid rgba(255, 179, 0, .68);
    outline-offset: 3px;
}

.accessibility-palette-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: min(100%, 340px);
    margin-top: 7px;
}
.accessibility-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid rgba(0, 58, 112, .15);
    border-radius: 9px;
    background: rgba(255,255,255,.72);
    color: #26384f;
    font-size: .76rem;
    font-weight: 700;
}
.accessibility-preview-item i {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border: 1px solid var(--state-preview-border);
    border-radius: 50%;
    color: var(--state-preview-on);
    font-size: .8rem;
    font-style: normal;
    font-weight: 900;
    text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.accessibility-preview-item .is-correct { background: var(--state-correct); --state-preview-border: var(--state-correct-dark); --state-preview-on: var(--state-correct-on); }
.accessibility-preview-item .is-partial { background: var(--state-partial); --state-preview-border: var(--state-partial-dark); --state-preview-on: var(--state-partial-on); }
.accessibility-preview-item .is-incorrect { background: var(--state-incorrect); --state-preview-border: var(--state-incorrect-dark); --state-preview-on: var(--state-incorrect-on); font-size: .95rem; }
.accessibility-preview-item .is-unknown { background: var(--state-unknown); --state-preview-border: var(--state-unknown-dark); --state-preview-on: var(--state-unknown-on); }
.accessibility-palette-note {
    width: min(100%, 340px);
    margin: 2px 0 0;
    color: rgba(0, 58, 112, .65);
    font-size: .74rem;
    line-height: 1.4;
    text-align: center;
}

/* ── Hints ── */
.input-hint {
    font-size: 0.75rem;
    color: rgba(0, 58, 112, 0.55);
    margin: 6px 0 0;
    text-align: center;
    width: 100%;
}

.input-error {
    font-size: 0.8rem;
    color: var(--color-danger);
    margin: 4px 0 0;
    text-align: center;
    width: 100%;
}

.input-error.hidden { display: none; }

/* ── Cuentas vinculadas ── */
.account-action-btn {
    background: linear-gradient(to bottom, var(--poke-navy, var(--poke-navy)), var(--poke-navy-dark));
    color: var(--poke-yellow, var(--poke-yellow));
    font-family: 'Press Start 2P', monospace;
    font-size: 0.52rem;
    border: 2px solid var(--poke-yellow, var(--poke-yellow));
    border-radius: 20px;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    min-height: 48px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.account-action-btn:hover:not(:disabled) {
    background: var(--poke-yellow, var(--poke-yellow));
    color: var(--poke-navy, var(--poke-navy));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.account-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.account-btn-secondary {
    background: #fff;
    color: var(--poke-navy, var(--poke-navy));
    border-color: rgba(0, 58, 112, 0.4);
    box-shadow: none;
}

.account-btn-secondary:hover:not(:disabled) {
    background: var(--poke-navy, var(--poke-navy));
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.account-btn-danger {
    background: #fff;
    color: var(--color-danger);
    border-color: rgba(211, 47, 47, 0.45);
    box-shadow: none;
}

.account-btn-danger:hover:not(:disabled) {
    background: var(--color-danger);
    color: #fff;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.account-code-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.account-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(14, 29, 56, 0.9);
    border: 2px solid rgba(61, 125, 202, 0.6);
    border-radius: 8px;
    padding: 10px 16px;
    box-sizing: border-box;
    justify-content: space-between;
}

.account-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--poke-yellow, var(--poke-yellow));
    letter-spacing: 0.18em;
}

.account-copy-btn {
    background: none;
    border: 2px solid rgba(61, 125, 202, 0.6);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.82rem;
    padding: 4px 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-copy-btn:hover {
    border-color: var(--poke-yellow, var(--poke-yellow));
    color: var(--poke-yellow, var(--poke-yellow));
}

.account-copy-icon {
    display: flex;
    align-items: center;
    width: 14px;
    height: 14px;
}

.account-code-input {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
}

/* --- Recorrido guiado de vinculación --- */
.settings-accounts-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
}

.settings-accounts-section .settings-section-copy {
    max-width: 720px;
    text-align: left;
}

.settings-accounts-section .card-desc {
    max-width: 68ch;
}

.account-link-form {
    width: 100%;
    max-width: none;
    gap: 18px;
}

.account-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(0, 58, 112, 0.2);
    border-radius: 10px;
    padding: 9px 13px;
    background: rgba(0, 58, 112, 0.04);
    box-sizing: border-box;
}

.linked-device-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(0, 58, 112, 0.9);
    font-size: 0.82rem;
    text-align: left;
}

.linked-device-count.is-limit {
    color: #b26a00;
}

.linked-device-count.is-error {
    color: var(--color-danger);
}

.account-status-pulse {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold-treasure);
    box-shadow: 0 0 0 0 rgba(255, 179, 0, .5);
    animation: account-status-pulse 1.4s ease-out infinite;
}

@keyframes account-status-pulse {
    70%, 100% { box-shadow: 0 0 0 7px rgba(255, 179, 0, 0); }
}

.linked-account-summary {
    margin: 0;
    color: rgba(0, 58, 112, 0.65);
    font-size: .78rem;
    overflow-wrap: anywhere;
    text-align: right;
}

.account-flow-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 14px;
    width: 100%;
}

.account-step {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    min-width: 0;
    border: 1px solid rgba(0, 58, 112, 0.16);
    border-radius: 12px;
    padding: 17px;
    background: #fff;
    box-sizing: border-box;
}

.account-step-source {
    border-top: 3px solid var(--poke-yellow, var(--poke-yellow));
}

.account-step-source .account-step-body > .account-action-btn {
    margin-top: var(--space-6, 20px);
}

.account-step-target {
    border-top: 3px solid rgba(0, 58, 112, 0.35);
}

.account-step-heading {
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
    padding-bottom: 0;
    text-align: left;
}

.account-step-body {
    grid-row: 2;
    min-width: 0;
}

.account-step-number {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(0, 58, 112, 0.4);
    border-radius: 50%;
    color: var(--poke-navy, var(--poke-navy));
    background: rgba(255, 203, 5, 0.18);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.72rem;
}

.account-step-heading h4 {
    margin: 0 0 4px;
    color: var(--poke-navy, var(--poke-navy));
    font-family: 'Press Start 2P', monospace;
    font-size: 0.62rem;
    font-weight: 400;
    line-height: 1.5;
}

.account-step-heading p {
    margin: 0;
    color: rgba(42, 42, 42, 0.65);
    font-size: .78rem;
    line-height: 1.4;
}

.settings-accounts-section .select-label {
    display: block;
    margin-bottom: 6px;
    text-align: left;
}

.account-entry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.account-entry-row .account-code-input {
    min-width: 0;
    max-width: none;
    margin: 0;
}

.account-entry-row .account-action-btn {
    width: auto;
    white-space: nowrap;
}

.account-limit-help,
.account-replace-help {
    width: 100%;
    margin: 9px 0 0;
    font-size: .76rem;
    line-height: 1.4;
}

.account-limit-help {
    border: 1px solid rgba(255, 179, 0, .4);
    border-radius: 8px;
    padding: 9px 10px;
    color: #8a5a00;
    background: rgba(255, 179, 0, .1);
}

.account-replace-help {
    color: rgba(138, 90, 0, .85);
    text-align: left;
}

.account-replace-help span {
    margin-right: 4px;
    color: #b26a00;
}

.account-disconnect-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    gap: 18px;
    width: 100%;
    border-top: 1px solid rgba(211, 47, 47, .22);
    padding-top: 17px;
    text-align: left;
}

.account-disconnect-zone strong {
    color: var(--color-danger);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1.5;
}

.account-disconnect-zone p {
    margin: 5px 0 0;
    color: rgba(42, 42, 42, 0.6);
    font-size: .76rem;
}

.account-disabled-wrap {
    display: block;
    width: 100%;
}

.account-disabled-wrap.is-disabled {
    cursor: help;
}

.account-disabled-wrap.is-disabled .account-action-btn {
    pointer-events: none;
}

.settings-accounts-section .account-action-btn:focus-visible,
.settings-accounts-section .account-copy-btn:focus-visible,
.settings-accounts-section .account-code-input:focus-visible,
.settings-accounts-section .account-disabled-wrap:focus-visible {
    outline: 3px solid rgba(255, 179, 0, .62);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .account-flow-grid {
        grid-template-columns: 1fr;
    }

    .account-step-source .account-step-body > .account-action-btn {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .settings-accounts-section .settings-section-copy,
    .settings-accounts-section .card-desc {
        text-align: left;
        justify-content: flex-start;
    }

    .account-status-bar,
    .account-disconnect-zone {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .account-status-bar {
        display: grid;
    }

    .linked-account-summary {
        text-align: left;
    }

    .account-entry-row {
        grid-template-columns: 1fr;
    }

    .account-entry-row .account-action-btn,
    .account-disconnect-zone .account-action-btn {
        width: 100%;
    }

    .account-code-display {
        align-items: center;
        gap: 8px;
    }

    .account-code-value {
        flex: 1;
        min-width: 0;
        padding: 4px 0;
        text-align: center;
        font-size: 1.1rem;
    }

    .account-copy-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .account-copy-icon {
        width: 18px;
        height: 18px;
    }

    .account-copy-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-status-pulse {
        animation: none;
    }
}

/* ── Back link ── */
.back-container {
    margin-bottom: 30px;
}

/* ── Toast ── */
#settings-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--color-success);
    color: #fff;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

#settings-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Flag dropdown ──────────────────────────────────────────────────────── */
.hidden-lang-select { display: none; }

.lang-flag-dropdown { position: relative; width: 100%; }

/* Mismo campo claro que .pokemon-select -- un select oscuro dentro de la
   tarjeta clara se lee como una isla rota, no como parte del formulario. */
.lang-flag-trigger {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 14px;
    background: #fff;
    border: 1.5px solid rgba(0, 58, 112, 0.4);
    border-radius: 8px;
    color: #2a2a2a; font-size: 0.95rem; cursor: pointer;
    box-sizing: border-box; transition: border-color 0.2s;
}
.lang-flag-trigger:hover { border-color: rgba(0, 58, 112, 0.7); }
.lang-flag-trigger:focus-visible {
    outline: none; border-color: var(--poke-yellow);
    box-shadow: 0 0 10px rgba(255, 203, 5, 0.4);
}
.lang-flag-trigger img { border-radius: 3px; flex-shrink: 0; }
.lang-flag-trigger span { flex: 1; text-align: left; }

.lang-flag-arrow { color: rgba(61, 125, 202, 0.7); flex-shrink: 0; transition: transform 0.2s; }
.lang-flag-trigger[aria-expanded="true"] .lang-flag-arrow { transform: rotate(180deg); }

.lang-flag-list {
    display: none; position: absolute;
    top: calc(100% + 6px); left: 0; right: 0; z-index: 500;
    background: #1e2a4a; border: 1.5px solid rgba(61, 125, 202, 0.4);
    border-radius: 10px; padding: 6px 0;
    max-height: 220px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.lang-flag-list.open { display: block; }
.lang-flag-list::-webkit-scrollbar { width: 6px; }
.lang-flag-list::-webkit-scrollbar-track { background: #1a2340; border-radius: 10px; }
.lang-flag-list::-webkit-scrollbar-thumb { background: rgba(61, 125, 202, 0.5); border-radius: 10px; }

.lang-flag-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; cursor: pointer;
    color: #d0dcf5; font-size: 0.9rem;
    transition: background 0.15s;
}
.lang-flag-option span { flex: 1; text-align: left; }
.lang-flag-option:hover { background: rgba(61, 125, 202, 0.15); }
.lang-flag-option.selected { background: rgba(255, 203, 5, 0.12); font-weight: 700; }
.lang-flag-option img { border-radius: 3px; flex-shrink: 0; }

/* ── Push notification buttons ──────────────────────────────────────────── */
.push-ctrl-wrap { align-items: center; gap: 10px; }

.push-action-btn {
    font-size: 0.95rem; font-weight: 700;
    padding: 10px 20px; border-radius: 8px; cursor: pointer;
    width: 100%; box-sizing: border-box;
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
.push-action-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.push-btn-enable {
    background: rgba(61, 125, 202, 0.12);
    border: 1.5px solid rgba(61, 125, 202, 0.4);
    color: var(--poke-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.push-btn-enable:hover:not(:disabled) {
    background: rgba(61, 125, 202, 0.25); border-color: rgba(61, 125, 202, 0.7);
    transform: translateY(-2px); box-shadow: 0 6px 14px rgba(61, 125, 202, 0.15);
}

.push-btn-disable {
    background: rgba(180, 30, 30, 0.12);
    border: 1.5px solid rgba(200, 50, 50, 0.4);
    color: var(--color-danger);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.push-btn-disable:hover:not(:disabled) {
    background: rgba(200, 40, 40, 0.35); border-color: rgba(220, 60, 60, 0.65);
    color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(200, 40, 40, 0.2);
}

.push-status-text {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--color-success-dark); margin: 4px 0 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    /* El gutter por defecto de .container (Bootstrap, 12px) es menor que
       el inset:-18px de las esquinas pokéball de .pokebox-light--corners
       (common.css) -- en móvil se salían del viewport. */
    .container { padding-left: 24px; padding-right: 24px; }

    .settings-cards-row {
        gap: 0;
    }

    .settings-card-wrap {
        margin: 15px 0;
        padding: 30px 20px;
        min-height: 300px;
    }

    .settings-card-wrap.settings-card-wide {
        padding: 28px 22px 32px;
    }

    .settings-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }

    .settings-section-copy,
    .settings-section .card-desc {
        text-align: center;
    }

    .select-label {
        display: none;
    }

    .pokemon-select,
    .pokemon-input,
    .sound-control-row,
    .sound-mute-row {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
    }

    .form-settings-wrap.form-align-right {
        align-items: center;
    }
}
