/*
Dashboard styles
*/


.homepage-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flyup-dashboard-notice {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
}

.flyup-dashboard-notice--success {
    color: var(--success);
    background: rgba(22, 163, 74, 0.08);
}

.flyup-dashboard-page {
    padding: 3rem 0 4rem;
}

.flyup-dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.flyup-dashboard-sidebar {
    position: sticky;
    top: 100px;
}

.flyup-dashboard-sidebar__inner {
    padding: 1rem;
}

.flyup-dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.flyup-dashboard-nav-item:hover,
.flyup-dashboard-nav-item.is-active {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
}

.flyup-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flyup-dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 1.6rem;
}

.flyup-dashboard-welcome h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.05;
}

.flyup-dashboard-welcome p {
    margin: 0.55rem 0 0;
    color: var(--text-secondary);
    max-width: 640px;
}

.flyup-dashboard-welcome__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flyup-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.flyup-dashboard-stat {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 150px;
}

.flyup-dashboard-stat__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    font-size: 1.15rem;
}

.flyup-dashboard-stat__label {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.flyup-dashboard-stat strong {
    font-size: 1.3rem;
    line-height: 1.15;
}

.flyup-dashboard-stat small {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.flyup-dashboard-section {
    padding: 1.5rem;
}

.flyup-dashboard-section__head {
    margin-bottom: 1rem;
}

.flyup-dashboard-section__head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.flyup-dashboard-quota__labels,
.flyup-dashboard-quota__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.flyup-dashboard-quota__labels {
    margin-bottom: 0.65rem;
}

.flyup-dashboard-quota__meta {
    margin-top: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.flyup-dashboard-quota__bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    overflow: hidden;
}

.flyup-dashboard-quota__fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.7s ease;
}

.flyup-dashboard-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.flyup-dashboard-service {
    padding: 1.6rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.flyup-dashboard-service::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
}

.flyup-dashboard-service.is-ai::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.flyup-dashboard-service.is-manual::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.flyup-dashboard-service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.flyup-dashboard-service__icon {
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.flyup-dashboard-service h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.flyup-dashboard-service p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.flyup-dashboard-grid-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.flyup-dashboard-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.flyup-dashboard-panel-highlight {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.flyup-dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.flyup-dashboard-tab {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.flyup-dashboard-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.flyup-dashboard-history {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.flyup-dashboard-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.flyup-dashboard-history-item__info h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.flyup-dashboard-history-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.flyup-dashboard-badge {
    display: inline-flex;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.badge-ai {
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent);
}

.badge-manual {
    background: rgba(245, 158, 11, 0.14);
    color: #c97c00;
}

.flyup-dashboard-history-item__actions {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

.flyup-dashboard-action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.flyup-dashboard-action-btn:hover {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.06);
}

.flyup-dashboard-billing {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.flyup-dashboard-billing__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
}

.flyup-dashboard-billing__row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.flyup-dashboard-inline-btn {
    align-self: flex-start;
    margin-top: 0.4rem;
}

.flyup-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flyup-dashboard-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.flyup-dashboard-profile__info h3 {
    margin: 0 0 0.25rem;
}

.flyup-dashboard-profile__info p,
.flyup-dashboard-profile__info small {
    display: block;
    margin: 0 0 0.45rem;
    color: var(--text-secondary);
}

.flyup-dashboard-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.flyup-dashboard-link:hover {
    text-decoration: underline;
}

.flyup-dashboard-empty {
    padding: 1.5rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 1180px) {
    .flyup-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flyup-dashboard-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .flyup-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .flyup-dashboard-sidebar {
        position: static;
    }

    .flyup-dashboard-services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .flyup-dashboard-page {
        padding: 2rem 0 3rem;
    }

    .flyup-dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .flyup-dashboard-history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .flyup-dashboard-history-item__actions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .flyup-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .flyup-dashboard-stat {
        min-height: auto;
    }
}


.flyup-dashboard-nav-item--logout {
    margin-top: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.flyup-dashboard-nav-item--logout:hover {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.06);
}

@media (max-width: 980px) {
    .flyup-dashboard-sidebar {
        position: static;
        top: auto;
    }
}


.flyup-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 920px;
}

.flyup-profile-card {
    min-height: 152px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.flyup-profile-card strong {
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: break-word;
}

@media (max-width: 900px) {
    .flyup-profile-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

/* =========================
   Point 3 - client dashboard final tuning
========================= */
.flyup-dashboard-notice--error {
    color: var(--danger, #dc2626);
    background: rgba(220, 38, 38, 0.08);
}

.flyup-profile-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.65fr);
    gap: 1.25rem;
    align-items: start;
}

.flyup-profile-summary-card {
    text-align: left;
}

.flyup-profile-summary-card h2 {
    margin: 0.9rem 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.flyup-profile-summary-card p,
.flyup-profile-summary-card small {
    margin: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.flyup-profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.flyup-profile-form label {
    display: grid;
    gap: 0.4rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.flyup-profile-form input,
.flyup-profile-form select {
    width: 100%;
    min-height: 46px;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
}

.flyup-profile-form input:disabled {
    color: var(--text-secondary);
    background: rgba(248, 250, 252, 0.92);
}

.flyup-profile-submit {
    margin-top: 1.1rem;
}

@media (max-width: 1180px) {
    .flyup-dashboard-sidebar {
        position: sticky;
        top: 78px;
        z-index: 30;
    }

    .flyup-dashboard-sidebar__inner {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.55rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.65rem;
        scrollbar-width: thin;
    }

    .flyup-dashboard-nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-bottom: 0;
        border-radius: 999px;
    }

    .flyup-dashboard-nav-item--logout {
        margin-top: 0;
        border-top: none;
        padding-top: 0.7rem;
    }

    .flyup-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .flyup-dashboard-page {
        padding: 1.25rem 0 2.5rem;
    }

    .flyup-dashboard-welcome__actions .btn,
    .flyup-profile-submit {
        width: 100%;
        justify-content: center;
    }

    .flyup-dashboard-history-item__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .flyup-profile-form__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .flyup-dashboard-tabs {
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .flyup-dashboard-tab {
        flex: 0 0 auto;
    }
}

/* =========================
   Point 3B - stronger tablet / mobile dashboard layout
========================= */
@media (max-width: 1180px) {
    .flyup-dashboard-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .flyup-dashboard-sidebar {
        width: 100%;
        max-width: 100%;
        position: sticky;
        top: 72px;
        z-index: 40;
    }

    .flyup-dashboard-sidebar__inner {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.55rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0.65rem;
        scrollbar-width: thin;
    }

    .flyup-dashboard-nav-item {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
        margin-bottom: 0;
        padding: 0.7rem 0.9rem;
        border-radius: 999px;
    }

    .flyup-dashboard-main {
        gap: 1rem;
    }

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

@media (max-width: 768px) {
    .flyup-dashboard-page .container {
        width: min(100% - 1.2rem, var(--container-width, 1180px));
    }

    .flyup-dashboard-welcome,
    .flyup-dashboard-section,
    .flyup-dashboard-stat {
        padding: 1rem;
        border-radius: 16px;
    }

    .flyup-dashboard-welcome h1 {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .flyup-dashboard-welcome p,
    .flyup-dashboard-nav-item,
    .flyup-dashboard-section,
    .flyup-dashboard-stat {
        font-size: 0.92rem;
    }

    .flyup-dashboard-stats,
    .flyup-dashboard-grid,
    .flyup-dashboard-services,
    .flyup-profile-grid,
    .flyup-profile-layout {
        grid-template-columns: 1fr !important;
    }

    .flyup-dashboard-history-item,
    .flyup-dashboard-history-item__actions {
        width: 100%;
    }

    .flyup-dashboard-history-item__actions .btn,
    .flyup-dashboard-welcome__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .flyup-dashboard-page {
        padding-top: 0.9rem;
    }

    .flyup-dashboard-sidebar {
        top: 64px;
    }

    .flyup-dashboard-sidebar__inner {
        padding: 0.55rem;
        gap: 0.45rem;
    }

    .flyup-dashboard-nav-item {
        padding: 0.62rem 0.78rem;
        font-size: 0.86rem;
    }

    .flyup-dashboard-stat strong {
        font-size: 1.15rem;
    }
}

/* =========================
   Point 3C - Mobile dashboard icon drawer menu
========================= */
.flyup-dashboard-mobile-menu {
    display: none;
}

@media (min-width: 1181px) {
    .flyup-dashboard-sidebar__inner {
        display: block;
    }
}

@media (max-width: 1180px) {
    .flyup-dashboard-sidebar {
        position: sticky;
        top: 72px;
        z-index: 45;
        width: 100%;
        max-width: 100%;
    }

    .flyup-dashboard-sidebar__inner {
        display: none !important;
    }

    .flyup-dashboard-mobile-menu {
        display: block;
        padding: 0.65rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(14, 165, 233, 0.12);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .flyup-dashboard-mobile-icons {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.45rem;
        align-items: center;
    }

    .flyup-dashboard-mobile-icon {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(14, 165, 233, 0.12);
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.88);
        color: var(--text-secondary);
        font-size: 1.05rem;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition);
    }

    .flyup-dashboard-mobile-icon:hover,
    .flyup-dashboard-mobile-icon.is-active {
        color: var(--accent);
        background: rgba(14, 165, 233, 0.10);
        border-color: rgba(14, 165, 233, 0.22);
        transform: translateY(-1px);
    }

    .flyup-dashboard-mobile-icon--logout {
        color: #b91c1c;
        background: rgba(239, 68, 68, 0.07);
        border-color: rgba(239, 68, 68, 0.14);
    }

    .flyup-dashboard-mobile-drawer {
        display: none;
        margin-top: 0.65rem;
        padding: 0.75rem;
        border-radius: 16px;
        background: linear-gradient(180deg, #ffffff, #f8fbff);
        border: 1px solid rgba(14, 165, 233, 0.12);
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
        animation: flyupDashboardDrawer 0.22s ease both;
    }

    .flyup-dashboard-mobile-drawer.is-open {
        display: flex;
    }

    .flyup-dashboard-mobile-drawer__text {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        color: var(--text-primary);
        font-size: 0.92rem;
    }

    .flyup-dashboard-mobile-drawer__text strong {
        overflow-wrap: anywhere;
    }

    .flyup-dashboard-mobile-drawer__icon {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 12px;
        background: rgba(14, 165, 233, 0.09);
    }

    .flyup-dashboard-mobile-drawer .btn {
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .flyup-dashboard-mobile-menu {
        padding: 0.55rem;
        border-radius: 18px;
    }

    .flyup-dashboard-mobile-icons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.42rem;
    }

    .flyup-dashboard-mobile-icon {
        min-height: 42px;
        border-radius: 13px;
        font-size: 1rem;
    }

    .flyup-dashboard-mobile-drawer {
        flex-direction: column;
        align-items: stretch;
    }

    .flyup-dashboard-mobile-drawer .btn {
        width: 100%;
        justify-content: center;
    }
}

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

/* =========================
   Point 3D - Mobile dashboard accordion (method B)
========================= */
.flyup-dashboard-mobile-accordion {
    display: none;
}

@media (max-width: 1024px) {
    .flyup-dashboard-page {
        padding: 1rem 0 2.5rem;
    }

    .flyup-dashboard-page > .container {
        width: min(100% - 1.1rem, var(--container-width, 1180px));
    }

    .flyup-dashboard-page--hub .flyup-dashboard-layout {
        display: none !important;
    }

    .flyup-dashboard-mobile-accordion {
        display: grid;
        gap: 0.65rem;
        width: 100%;
    }

    .flyup-dashboard-mobile-accordion__trigger {
        width: 100%;
        min-height: 58px;
        display: grid;
        grid-template-columns: 36px 1fr 28px;
        align-items: center;
        gap: 0.75rem;
        padding: 0.82rem 0.9rem;
        border: 1px solid rgba(14, 165, 233, 0.14);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--text-primary);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .flyup-dashboard-mobile-accordion__trigger > span:first-child {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: rgba(14, 165, 233, 0.08);
        font-size: 1rem;
    }

    .flyup-dashboard-mobile-accordion__trigger strong {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .flyup-dashboard-mobile-accordion__trigger em {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(14, 165, 233, 0.08);
        color: var(--accent);
        font-style: normal;
        font-weight: 800;
    }

    .flyup-dashboard-mobile-accordion__trigger.is-open {
        border-color: rgba(14, 165, 233, 0.32);
        background: linear-gradient(180deg, #ffffff, #f3fbff);
    }

    .flyup-dashboard-mobile-accordion__trigger.is-open em {
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: #fff;
    }

    .flyup-dashboard-mobile-accordion__logout {
        color: #b91c1c;
        border-color: rgba(239, 68, 68, 0.16);
        background: rgba(255, 255, 255, 0.94);
    }

    .flyup-dashboard-mobile-accordion__logout > span:first-child,
    .flyup-dashboard-mobile-accordion__logout em {
        background: rgba(239, 68, 68, 0.08);
        color: #b91c1c;
    }

    .flyup-dashboard-mobile-accordion__panel {
        animation: flyupMobileAccordionPanel 0.2s ease both;
    }

    .flyup-dashboard-mobile-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .flyup-dashboard-mobile-card h2 {
        margin: 0 0 0.55rem;
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        line-height: 1.12;
    }

    .flyup-dashboard-mobile-card p {
        margin: 0 0 0.9rem;
        color: var(--text-secondary);
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .flyup-dashboard-mobile-card .btn,
    .flyup-dashboard-mobile-card .btn-block {
        width: 100%;
        justify-content: center;
    }

    .flyup-dashboard-mobile-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin: 1rem 0;
    }

    .flyup-dashboard-mobile-stats > div {
        padding: 0.85rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: linear-gradient(180deg, #ffffff, #f8fbff);
    }

    .flyup-dashboard-mobile-stats span {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

    .flyup-dashboard-mobile-stats strong {
        display: block;
        color: var(--text-primary);
        font-size: 1rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .flyup-dashboard-mobile-quota {
        margin-top: 0.75rem;
    }

    .flyup-dashboard-mobile-mini-list {
        display: grid;
        gap: 0.5rem;
        margin: 0.8rem 0 1rem;
    }

    .flyup-dashboard-mobile-mini-list span {
        display: flex;
        align-items: center;
        min-height: 38px;
        padding: 0.5rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: 13px;
        background: #fff;
        color: var(--text-secondary);
        font-size: 0.88rem;
    }

    .flyup-dashboard-mobile-history .flyup-dashboard-history-item,
    .flyup-dashboard-mobile-card .flyup-dashboard-history-item {
        align-items: flex-start;
    }

    .flyup-dashboard-mobile-card .flyup-dashboard-history-item__actions {
        width: 100%;
    }

    .flyup-dashboard-mobile-card .flyup-dashboard-history-item__actions .btn {
        width: 100%;
    }

    .flyup-dashboard-mobile-card .flyup-profile-form__grid {
        grid-template-columns: 1fr;
    }

    .flyup-dashboard-mobile-card .flyup-profile-form label span {
        font-size: 0.82rem;
    }

    .flyup-dashboard-mobile-card input,
    .flyup-dashboard-mobile-card select,
    .flyup-dashboard-mobile-card textarea {
        min-height: 46px;
        font-size: 0.95rem;
    }
}

@media (max-width: 520px) {
    .flyup-dashboard-mobile-stats {
        grid-template-columns: 1fr;
    }

    .flyup-dashboard-mobile-accordion__trigger {
        min-height: 54px;
        grid-template-columns: 34px 1fr 26px;
        padding: 0.76rem 0.82rem;
    }

    .flyup-dashboard-mobile-accordion__trigger strong {
        font-size: 0.9rem;
    }

    .flyup-dashboard-mobile-card {
        padding: 0.85rem;
    }
}

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

/* =========================
   Point 3E - Clean mobile dashboard accordion
   Remove the previous mobile icon drawer menu so it never reappears
   after opening a dashboard section on tablet/GSM.
========================= */
.flyup-dashboard-mobile-menu,
.flyup-dashboard-mobile-icons,
.flyup-dashboard-mobile-drawer {
    display: none !important;
}

@media (max-width: 1024px) {
    .flyup-dashboard-sidebar {
        display: none !important;
    }
}

/* =========================
   Point 3F - Mobile dashboard back-to-menu buttons
   Shows a clear return button inside opened accordion panels on tablet/GSM.
========================= */
.flyup-dashboard-mobile-back {
    display: none;
}

@media (max-width: 1024px) {
    .flyup-dashboard-mobile-back {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        border: 1px solid rgba(14, 165, 233, 0.16);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--text-primary);
        font-weight: 800;
        font-size: 0.9rem;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

    .flyup-dashboard-mobile-back span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 999px;
        background: rgba(14, 165, 233, 0.10);
        color: var(--accent);
        font-weight: 900;
    }

    .flyup-dashboard-mobile-back--top {
        margin-bottom: 0.7rem;
    }

    .flyup-dashboard-mobile-back--bottom {
        margin-top: 0.85rem;
    }
}

/* =========================
   Point 3G - Back-to-menu only inside real mobile pages
   The dashboard accordion stays clean; the button appears only on Mode IA,
   Plan de voyage personnalisé and Mes voyages pages.
========================= */
.flyup-dashboard-mobile-page-back {
    display: none;
}

@media (max-width: 1024px) {
    .flyup-dashboard-mobile-accordion .flyup-dashboard-mobile-back {
        display: none !important;
    }

    .flyup-dashboard-mobile-page-back {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        border: 1px solid rgba(14, 165, 233, 0.16);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--text-primary);
        font-weight: 800;
        font-size: 0.9rem;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

    .flyup-dashboard-mobile-page-back span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 999px;
        background: rgba(14, 165, 233, 0.10);
        color: var(--accent);
        font-weight: 900;
    }

    .flyup-dashboard-mobile-page-back--top {
        margin-bottom: 0.9rem;
    }

    .flyup-dashboard-mobile-page-back--bottom {
        margin-top: 1rem;
    }
}

/* =========================
   My Trips - Point 4
========================= */
.flyup-my-trips-head p {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.flyup-my-trips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.flyup-my-trip-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.flyup-my-trip-card__top,
.flyup-my-trip-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flyup-my-trip-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.flyup-my-trip-card__lang {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
}

.flyup-my-trip-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.flyup-my-trip-card__meta div {
    min-width: 0;
}

.flyup-my-trip-card__meta dt {
    margin: 0 0 0.2rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
}

.flyup-my-trip-card__meta dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.flyup-my-trip-card__actions {
    margin-top: auto;
    justify-content: flex-start;
}

.flyup-btn-danger {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.06);
    color: #b91c1c;
}

.flyup-btn-danger:hover {
    background: rgba(220, 38, 38, 0.11);
    color: #991b1b;
}

.flyup-dashboard-notice--error {
    background: rgba(220, 38, 38, 0.07);
    border-color: rgba(220, 38, 38, 0.18);
    color: #b91c1c;
}

.flyup-my-trips-inline-notice {
    margin: 1rem 0;
}

@media (max-width: 980px) {
    .flyup-my-trips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .flyup-my-trip-card__meta {
        grid-template-columns: 1fr;
    }

    .flyup-my-trip-card__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Trip retention warning */
.flyup-my-trip-retention-warning {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.72));
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.flyup-my-trip-retention-warning strong {
    font-weight: 800;
}

.flyup-my-trip-retention-warning span {
    color: #b45309;
    font-size: 0.82rem;
    font-weight: 700;
}
