:root {
    --fdd-navy: #1f2a5b;
    --fdd-navy-2: #2c3e7a;
    --fdd-navy-3: #0e1834;
    --fdd-red: #e31e24;
    --fdd-red-2: #b8121a;
    --fdd-bg: #f4f6fb;
    --fdd-surface: #ffffff;
    --fdd-ink: #1a2233;
    --fdd-muted: #6b7280;
    --fdd-border: #e5e9f2;
    --fdd-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
    --fdd-radius: 1.1rem;
    --fdd-font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --fdd-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--fdd-font);
    color: var(--fdd-ink);
    background:
        radial-gradient(circle at 8% -10%, rgba(227, 30, 36, 0.07), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(31, 42, 91, 0.08), transparent 36%),
        var(--fdd-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    background: var(--fdd-red);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 0.6rem 0.6rem;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ===== Header ===== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(229, 233, 242, 0.9);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.app-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.app-navbar {
    padding: 0.6rem 0;
}

.app-container {
    width: min(1280px, calc(100% - 2rem));
    margin-inline: auto;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0;
    margin-right: 1.5rem;
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-brand:hover .brand-logo {
    transform: scale(1.04) rotate(-1deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--fdd-navy);
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fdd-red);
    font-weight: 800;
}

.app-main-menu .nav-link {
    position: relative;
    color: var(--fdd-navy);
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 0.65rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.app-main-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.28rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--fdd-red), var(--fdd-navy));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.app-main-menu .nav-link:hover {
    background: rgba(31, 42, 91, 0.05);
    color: var(--fdd-navy);
}

.app-main-menu .nav-link:hover::after,
.app-main-menu .nav-link.active::after {
    transform: scaleX(1);
}

.app-main-menu .nav-link.active {
    color: var(--fdd-red);
}

.app-user-area {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.8rem 0.3rem 0.35rem;
    background: #f7f9fd;
    border: 1px solid var(--fdd-border);
    border-radius: 999px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--fdd-navy), var(--fdd-red));
    box-shadow: 0 6px 14px rgba(31, 42, 91, 0.2);
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    max-width: 190px;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fdd-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.68rem;
    color: var(--fdd-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-settings-btn,
.app-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.48rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
        background 0.2s ease, border-color 0.2s ease;
}

.app-settings-btn {
    color: var(--fdd-navy);
    background: #fff;
    border: 1px solid var(--fdd-border);
}

.app-settings-btn:hover,
.app-settings-btn:focus {
    color: var(--fdd-navy);
    border-color: rgba(227, 30, 36, 0.45);
    background: #fff8f8;
    transform: translateY(-1px);
}

.app-settings-btn.active {
    color: #fff;
    background: var(--fdd-navy);
    border-color: var(--fdd-navy);
}

.app-logout-btn {
    color: var(--fdd-red);
    background: rgba(227, 30, 36, 0.06);
    border: 1px solid rgba(227, 30, 36, 0.22);
}

.app-logout-btn:hover,
.app-logout-btn:focus {
    color: #fff;
    background: var(--fdd-red);
    border-color: var(--fdd-red);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(227, 30, 36, 0.25);
}

.app-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-toggler {
    border: 1px solid var(--fdd-border);
    border-radius: 0.6rem;
    padding: 0.42rem 0.55rem;
    background: #fff;
}

.app-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.15);
}

.app-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--fdd-navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-dropdown {
    border: 0;
    border-radius: 0.95rem;
    padding: 0.45rem;
    min-width: 240px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    animation: dropdownIn 0.22s ease both;
    transform-origin: top right;
}

.app-dropdown .dropdown-item {
    border-radius: 0.6rem;
    padding: 0.58rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fdd-navy);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-dropdown .dropdown-item:hover,
.app-dropdown .dropdown-item:focus {
    background: #f3f6fc;
    color: var(--fdd-navy);
    transform: translateX(2px);
}

.app-dropdown .dropdown-divider {
    margin: 0.35rem 0.4rem;
    opacity: 0.12;
}

/* ===== Main ===== */

.app-main {
    flex: 1;
}

.page-content {
    padding: 2rem 0 3rem;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.page-heading h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--fdd-navy);
    margin: 0 0 0.15rem;
}

.page-heading .subtitle {
    color: var(--fdd-muted);
    font-size: 0.9rem;
}

.app-footer {
    background: #fff;
    border-top: 1px solid var(--fdd-border);
    color: var(--fdd-muted);
    font-size: 0.78rem;
    padding: 1rem 0;
}

.app-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Cards, tables and forms ===== */

.card {
    border: 1px solid var(--fdd-border);
    border-radius: var(--fdd-radius);
    background: var(--fdd-surface);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--fdd-border);
    padding: 0.95rem 1.25rem;
    font-weight: 700;
    color: var(--fdd-navy);
}

.card-body {
    padding: 1.25rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--fdd-red);
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -42px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.13), transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.05rem;
    line-height: 1.05;
    font-weight: 800;
    color: var(--fdd-navy);
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--fdd-muted);
    font-size: 0.84rem;
    margin-top: 0.25rem;
}

.btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
        border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.985);
}

.btn-primary {
    background-color: var(--fdd-navy);
    border-color: var(--fdd-navy);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--fdd-red);
    border-color: var(--fdd-red);
    box-shadow: 0 10px 22px rgba(227, 30, 36, 0.22);
}

.btn-outline-secondary {
    color: var(--fdd-navy);
    border-color: #cfd6e4;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #fff;
    background: var(--fdd-navy);
    border-color: var(--fdd-navy);
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fdd-navy);
}

.form-control,
.form-select {
    border-radius: 0.65rem;
    border-color: #dde3ee;
    padding: 0.58rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(227, 30, 36, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fdd-muted);
    font-weight: 800;
    border-bottom: 1px solid var(--fdd-border);
    padding: 0.8rem 1rem;
    background: #fbfcff;
}

.table tbody td {
    padding: 0.8rem 1rem;
    border-color: #eef1f7;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.2s ease;
    animation: fadeIn 0.35s ease both;
}

.table tbody tr:nth-child(2) { animation-delay: 0.03s; }
.table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.table tbody tr:nth-child(4) { animation-delay: 0.09s; }
.table tbody tr:nth-child(5) { animation-delay: 0.12s; }
.table tbody tr:nth-child(6) { animation-delay: 0.15s; }
.table tbody tr:nth-child(7) { animation-delay: 0.18s; }
.table tbody tr:nth-child(8) { animation-delay: 0.21s; }

.table tbody tr:hover {
    background: #f8fafd;
}

.badge-soft {
    background: #e8eef9;
    color: var(--fdd-navy);
    font-weight: 700;
    border-radius: 0.45rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
}

.badge-soft-success {
    background: #e7f7ee;
    color: #166534;
}

.badge-soft-danger {
    background: #fdeaea;
    color: #991b1b;
}

.badge-soft-warning {
    background: #fff5df;
    color: #92400e;
}

.empty-state {
    padding: 2.4rem 1.5rem;
    text-align: center;
    color: var(--fdd-muted);
    background: #fbfcff;
    border: 1px dashed #dfe5f0;
    border-radius: 0.9rem;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.pagination .page-link {
    color: var(--fdd-navy);
    border-color: var(--fdd-border);
    border-radius: 0.5rem !important;
    margin: 0 0.12rem;
}

.pagination .page-item.active .page-link {
    background: var(--fdd-navy);
    border-color: var(--fdd-navy);
}

.pagination .page-item.disabled .page-link {
    color: #b6bfce;
}

.json-box {
    background: #0f172a;
    color: #dbeafe;
    border-radius: 0.7rem;
    padding: 1rem;
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 26rem;
    overflow: auto;
}

.permission-group {
    border: 1px solid var(--fdd-border);
    border-radius: 0.85rem;
    padding: 0.95rem 1rem;
    margin-bottom: 0.95rem;
    background: #fbfcff;
}

.permission-group h6 {
    color: var(--fdd-navy);
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.code-pill {
    background: #eef2f8;
    color: #334155;
    border-radius: 0.35rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.72rem;
}

.form-check-label {
    cursor: pointer;
}

/* ===== Login ===== */

body.auth-body {
    display: block;
    background: var(--fdd-navy-3);
    overflow-x: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 18% 18%, rgba(44, 62, 122, 0.95), transparent 45%),
        radial-gradient(circle at 82% 82%, rgba(227, 30, 36, 0.32), transparent 44%),
        var(--fdd-navy-3);
}

.login-slides,
.login-slide {
    position: absolute;
    inset: 0;
}

.login-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 1.15s ease;
    will-change: opacity, transform;
}

.login-slide.is-active {
    opacity: 1;
    animation: kenburns 22s ease-in-out infinite alternate;
}

.login-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.28;
    pointer-events: none;
}

.login-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.login-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: min(430px, 100%);
    padding: 2.2rem 2.1rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 30px 90px rgba(4, 10, 25, 0.46);
    backdrop-filter: blur(18px);
    animation: cardIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-style-minimalista .login-card {
    background: #fff;
    border-top: 5px solid var(--fdd-red);
    border-radius: 1.1rem;
}

.login-style-pantalla .login-card {
    max-width: 470px;
    background: rgba(255, 255, 255, 0.97);
}

.login-logo {
    display: block;
    margin: 0 auto 1.1rem;
    max-height: 82px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 8px 18px rgba(31, 42, 91, 0.16));
    animation: logoIn 0.85s 0.12s both;
}

.login-heading {
    text-align: center;
    margin-bottom: 0.4rem;
}

.login-heading h1 {
    font-family: var(--fdd-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--fdd-navy);
    letter-spacing: -0.02em;
    margin: 0 0 0.3rem;
}

.login-heading p {
    color: var(--fdd-muted);
    font-size: 0.84rem;
    line-height: 1.4;
    margin: 0;
}

.login-form {
    margin-top: 1.35rem;
}

.login-validation {
    color: var(--fdd-red);
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
}

.login-validation ul {
    margin: 0;
    padding-left: 1rem;
}

.login-field {
    margin-bottom: 1rem;
}

.login-field .form-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 0.35rem;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 0.95rem;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #8a94a6;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.7rem;
    border-radius: 0.75rem;
    border: 1px solid #dde3ee;
    background: #f8faff;
    font-size: 0.94rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input[type="password"] {
    padding-right: 4rem;
}

.login-input:focus {
    background: #fff;
    border-color: rgba(227, 30, 36, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(227, 30, 36, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.4rem;
    border: 0;
    background: transparent;
    color: var(--fdd-navy);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.42rem 0.55rem;
    border-radius: 0.45rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
    background: #eef2fa;
    color: var(--fdd-red);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    margin: 0.2rem 0 1.1rem;
}

.login-options .form-check-label {
    color: var(--fdd-navy);
    font-weight: 600;
}

.login-help {
    color: #8a94a6;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-submit {
    position: relative;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--fdd-navy), var(--fdd-navy-2));
    box-shadow: 0 12px 26px rgba(31, 42, 91, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--fdd-red), var(--fdd-red-2));
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(227, 30, 36, 0.3);
}

.login-submit:active {
    transform: scale(0.99);
}

.login-submit-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.login-submit.is-loading .login-submit-text {
    opacity: 0;
}

.login-submit.is-loading .login-submit-spinner {
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
}

.login-domain-note {
    margin-top: 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.6rem;
    background: rgba(31, 42, 91, 0.06);
    color: var(--fdd-muted);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.login-domain-note strong {
    color: var(--fdd-navy);
}

.login-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 42, 91, 0.08);
    text-align: center;
    color: #8a94a6;
    font-size: 0.7rem;
}

.login-copyright {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.1rem;
    z-index: 3;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.71rem;
    letter-spacing: 0.04em;
}

/* ===== Ajustes / Personalización ===== */

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}

.settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.settings-card {
    overflow: hidden;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.brand-preview {
    height: 112px;
    border: 1px dashed #d9e1ee;
    border-radius: 0.9rem;
    background: #f8faff;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: hidden;
}

.brand-preview img {
    max-height: 76px;
    max-width: 100%;
    object-fit: contain;
}

.brand-preview-small {
    height: 92px;
}

.brand-preview-small img {
    max-height: 52px;
    max-width: 52px;
}

.upload-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
    border: 1.5px dashed #cfd8e8;
    border-radius: 0.9rem;
    padding: 1.05rem;
    cursor: pointer;
    background: #fbfcff;
    color: var(--fdd-navy);
    font-weight: 700;
    font-size: 0.84rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-drop:hover {
    border-color: rgba(227, 30, 36, 0.55);
    background: #fff8f8;
    transform: translateY(-1px);
}

.upload-drop small {
    color: var(--fdd-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.upload-drop-wide {
    padding: 1.5rem;
}

.upload-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--fdd-red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 0.15rem;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.upload-file-chip {
    background: #eef2fa;
    color: var(--fdd-navy);
    border-radius: 0.45rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.style-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.style-option {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1.5px solid var(--fdd-border);
    border-radius: 0.9rem;
    background: #fbfcff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease,
        background 0.2s ease;
}

.style-option:hover {
    border-color: rgba(31, 42, 91, 0.35);
    transform: translateY(-1px);
}

.style-option.selected {
    border-color: var(--fdd-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.style-visual {
    position: relative;
    display: block;
    height: 56px;
    border-radius: 0.55rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--fdd-navy), var(--fdd-navy-2));
}

.style-visual::after {
    content: "";
    position: absolute;
    border-radius: 0.35rem;
}

.style-visual-cristal::after {
    inset: 12px 42px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.style-visual-minimalista {
    background: #fff;
    border: 1px solid #e4e8f1;
     border-top: 4px solid var(--fdd-red);
}

.style-visual-minimalista::after {
    inset: 16px 38px;
    background: linear-gradient(180deg, #f3f5fb, #e9edf7);
}

.style-visual-pantallacompleta {
    background:
        linear-gradient(120deg, rgba(31, 42, 91, 0.85), rgba(227, 30, 36, 0.5)),
        radial-gradient(circle at 20% 20%, #5267a8, #101a38 65%);
}

.style-visual-pantallacompleta::after {
    inset: 10px 48px;
    background: rgba(255, 255, 255, 0.9);
}

.style-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.style-copy strong {
    font-size: 0.82rem;
    color: var(--fdd-navy);
}

.style-copy small {
    font-size: 0.68rem;
    line-height: 1.3;
    color: var(--fdd-muted);
}

.color-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-color {
    width: 56px;
    height: 42px;
    padding: 0.2rem;
    border-radius: 0.6rem;
}

.color-field .form-control:not(.form-control-color) {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
}

.range-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.range-field .form-range {
    flex: 1;
    accent-color: var(--fdd-red);
}

.range-value {
    min-width: 46px;
    text-align: right;
    color: var(--fdd-navy);
    font-weight: 800;
    font-size: 0.82rem;
}

.login-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.login-image-card {
    border: 1px solid var(--fdd-border);
    border-radius: 0.9rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.login-image-thumb {
    position: relative;
    height: 108px;
    background: #eef2fa;
}

.login-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-image-thumb .badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.login-image-info {
    padding: 0.6rem 0.75rem 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.login-image-info strong {
    font-size: 0.76rem;
    color: var(--fdd-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-image-info small {
    color: var(--fdd-muted);
    font-size: 0.68rem;
    white-space: nowrap;
}

.login-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem 0.75rem;
}

.login-image-actions form {
    margin: 0;
}

.login-image-actions .btn {
    font-size: 0.68rem;
    padding: 0.24rem 0.45rem;
}

.settings-preview-column {
    position: sticky;
    top: 92px;
}

.preview-card {
    overflow: hidden;
}

.preview-card .card-body {
    padding: 1rem;
}

.preview-login {
    position: relative;
    min-height: 440px;
    border-radius: 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, #2c3e7a, #101a38 65%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    isolation: isolate;
}

.preview-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--preview-color, #101c3d);
    opacity: var(--preview-opacity, 0.55);
    z-index: 0;
    transition: background 0.25s ease, opacity 0.25s ease;
}

.preview-card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 245px;
    padding: 1.2rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(4, 10, 25, 0.35);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preview-minimalista .preview-card-inner {
    background: #fff;
    border-top: 4px solid var(--fdd-red);
    border-radius: 0.7rem;
}

.preview-pantalla .preview-card-inner {
    background: rgba(255, 255, 255, 0.98);
}

.preview-logo {
    max-height: 42px;
    max-width: 100%;
    object-fit: contain;
}

.preview-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    text-align: center;
}

.preview-copy strong {
    font-family: var(--fdd-serif);
    font-size: 0.98rem;
    color: var(--fdd-navy);
    line-height: 1.15;
}

.preview-copy span {
    font-size: 0.63rem;
    color: var(--fdd-muted);
    line-height: 1.25;
}

.preview-input {
    width: 100%;
    padding: 0.42rem 0.6rem;
    border-radius: 0.45rem;
    border: 1px solid #e2e8f2;
    background: #f8faff;
    color: #929cad;
    font-size: 0.63rem;
}

.preview-button {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, var(--fdd-navy), var(--fdd-navy-2));
    color: #fff;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    margin-top: 0.15rem;
}

.preview-footer {
    margin-top: 0.25rem;
    color: #8a94a6;
    font-size: 0.56rem;
    text-align: center;
}

/* ===== Animations ===== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes kenburns {
    from { transform: scale(1.025); }
    to { transform: scale(1.09); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-content > .page-heading {
    animation: fadeDown 0.45s ease both;
}

.page-content > .row,
.page-content > .card,
.page-content > .settings-grid {
    animation: fadeUp 0.5s ease both;
}

.page-content > :nth-child(2) { animation-delay: 0.04s; }
.page-content > :nth-child(3) { animation-delay: 0.08s; }
.page-content > :nth-child(4) { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Responsive ===== */

@media (max-width: 1199.98px) {
    .settings-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

@media (max-width: 991.98px) {
    .app-container {
        width: calc(100% - 1.5rem);
    }

    .app-navbar {
        padding: 0.55rem 0;
    }

    .app-navbar .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.85rem 0.85rem 1rem;
        background: #fff;
        border: 1px solid var(--fdd-border);
        border-radius: 0.95rem;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    }

    .app-main-menu {
        margin-bottom: 0.75rem;
    }

    .app-main-menu .nav-link {
        padding: 0.7rem 0.55rem;
    }

    .app-user-area {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .user-chip {
        justify-content: flex-start;
        border-radius: 0.8rem;
        padding: 0.45rem 0.65rem;
    }

    .user-meta {
        max-width: none;
    }

    .app-settings-btn,
    .app-logout-btn {
        width: 100%;
    }

    .app-dropdown {
        width: 100%;
        min-width: 0;
        animation: none;
    }

    .page-content {
        padding: 1.4rem 0 2.2rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-preview-column {
        position: static;
        order: -1;
    }

    .preview-login {
        min-height: 360px;
    }

    .style-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        height: 34px;
    }

    .brand-title {
        font-size: 0.92rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
    }

    .page-heading {
        align-items: flex-start;
    }

    .page-heading h1 {
        font-size: 1.45rem;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .login-page {
        padding: 1rem 0.75rem 4.5rem;
        align-items: flex-start;
    }

    .login-shell {
        padding: 1.8rem 0 1rem;
        max-width: 100%;
    }

    .login-card {
        max-width: 100%;
        padding: 1.5rem 1.2rem;
        border-radius: 1.1rem;
    }

    .login-logo {
        max-height: 64px;
    }

    .login-heading h1 {
        font-size: 1.4rem;
    }

    .login-copyright {
        position: absolute;
        bottom: 0.9rem;
        padding: 0 1rem;
    }

    .login-options {
        align-items: flex-start;
    }

    .settings-actions .btn {
        width: 100%;
    }

    .login-image-grid {
        grid-template-columns: 1fr;
    }

    .login-image-actions .btn {
        font-size: 0.72rem;
    }
}

/* ===== Campanita de notificaciones ===== */

.app-bell-btn {
    position: relative;
    width: 40px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fdd-border);
    border-radius: 0.7rem;
    background: #fff;
    color: var(--fdd-navy);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.app-bell-btn:hover,
.app-bell-btn:focus {
    color: var(--fdd-red);
    border-color: rgba(227, 30, 36, 0.4);
    background: #fff8f8;
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 0.25rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--fdd-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
}

.app-notifications-menu {
    width: 370px;
    max-width: calc(100vw - 2rem);
    padding: 0;
    border: 0;
    border-radius: 0.95rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--fdd-border);
    color: var(--fdd-navy);
    font-size: 0.8rem;
}

.notifications-header span {
    color: var(--fdd-muted);
    font-size: 0.7rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef1f7;
    background: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f8fafd;
}

.notification-item.is-unread {
    background: #fff8f8;
}

.notification-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: transparent;
}

.notification-item.is-unread .notification-dot {
    background: var(--fdd-red);
}

.notification-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.notification-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--fdd-navy);
}

.notification-message {
    font-size: 0.75rem;
    color: var(--fdd-muted);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-date {
    font-size: 0.64rem;
    color: #98a2b3;
}

.notifications-footer {
    padding: 0.6rem 1rem;
    text-align: center;
    border-top: 1px solid var(--fdd-border);
    background: #fbfcff;
}

.notifications-footer a {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--fdd-navy);
}

.notification-empty {
    padding: 1.6rem 1rem;
    text-align: center;
    color: var(--fdd-muted);
    font-size: 0.8rem;
}

.notification-list-item {
    border-left: 3px solid transparent;
}

.notification-list-item.is-unread {
    border-left-color: var(--fdd-red);
    background: #fffafa;
}

/* ===== Pie de p�gina y changelog ===== */

.app-footer-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.app-version {
    color: var(--fdd-navy);
    font-weight: 800;
}

.app-footer-sep {
    color: #c4cbd8;
}

.footer-update-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: var(--fdd-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-update-link:hover {
    color: var(--fdd-red);
}

.footer-update-link.is-new {
    color: var(--fdd-red);
    font-weight: 800;
    animation: blinkSoft 2.4s ease-in-out infinite;
}

.badge-nuevo {
    display: none;
    align-items: center;
    border-radius: 999px;
    background: var(--fdd-red);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.12rem 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-nuevo.is-visible {
    display: inline-flex;
}

@keyframes blinkSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.changelog-modal {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.changelog-header {
    background: var(--fdd-red);
    color: #fff;
    border: 0;
    padding: 1rem 1.25rem;
}

.changelog-header .modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
}

.changelog-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.changelog-body {
    padding: 1.25rem;
    background: #fff;
}

.changelog-entry {
    padding: 1rem 0;
    border-bottom: 1px solid #eef1f7;
}

.changelog-entry:first-child {
    padding-top: 0;
}

.changelog-entry:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.changelog-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.changelog-entry-head h3 {
    margin: 0;
    color: var(--fdd-navy);
    font-size: 1.02rem;
    font-weight: 800;
}

.changelog-date {
    background: #eceff3;
    color: #4b5563;
    border-radius: 0.35rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
}

.changelog-entry ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #374151;
    font-size: 0.82rem;
    line-height: 1.55;
}

.changelog-entry li {
    margin-bottom: 0.3rem;
}

@media (max-width: 767.98px) {
    .app-notifications-menu {
        width: min(370px, calc(100vw - 1.5rem));
    }

    .app-footer-meta {
        justify-content: flex-start;
    }
}

/* ===== PWA, instalaci�n y notificaciones push ===== */

.footer-install-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: var(--fdd-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-install-link:hover {
    color: var(--fdd-red);
}

.notifications-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.notification-push-btn {
    width: 100%;
    border: 1px solid var(--fdd-border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--fdd-navy);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.42rem 0.6rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notification-push-btn:hover:not(:disabled) {
    color: var(--fdd-red);
    border-color: rgba(227, 30, 36, 0.35);
    background: #fff8f8;
}

.notification-push-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.notification-push-help {
    color: #98a2b3;
    font-size: 0.62rem;
    line-height: 1.3;
}

.install-steps {
    padding-left: 1.1rem;
    color: #374151;
    font-size: 0.82rem;
    line-height: 1.5;
}

.install-steps li {
    margin-bottom: 0.4rem;
}

/* ===== Barra superior, men� m�vil y pie de p�gina ===== */

.app-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.app-topbar .app-brand {
    margin-right: 0.5rem;
    flex: 0 0 auto;
}

.app-desktop-menu {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.app-menu-btn {
    width: 42px;
    height: 38px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--fdd-border);
    border-radius: 0.7rem;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.app-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--fdd-navy);
}

.app-menu-btn:hover {
    border-color: rgba(227, 30, 36, 0.4);
    background: #fff8f8;
    transform: translateY(-1px);
}

.app-mobile-drawer {
    width: min(330px, 88vw);
    border-right: 0;
    background: #fff;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.16);
}

.app-mobile-drawer .offcanvas-header {
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--fdd-border);
}

.app-mobile-drawer .app-brand {
    margin-right: 0;
}

.app-mobile-drawer .brand-logo {
    height: 36px;
}

.app-mobile-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
}

.mobile-user-card {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
}

.mobile-nav-section {
    margin: 1rem 0.5rem 0.35rem;
    color: #8a94a6;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0.75rem;
    border-radius: 0.6rem;
    color: var(--fdd-navy);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f1f5fb;
    color: var(--fdd-red);
    box-shadow: inset 3px 0 0 var(--fdd-red);
}

/* ===== Pie de p�gina ===== */

.app-footer-inner {
    align-items: center;
}

.app-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.app-footer-title {
    color: var(--fdd-navy);
    font-size: 0.78rem;
    font-weight: 600;
}

.app-footer-copy {
    color: var(--fdd-muted);
    font-size: 0.7rem;
}

/* ===== Aviso autom�tico de instalaci�n ===== */

.install-banner {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(500px, calc(100% - 1.5rem));
    padding: 0.75rem 1rem;
    border: 1px solid var(--fdd-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    transform: translateX(-50%);
    animation: installBannerIn 0.35s ease both;
}

.install-banner img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 0.65rem;
}

.install-banner-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.install-banner-copy strong {
    color: var(--fdd-navy);
    font-size: 0.84rem;
}

.install-banner-copy span {
    color: var(--fdd-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.install-banner .btn-close {
    flex: 0 0 auto;
}

@keyframes installBannerIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 767.98px) {
    .app-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-footer-meta {
        justify-content: flex-start;
    }

    .install-banner {
        bottom: 0.75rem;
        gap: 0.55rem;
        padding: 0.65rem 0.75rem;
    }

    .install-banner img {
        width: 38px;
        height: 38px;
    }

    .install-banner .btn {
        padding: 0.32rem 0.55rem;
        font-size: 0.74rem;
    }
}
