/* =========================================================
   KIBIT — GESTIONALE RIPARAZIONI
   Foglio di stile unificato: desktop, tablet e smartphone
   ========================================================= */

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --orange-border: #fed7aa;

    --navy: #0f172a;
    --text: #334155;
    --muted: #64748b;

    --page-bg: #f8fafc;
    --panel: #ffffff;
    --border: #e2e8f0;

    --success: #15803d;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --warning: #92400e;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --menu-gradient: linear-gradient(145deg, #4b46c5 0%, #713fce 52%, #078f92 100%);
    --menu-text: #f9fbff;
    --menu-muted: rgba(223, 225, 246, 0.74);
    --menu-line: rgba(255, 255, 255, 0.17);
    --menu-hover: rgba(255, 255, 255, 0.13);
    --menu-active: rgba(255, 255, 255, 0.24);

    --shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.14);
    --shadow-small: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page-bg);
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.10), transparent 34rem),
        linear-gradient(180deg, #ffffff 0, var(--page-bg) 420px);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--orange-dark);
    text-decoration: none;
}

a:hover {
    color: var(--orange);
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   NUOVO LAYOUT — app_menu.php / app_footer.php
   ========================================================= */

.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    width: 260px;
    min-height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    color: #ffffff;
    background: var(--menu-gradient);
    box-shadow: 12px 0 35px rgba(34, 36, 91, 0.12);
}

.app-brand {
    display: flex;
    min-height: 96px;
    align-items: center;
    gap: 12px;
    padding: 20px 21px;
    border-bottom: 1px solid var(--menu-line);
    color: #ffffff;
    text-decoration: none;
}

.app-brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.company-logo-wrap,
.app-brand .company-logo-wrap {
    display: flex;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.company-logo-image,
.app-brand .company-logo-image {
    display: block;
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
    background: transparent;
}

.app-brand-title {
    display: block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.app-brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--menu-muted);
    font-size: 11px;
    font-weight: 500;
}

.app-sidebar-user {
    padding: 17px 21px;
    border-bottom: 1px solid var(--menu-line);
}

.app-sidebar-user-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-user-role {
    margin-top: 5px;
    color: var(--menu-muted);
    font-size: 12px;
}

.app-navigation {
    display: block;
    flex: 1;
    padding: 21px 11px;
}

.app-navigation-title {
    margin: 0 12px 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-navigation-title--spaced {
    margin-top: 27px;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 5px;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--menu-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.app-nav-link:hover {
    color: #ffffff;
    background: var(--menu-hover);
    text-decoration: none;
    transform: translateX(2px);
}

.app-nav-link.active {
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: var(--menu-active);
    box-shadow: 0 8px 20px rgba(43, 29, 121, 0.22);
}

.app-nav-icon {
    display: inline-flex;
    width: 26px;
    flex: 0 0 26px;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.app-nav-label {
    font-size: 14px;
    font-weight: 600;
}

.app-sidebar-footer {
    margin-top: auto;
    padding: 16px 11px;
    border-top: 1px solid var(--menu-line);
}

.app-logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 13px;
    color: #ffe7ec;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.app-logout-link:hover {
    color: #ffffff;
    background: var(--menu-hover);
    text-decoration: none;
}

.app-main-area {
    display: block;
    width: calc(100% - 260px);
    min-width: 0;
    min-height: 100vh;
    margin-left: 260px;
    background: var(--page-bg);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 30px;
    border-bottom: 1px solid #e8eaf1;
    background: #ffffff;
    box-shadow: 0 3px 16px rgba(31, 41, 55, 0.04);
}

.app-topbar-title {
    overflow: hidden;
    color: #1e233b;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-avatar {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5654c9;
    background: linear-gradient(135deg, #eeeaff, #e2f8f5);
    font-size: 14px;
    font-weight: 800;
}

.app-topbar-user-name {
    color: #36384d;
    font-size: 14px;
    font-weight: 600;
}

.app-content {
    width: 100%;
    min-width: 0;
    padding: 30px;
}

.app-overlay {
    display: none;
}

.app-mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e2e4ee;
    border-radius: 11px;
    color: #252743;
    background: #ffffff;
    cursor: pointer;
    font-size: 20px;
}

/* =========================================================
   COMPONENTI CONTENUTO
   ========================================================= */

.top-bar,
.dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 850;
    letter-spacing: -0.6px;
    line-height: 1.15;
}

.user-role {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.actions,
.form-actions,
.table-actions,
.filter-actions,
.reminder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions {
    justify-content: flex-end;
}

.card {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.card-title {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 750;
}

.form-group {
    min-width: 0;
    margin-bottom: 16px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    color: var(--navy);
    background: #ffffff;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary {
    border-color: var(--orange);
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 4px 11px rgba(249, 115, 22, 0.24);
}

.btn-primary:hover {
    border-color: var(--orange-dark);
    color: #ffffff;
    background: var(--orange-dark);
}

.btn-secondary {
    border-color: var(--border);
    color: #475569;
    background: #ffffff;
}

.btn-secondary:hover {
    border-color: var(--orange-border);
    color: var(--orange-dark);
    background: var(--orange-light);
}

.btn-outline {
    border-color: var(--orange);
    color: var(--orange-dark);
    background: #ffffff;
}

.btn-outline:hover {
    color: #ffffff;
    background: var(--orange);
}

.btn-success {
    border-color: var(--success);
    color: #ffffff;
    background: var(--success);
}

.btn-success:hover {
    border-color: #166534;
    color: #ffffff;
    background: #166534;
}

.btn-danger {
    border-color: #b91c1c;
    color: #ffffff;
    background: #dc2626;
}

.btn-danger:hover {
    border-color: #991b1b;
    color: #ffffff;
    background: #b91c1c;
}

.btn-sm {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

/* =========================================================
   TABELLE
   ========================================================= */

.table-card {
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--muted);
    background: #fffaf6;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table td {
    color: var(--text);
    font-size: 13px;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

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

.text-muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* =========================================================
   AVVISI E BADGE
   ========================================================= */

.alert-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--danger-border);
    border-radius: 10px;
    color: var(--danger);
    background: var(--danger-bg);
    font-size: 13px;
}

.alert-success {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--success-border);
    border-radius: 10px;
    color: var(--success);
    background: var(--success-bg);
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-progress,
.badge-orange {
    color: #9a3412;
    background: #ffedd5;
}

.badge-ready,
.badge-green {
    color: #166534;
    background: #dcfce7;
}

.badge-done,
.badge-blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.badge-red {
    color: #991b1b;
    background: #fee2e2;
}

/* =========================================================
   GRIGLIE E FORM SPECIFICI
   ========================================================= */

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.filters-grid--wide {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.filter-actions {
    align-items: flex-end;
}

.repair-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.repair-form-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.repair-form-grid .form-group {
    margin-bottom: 0;
}

.client-form-grid,
.ticket-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.client-search-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.client-search-field {
    min-width: 280px;
    flex: 1 1 360px;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-content {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}

.dashboard-welcome {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.dashboard-stats,
.stats-grid,
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.dashboard-stat,
.stat-card,
.stats-card {
    min-width: 0;
    min-height: 135px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.dashboard-stat-icon,
.stat-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 10px;
    color: var(--orange-dark);
    background: var(--orange-light);
    font-size: 18px;
    font-weight: 800;
}

.stat-icon.primary {
    color: #c2410c;
    background: #ffedd5;
}

.stat-icon.warning {
    color: #92400e;
    background: #fef3c7;
}

.stat-icon.success {
    color: #15803d;
    background: #dcfce7;
}

.stat-icon.info {
    color: #1d4ed8;
    background: #dbeafe;
}

.dashboard-stat-value,
.stat-value,
.stat-number {
    display: block;
    margin: 6px 0 4px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 850;
    line-height: 1;
}

.dashboard-stat-label,
.stat-label,
.stat-title {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.info-box {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid var(--orange-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.info-box-title {
    margin-bottom: 3px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.info-box-text {
    color: var(--muted);
    font-size: 13px;
}

.stat-card-link {
    display: block;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-link:hover {
    border-color: var(--orange-border);
    color: inherit;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.18);
    text-decoration: none;
    transform: translateY(-3px);
}

/* =========================================================
   MODALE
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.60);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modal-content {
    padding: 22px;
}

.modal-title {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
}

.modal-body {
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1250px) {
    .filters-grid--wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1100px) {
    .repair-form-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 980px) {
    .app-sidebar {
        width: min(84vw, 310px);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main-area {
        width: 100%;
        margin-left: 0;
    }

    .app-topbar {
        min-height: 66px;
        padding: 12px 18px;
    }

    .app-mobile-menu-button {
        display: inline-flex;
    }

    .app-overlay.visible {
        position: fixed;
        inset: 0;
        z-index: 900;
        display: block;
        background: rgba(15, 23, 42, 0.48);
    }

    .app-content {
        padding: 22px 18px;
    }

    .dashboard-stats,
    .stats-grid,
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   SMARTPHONE E TABLET VERTICALE
   ========================================================= */

@media screen and (max-width: 700px) {
    .app-content {
        padding: 16px 14px;
    }

    .app-topbar {
        padding: 11px 14px;
    }

    .app-topbar-title {
        max-width: 56vw;
        font-size: 18px;
    }

    .app-topbar-user-name {
        display: none;
    }

    .top-bar,
    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 16px;
    }

    .top-bar .actions,
    .dashboard-topbar .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .top-bar .actions .btn,
    .dashboard-topbar .actions .btn {
        width: 100%;
        text-align: center;
    }

    .filters-grid,
    .filters-grid--wide,
    .repair-form-grid,
    .repair-form-grid--four,
    .ticket-form-grid,
    .client-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .repair-form-grid .form-group {
        margin-bottom: 16px;
    }

    .filter-actions,
    .form-actions,
    .reminder-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .filter-actions .btn,
    .form-actions .btn,
    .reminder-actions .btn,
    .reminder-actions form {
        width: 100%;
    }

    .client-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .client-search-field {
        min-width: 0;
    }

    .client-search-form .btn {
        width: 100%;
    }

    .table-scroll .table {
        min-width: 680px;
    }

    .dashboard-stats,
    .stats-grid,
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .dashboard-stat,
    .stat-card,
    .stats-card {
        min-height: 112px;
        padding: 16px;
    }

    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        min-height: 46px;
        font-size: 16px;
    }

    .btn {
        min-height: 44px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .app-sidebar {
        width: min(88vw, 310px);
    }

    .app-topbar {
        min-height: 60px;
        padding: 10px;
    }

    .app-mobile-menu-button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .app-topbar-title {
        max-width: 49vw;
        font-size: 16px;
    }

    .app-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .app-content {
        padding: 14px 10px;
    }

    .card {
        padding: 15px;
        border-radius: 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .top-bar .actions,
    .dashboard-topbar .actions,
    .filter-actions,
    .form-actions,
    .reminder-actions {
        grid-template-columns: 1fr;
    }

    .table-scroll .table {
        min-width: 620px;
    }

    .company-logo-wrap,
    .app-brand .company-logo-wrap,
    .company-logo-image,
    .app-brand .company-logo-image {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex-basis: 44px;
    }
}
.app-footer {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 16px 16px 0 0;
    background:
        radial-gradient(
            circle at 8% 120%,
            rgba(79, 70, 229, .10),
            transparent 34%
        ),
        radial-gradient(
            circle at 91% 115%,
            rgba(14, 165, 233, .10),
            transparent 35%
        ),
        rgba(255, 255, 255, .88);
    box-shadow: 0 -6px 22px rgba(15, 23, 42, .035);
}

.app-footer::before {
    position: absolute;
    width: 180px;
    height: 180px;
    top: -130px;
    right: 9%;
    border: 1px solid rgba(124, 58, 237, .13);
    border-radius: 50%;
    box-shadow:
        0 0 0 20px rgba(124, 58, 237, .035),
        0 0 0 42px rgba(14, 165, 233, .025);
    content: '';
    pointer-events: none;
}

.app-footer-line {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #4f46e5 0%,
        #7c3aed 42%,
        #0ea5e9 75%,
        #14b8a6 100%
    );
}

.app-footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
}

.app-footer-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.app-footer-logo {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #4338ca, #7c3aed 58%, #0ea5e9);
    box-shadow:
        0 8px 18px rgba(79, 70, 229, .22),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.app-footer-text {
    min-width: 0;
}

.app-footer-title {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.app-footer-title strong {
    color: #312e81;
    font-weight: 900;
    letter-spacing: .045em;
}

.app-footer-subtitle {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .015em;
}

.app-footer-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #047857;
    background: rgba(236, 253, 245, .88);
    box-shadow: 0 4px 12px rgba(5, 150, 105, .08);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-footer-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .13);
}

@supports (backdrop-filter: blur(8px)) {
    .app-footer {
        backdrop-filter: blur(10px);
    }
}

@media screen and (max-width: 650px) {
    .app-footer {
        margin-top: 22px;
        border-radius: 14px 14px 0 0;
    }

    .app-footer-content {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 15px 16px;
    }

    .app-footer-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 15px;
    }

    .app-footer-title {
        font-size: 11px;
    }

    .app-footer-subtitle {
        font-size: 9px;
    }

    .app-footer-status {
        padding: 6px 9px;
        font-size: 9px;
    }
}
.app-menu-credit {
    overflow: hidden;
    margin: 5px 12px 12px;
    padding: 0 8px;
    color: rgba(255, 255, 255, .32);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .005em;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-menu-credit strong {
    color: rgba(255, 255, 255, .52);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .025em;
}
