/* ============================================================
   AVITAN MOBILE v2.0 — Complete redesign
   Scope: body.is-mobile-experience only. Desktop untouched.
   ============================================================ */

body.is-mobile-experience {
    /* ── Color tokens ── */
    --mobile-bg: #eef3fb;
    --mobile-surface: #ffffff;
    --mobile-surface-glass: rgba(255, 255, 255, 0.82);
    --mobile-surface-muted: rgba(248, 251, 255, 0.96);
    --mobile-border: rgba(226, 232, 240, 0.9);
    --mobile-border-strong: rgba(23, 70, 162, 0.18);
    --mobile-ink: #0d1f3c;
    --mobile-ink-2: #1e3a5f;
    --mobile-muted: #5a7399;
    --mobile-faint: #8ba0be;

    /* ── Brand ── */
    --mobile-brand: #1748a8;
    --mobile-brand-h: #1240a0;
    --mobile-brand-soft: #dde9fc;
    --mobile-brand-gradient: linear-gradient(135deg, #1748a8 0%, #2f74e8 55%, #5b8def 100%);
    --mobile-brand-gradient-deep: linear-gradient(150deg, #0f3498 0%, #1d62e8 100%);

    /* ── Semantic ── */
    --mobile-success: #16803d;
    --mobile-success-soft: #d1fae5;
    --mobile-warning: #b45309;
    --mobile-warning-soft: #fef3c7;
    --mobile-danger: #b91c1c;
    --mobile-danger-soft: #fee2e2;

    /* ── Shadows ── */
    --mobile-shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --mobile-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
    --mobile-shadow-card: 0 8px 24px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.05);
    --mobile-shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
    --mobile-shadow-float: 0 20px 48px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
    --mobile-shadow-brand: 0 14px 36px rgba(23, 70, 162, 0.3);

    /* ── Geometry ── */
    --mobile-radius: 16px;
    --mobile-radius-lg: 22px;
    --mobile-radius-xl: 28px;
    --mobile-radius-2xl: 32px;
    --mobile-radius-pill: 999px;

    /* ── Fields ── */
    --mobile-field-height: 54px;

    /* ── Safe areas ── */
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);

    /* ── Easing ── */
    --mobile-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mobile-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --mobile-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    min-height: 100dvh;
    font-family: var(--font-hebrew), var(--font-latin);
    font-size: 1rem;
    line-height: 1.7;
    word-spacing: 0.05em;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(37, 99, 235, 0.22) 0%, transparent 55%),
        radial-gradient(80% 40% at 100% 0%, rgba(14, 165, 233, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #f5f9ff 0%, #eef3fb 100%);
    color: var(--mobile-ink);
    overscroll-behavior-y: contain;
}

body.is-mobile-experience::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.5), transparent 22%),
        radial-gradient(circle at 85% 80%, rgba(219, 234, 254, 0.35), transparent 28%);
}

body.is-mobile-experience,
body.is-mobile-experience * {
    -webkit-tap-highlight-color: transparent;
}

body.is-mobile-experience.mobile-sidebar-open {
    overflow: auto;
}

/* ── Layout ── */

body.is-mobile-experience .dashboard-container {
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}

body.is-mobile-experience .main-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--mobile-safe-top) + 0.8rem) 1rem calc(7.5rem + var(--mobile-safe-bottom)) !important;
    background: transparent;
    overflow: visible;
}

/* ============================================================
   HEADER — frosted glass pill
   ============================================================ */

body.is-mobile-experience .mobile-header {
    position: sticky;
    top: calc(var(--mobile-safe-top) + 0.4rem);
    z-index: 70;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding: 0.78rem 0.9rem;
    border-radius: var(--mobile-radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

body.is-mobile-experience .mobile-header .btn {
    inline-size: 44px;
    block-size: 44px;
    min-block-size: unset !important;
    padding: 0 !important;
    justify-content: center;
    border-radius: 15px;
    background: rgba(23, 70, 162, 0.07);
    border: 1.5px solid rgba(23, 70, 162, 0.1);
    box-shadow: none;
    transition: background 140ms ease, transform 120ms ease !important;
}

body.is-mobile-experience .mobile-header .btn:active {
    transform: scale(0.88) !important;
    background: rgba(23, 70, 162, 0.15) !important;
}

body.is-mobile-experience .mobile-header span {
    flex: 1;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--mobile-ink) !important;
    text-align: start;
}

/* ── Sidebar disabled on mobile ── */

body.is-mobile-experience .sidebar,
body.is-mobile-experience .sidebar-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

body.is-mobile-experience .sidebar-header,
body.is-mobile-experience .sidebar-footer {
    border-color: transparent;
}

/* ============================================================
   CARDS
   ============================================================ */

body.is-mobile-experience .card,
body.is-mobile-experience .login-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid var(--mobile-border);
    border-radius: var(--mobile-radius-xl);
    box-shadow: var(--mobile-shadow-card);
    padding: 1.2rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

body.is-mobile-experience .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.9) 80%, transparent);
    pointer-events: none;
}

/* ── Header card (gradient banner at top of invoice/list pages) ── */

body.is-mobile-experience .header-card {
    padding: 1.4rem !important;
    background: var(--mobile-brand-gradient) !important;
    border: none !important;
    box-shadow: var(--mobile-shadow-brand) !important;
}

body.is-mobile-experience .header-card::before {
    display: none;
}

body.is-mobile-experience .header-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.28) 0%, transparent 40%),
        radial-gradient(circle at 12% 88%, rgba(0, 0, 0, 0.06) 0%, transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
}

body.is-mobile-experience .header-card h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    color: #ffffff !important;
}

body.is-mobile-experience .client-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

body.is-mobile-experience .header-card .client-info:last-child {
    margin-top: 1rem;
}

body.is-mobile-experience .header-card .badge {
    align-self: flex-start;
    padding: 0.35rem 0.8rem;
    border-radius: var(--mobile-radius-pill);
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
}

body.is-mobile-experience .header-card .btn,
body.is-mobile-experience .header-card button,
body.is-mobile-experience .header-card a.btn {
    inline-size: 100%;
}

/* ============================================================
   FORM INPUTS
   ============================================================ */

body.is-mobile-experience label {
    display: block;
    margin-bottom: 0.48rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mobile-ink-2);
}

body.is-mobile-experience input,
body.is-mobile-experience select,
body.is-mobile-experience textarea {
    width: 100%;
    min-block-size: var(--mobile-field-height);
    padding: 0.9rem 1rem;
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--mobile-radius);
    background: rgba(248, 251, 255, 0.98);
    color: var(--mobile-ink);
    font-size: 1rem;
    line-height: 1.45;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms var(--mobile-ease), box-shadow 160ms var(--mobile-ease), background 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

body.is-mobile-experience textarea {
    min-block-size: 110px;
    resize: none;
}

body.is-mobile-experience input::placeholder,
body.is-mobile-experience textarea::placeholder {
    color: var(--mobile-faint);
}

body.is-mobile-experience input:focus,
body.is-mobile-experience select:focus,
body.is-mobile-experience textarea:focus {
    outline: none;
    border-color: rgba(23, 70, 162, 0.5);
    box-shadow: 0 0 0 3px rgba(23, 70, 162, 0.12);
    background: #ffffff;
}

body.is-mobile-experience .mobile-focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */

body.is-mobile-experience .btn,
body.is-mobile-experience .lightBtn,
body.is-mobile-experience button,
body.is-mobile-experience a.btn {
    min-block-size: 50px;
    padding: 0.8rem 1.2rem;
    border-radius: var(--mobile-radius);
    font-size: 0.96rem;
    font-weight: 700;
    transition: transform 120ms var(--mobile-ease), box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

body.is-mobile-experience .btn:active,
body.is-mobile-experience .lightBtn:active,
body.is-mobile-experience button:active,
body.is-mobile-experience a.btn:active {
    transform: scale(0.96) !important;
}

body.is-mobile-experience .btn-primary,
body.is-mobile-experience .lightBtn.primary {
    box-shadow: 0 8px 20px rgba(23, 70, 162, 0.22);
}

body.is-mobile-experience .btn-outline,
body.is-mobile-experience .btn-ghost,
body.is-mobile-experience .lightBtn.secondary {
    background: rgba(248, 251, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.28);
}

/* ============================================================
   TABLE → CARDS
   ============================================================ */

body.is-mobile-experience .table-container {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.is-mobile-experience .mobile-table-cards {
    min-inline-size: 100% !important;
    border-spacing: 0;
}

body.is-mobile-experience .mobile-table-cards thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

body.is-mobile-experience .mobile-table-cards tbody {
    display: grid;
    gap: 0.75rem;
}

body.is-mobile-experience .mobile-table-cards tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1rem;
    padding: 1rem;
    border-radius: var(--mobile-radius-lg);
    border: 1.5px solid var(--mobile-border);
    background: #ffffff;
    box-shadow: var(--mobile-shadow-sm);
    transition: transform 140ms var(--mobile-ease), box-shadow 160ms ease;
}

body.is-mobile-experience .mobile-table-cards tbody tr:active {
    transform: scale(0.99);
    box-shadow: var(--mobile-shadow-xs);
}

body.is-mobile-experience .mobile-table-cards td {
    display: grid;
    gap: 0.22rem;
    padding: 0 !important;
    border: none;
    background: transparent !important;
}

body.is-mobile-experience .mobile-table-cards td::before {
    content: attr(data-cell-label);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mobile-faint);
}

body.is-mobile-experience .mobile-table-cards tfoot td,
body.is-mobile-experience .mobile-table-cards .add-row-cell {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    grid-column: 1 / -1;
}

body.is-mobile-experience .mobile-table-cards .add-row-cell .btn {
    min-block-size: 52px;
    width: 100%;
    border-style: dashed !important;
    border-color: rgba(23, 70, 162, 0.22) !important;
    background: rgba(221, 233, 252, 0.4);
    color: var(--mobile-brand);
    border-radius: var(--mobile-radius) !important;
}

/* ── Document summary ── */

body.is-mobile-experience .doc-summary-card {
    inline-size: 100%;
    border-radius: var(--mobile-radius-lg);
    border: 1.5px solid rgba(23, 70, 162, 0.1);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.38), #ffffff);
    box-shadow: none;
}

body.is-mobile-experience .doc-summary-row {
    font-size: 0.96rem;
}

body.is-mobile-experience .doc-summary-row.is-total {
    margin-top: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1.5px solid rgba(23, 70, 162, 0.1);
    font-size: 1.14rem;
    font-weight: 800;
}

/* ── Form layouts ── */

body.is-mobile-experience #invoiceForm > .card:first-of-type > div,
body.is-mobile-experience #receiptForm .card:first-of-type > div {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

body.is-mobile-experience #receiptForm {
    gap: 1rem !important;
}

body.is-mobile-experience #receiptForm,
body.is-mobile-experience #openInvoicesCard {
    grid-column: 1 / -1;
}

/* ── Autocomplete ── */

body.is-mobile-experience .autocomplete-wrapper {
    gap: 0.5rem !important;
}

body.is-mobile-experience .autocomplete-wrapper > .btn,
body.is-mobile-experience .autocomplete-wrapper > button {
    inline-size: 52px;
    min-block-size: 52px !important;
    padding: 0 !important;
    justify-content: center;
    border-radius: var(--mobile-radius) !important;
}

body.is-mobile-experience .autocomplete-dropdown {
    margin-top: 0.5rem;
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--mobile-radius-lg);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--mobile-shadow-float);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.is-mobile-experience .autocomplete-item {
    padding: 1rem;
    font-size: 0.96rem;
}

body.is-mobile-experience .autocomplete-item:active {
    background: rgba(23, 70, 162, 0.06);
}

/* ============================================================
   QUICK ACTIONS / MENU GRID
   ============================================================ */

body.is-mobile-experience .quick-actions-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
}

body.is-mobile-experience .quick-action-btn,
body.is-mobile-experience .menu-item {
    min-block-size: 130px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.1rem;
    border-radius: var(--mobile-radius-xl);
    box-shadow: var(--mobile-shadow-card);
    text-align: start;
    border: 1.5px solid var(--mobile-border);
    transition: transform 140ms var(--mobile-ease), box-shadow 160ms ease !important;
}

body.is-mobile-experience .quick-action-btn:active,
body.is-mobile-experience .menu-item:active {
    transform: scale(0.95) !important;
    box-shadow: var(--mobile-shadow-sm) !important;
}

body.is-mobile-experience .quick-action-icon,
body.is-mobile-experience .menu-item-icon {
    inline-size: 52px;
    block-size: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 1.5rem;
    margin-bottom: 0.55rem;
}

body.is-mobile-experience .actions-bar {
    display: none !important;
}

/* ============================================================
   STICKY CTA
   ============================================================ */

body.is-mobile-experience .mobile-sticky-cta {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 90;
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 1rem calc(0.9rem + var(--mobile-safe-bottom));
    background:
        linear-gradient(180deg,
            rgba(238, 243, 251, 0) 0%,
            rgba(238, 243, 251, 0.96) 20%,
            rgba(238, 243, 251, 1) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: transform 220ms var(--mobile-ease), opacity 220ms ease;
}

body.is-mobile-experience .mobile-sticky-cta.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

body.is-mobile-experience .mobile-sticky-cta__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-inline: 0.25rem;
}

body.is-mobile-experience .mobile-sticky-cta__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mobile-faint);
}

body.is-mobile-experience .mobile-sticky-cta__value {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--mobile-ink);
}

body.is-mobile-experience .mobile-sticky-cta__actions {
    display: grid;
    grid-template-columns: minmax(100px, 0.65fr) minmax(0, 1fr);
    gap: 0.65rem;
}

body.is-mobile-experience .mobile-sticky-cta__back,
body.is-mobile-experience .mobile-sticky-cta__button {
    min-block-size: 58px !important;
    border: none;
    border-radius: var(--mobile-radius-xl);
    font-size: 1rem;
    font-weight: 800;
}

body.is-mobile-experience .mobile-sticky-cta__back {
    background: rgba(255, 255, 255, 0.95);
    color: var(--mobile-ink);
    border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: var(--mobile-shadow-sm);
}

body.is-mobile-experience .mobile-sticky-cta__button {
    background: var(--mobile-brand-gradient);
    color: #ffffff;
    box-shadow: var(--mobile-shadow-brand);
    animation: none;
}

body.is-mobile-experience .mobile-sticky-cta__button.is-pulsing {
    animation: mobilePulseGlow 1.6s ease 0s 2;
}

body.is-mobile-experience .mobile-sticky-cta__button:disabled {
    opacity: 0.5;
    box-shadow: none;
    filter: saturate(0.5);
}

body.is-mobile-experience .mobile-sticky-cta__back[hidden] {
    display: none !important;
}

body.is-mobile-experience .mobile-sticky-cta[data-back-hidden="true"] .mobile-sticky-cta__button {
    grid-column: 1 / -1;
}

/* ============================================================
   DIALOGS / MODALS — bottom sheet
   ============================================================ */

body.is-mobile-experience .mobile-floating-panel,
body.is-mobile-experience .site-dialog,
body.is-mobile-experience .site-message-dialog {
    inline-size: min(100%, 100vw) !important;
    max-inline-size: min(100%, 100vw) !important;
    margin: auto 0 0 !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: var(--mobile-shadow-float);
}

body.is-mobile-experience .site-dialog-backdrop,
body.is-mobile-experience .site-message-backdrop {
    align-items: flex-end;
    padding: 0;
}

body.is-mobile-experience .site-dialog-actions,
body.is-mobile-experience .site-message-actions {
    padding-bottom: calc(1rem + var(--mobile-safe-bottom));
}

body.is-mobile-experience .site-dialog-btn,
body.is-mobile-experience .site-message-actions .btn {
    inline-size: 100%;
    justify-content: center;
}

/* ============================================================
   DOCUMENT VIEWER MODAL — full-screen on mobile
   ============================================================ */

body.is-mobile-experience #documentModal {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: stretch !important;
    background: rgba(8, 18, 38, 0.78) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.is-mobile-experience #documentModal > div {
    width: 100% !important;
    max-width: 100% !important;
    height: 94dvh !important;
    max-height: 94dvh !important;
    border-radius: 28px 28px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 -8px 48px rgba(15, 23, 42, 0.24) !important;
    background: #ffffff !important;
}

/* Drag handle injected by JS */
body.is-mobile-experience .mobile-doc-handle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 2px;
    background: #ffffff;
}

body.is-mobile-experience .mobile-doc-handle::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.45);
}

/* Header bar inside modal */
body.is-mobile-experience #documentModal > div > div:nth-child(2) {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    border-radius: 0 !important;
}

body.is-mobile-experience #documentModal > div > div:nth-child(2) h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mobile-ink);
    margin: 0;
}

body.is-mobile-experience #documentModal > div > div:nth-child(2) button {
    min-block-size: 36px !important;
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.5);
    border: none;
    font-size: 1.1rem;
}

/* PDF iframe container */
body.is-mobile-experience #documentModal > div > div:nth-child(3) {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden;
    background: #f1f5f9 !important;
    padding: 0 !important;
}

body.is-mobile-experience #documentModal #pdfFrame {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* Actions row — horizontally scrollable */
body.is-mobile-experience #documentModal > div > div:nth-child(4) {
    flex: 0 0 auto;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 10px 12px calc(10px + var(--mobile-safe-bottom)) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

body.is-mobile-experience #documentModal > div > div:nth-child(4)::-webkit-scrollbar {
    display: none;
}

body.is-mobile-experience #documentModal > div > div:nth-child(4) .btn,
body.is-mobile-experience #documentModal > div > div:nth-child(4) a.btn,
body.is-mobile-experience #documentModal > div > div:nth-child(4) button {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    white-space: nowrap;
    font-size: 0.88rem !important;
    padding: 0.55rem 0.95rem !important;
}

/* Hide horizontal divider inside actions */
body.is-mobile-experience #documentModal > div > div:nth-child(4) > div[style*="height: 1px"],
body.is-mobile-experience #documentModal > div > div:nth-child(4) > div[style*="height:1px"] {
    display: none !important;
}

/* ============================================================
   FILTER FORM — scrollable pill tabs + clean grid
   ============================================================ */

/* Tab row */
body.is-mobile-experience #filterForm > div:first-child {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    padding-bottom: 3px;
}

body.is-mobile-experience #filterForm > div:first-child::-webkit-scrollbar {
    display: none;
}

body.is-mobile-experience #filterForm > div:first-child .btn {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding: 0.44rem 1rem !important;
    border-radius: var(--mobile-radius-pill) !important;
    font-size: 0.86rem !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none !important;
    border: 1.5px solid transparent !important;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease !important;
}

body.is-mobile-experience #filterForm > div:first-child .btn-primary {
    background: var(--mobile-brand) !important;
    color: #ffffff !important;
    border-color: var(--mobile-brand) !important;
    box-shadow: 0 4px 12px rgba(23, 70, 162, 0.22) !important;
}

body.is-mobile-experience #filterForm > div:first-child .btn:not(.btn-primary) {
    background: rgba(248, 251, 255, 0.95) !important;
    color: var(--mobile-muted) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}

/* Advanced filter grid */
body.is-mobile-experience #filterForm > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    background: rgba(248, 251, 255, 0.92) !important;
    border-radius: var(--mobile-radius-lg) !important;
    padding: 0.9rem !important;
    border: 1.5px solid rgba(226, 232, 240, 0.7) !important;
    flex-wrap: unset !important;
    align-items: unset !important;
}

body.is-mobile-experience #filterForm > div:nth-child(2) > div:first-child {
    grid-column: 1 / -1 !important;
}

body.is-mobile-experience #filterForm > div:nth-child(2) > div input[style*="width: 140px"],
body.is-mobile-experience #filterForm > div:nth-child(2) > div input[style*="width:140px"] {
    width: 100% !important;
}

body.is-mobile-experience #filterForm > div:nth-child(2) > button {
    min-height: 50px !important;
    border-radius: var(--mobile-radius) !important;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */

body.is-mobile-experience .mobile-success-modal {
    padding: 0 !important;
    align-items: stretch !important;
}

body.is-mobile-experience .mobile-success-modal__panel {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    block-size: 100% !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #f5f9ff 0%, #eef3fb 100%) !important;
}

body.is-mobile-experience .mobile-success-modal__header {
    padding: calc(var(--mobile-safe-top) + 1rem) 1rem 0.9rem !important;
    background: transparent !important;
    border-bottom: none !important;
}

body.is-mobile-experience .mobile-success-modal__preview {
    flex: 0 0 auto !important;
    padding: 0 1rem !important;
    background: transparent !important;
}

body.is-mobile-experience .mobile-success-modal__preview iframe {
    inline-size: 100%;
    min-block-size: 40vh;
    border-radius: var(--mobile-radius-xl);
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    background: #ffffff;
    box-shadow: var(--mobile-shadow-card);
}

body.is-mobile-experience .mobile-success-modal__actions {
    padding: 0.9rem 1rem calc(1rem + var(--mobile-safe-bottom)) !important;
    background: transparent !important;
    border-top: none !important;
    display: grid !important;
    gap: 0.65rem;
    justify-content: stretch !important;
}

body.is-mobile-experience .mobile-success-modal__actions .btn,
body.is-mobile-experience .mobile-success-modal__actions a.btn {
    inline-size: 100%;
    justify-content: center;
}

/* ============================================================
   RESULT CARD
   ============================================================ */

body.is-mobile-experience .mobile-result-card {
    margin: 0.75rem;
    padding: 1.1rem;
    border-radius: var(--mobile-radius-xl);
    border: 1.5px solid rgba(22, 128, 61, 0.15);
    background: linear-gradient(180deg, rgba(209, 250, 229, 0.7), #ffffff 60%);
    box-shadow: var(--mobile-shadow-sm);
}

body.is-mobile-experience .mobile-result-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

body.is-mobile-experience .mobile-result-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: var(--mobile-radius-pill);
    background: rgba(22, 128, 61, 0.1);
    color: var(--mobile-success);
    font-size: 0.8125rem;
    font-weight: 800;
}

body.is-mobile-experience .mobile-result-card__status {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mobile-muted);
}

body.is-mobile-experience .mobile-result-card__title {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mobile-ink);
}

body.is-mobile-experience .mobile-result-card__preview {
    margin: 0 0 1rem;
    padding: 0.9rem;
    border-radius: var(--mobile-radius);
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.85);
    color: var(--mobile-ink);
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    max-block-size: 200px;
    overflow: auto;
}

body.is-mobile-experience .mobile-result-card__actions-row {
    display: grid;
    gap: 0.65rem;
}

/* ============================================================
   TOAST
   ============================================================ */

body.is-mobile-experience .mobile-feedback-toast {
    position: fixed;
    inset-inline: 1rem;
    inset-block-end: calc(6.5rem + var(--mobile-safe-bottom));
    z-index: 120;
    padding: 0.88rem 1.2rem;
    border-radius: var(--mobile-radius-lg);
    background: rgba(13, 31, 60, 0.96);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--mobile-shadow-float);
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    transition: opacity 200ms var(--mobile-ease), transform 240ms var(--mobile-spring);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.is-mobile-experience .mobile-feedback-toast[data-tone="error"] {
    background: rgba(185, 28, 28, 0.96);
}

body.is-mobile-experience .mobile-feedback-toast[data-tone="success"] {
    background: rgba(22, 128, 61, 0.96);
}

body.is-mobile-experience .mobile-feedback-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

body.is-mobile-experience .mobile-reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    transition: opacity 400ms var(--mobile-ease-out), transform 440ms var(--mobile-ease-out);
    transition-delay: var(--mobile-reveal-delay, 0ms);
}

body.is-mobile-experience .mobile-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

body.is-mobile-experience.page-login {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: calc(var(--mobile-safe-top) + 1rem) 1rem calc(1.5rem + var(--mobile-safe-bottom)) !important;
}

body.is-mobile-experience.page-login .login-wrap {
    max-inline-size: 100%;
    gap: 1.1rem;
}

body.is-mobile-experience.page-login .login-brand {
    text-align: start;
    padding: 0.3rem 0.25rem;
}

body.is-mobile-experience.page-login .login-brand-logo {
    inline-size: 3.2rem;
    block-size: 3.2rem;
    border-radius: 22px;
    margin-bottom: 0.85rem;
}

body.is-mobile-experience.page-login .login-brand h1 {
    font-size: 1.9rem;
    margin-bottom: 0.35rem;
}

body.is-mobile-experience.page-login .login-brand p {
    font-size: 0.96rem;
    color: var(--mobile-muted);
}

body.is-mobile-experience.page-login .login-card {
    padding: 1.25rem !important;
}

body.is-mobile-experience.page-login .login-form-group {
    margin-bottom: 1rem;
}

body.is-mobile-experience.page-login .login-submit {
    min-block-size: 58px;
    border-radius: var(--mobile-radius-xl);
    background: var(--mobile-brand-gradient) !important;
    box-shadow: var(--mobile-shadow-brand) !important;
}

body.is-mobile-experience.page-login .theme-toggle-login {
    inline-size: 100%;
    justify-content: center;
    min-block-size: 50px;
    border-radius: var(--mobile-radius);
    box-shadow: var(--mobile-shadow-sm);
}

/* ============================================================
   MAIN MENU PAGE
   ============================================================ */

body.is-mobile-experience.page-main-menu {
    padding: 0;
}

body.is-mobile-experience.page-main-menu .menu-wrapper {
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--mobile-safe-top) + 0.9rem) 1rem calc(2rem + var(--mobile-safe-bottom));
    gap: 1rem;
}

body.is-mobile-experience.page-main-menu .menu-topbar,
body.is-mobile-experience.page-main-menu .menu-hero,
body.is-mobile-experience.page-main-menu .menu-footer {
    max-inline-size: none;
    margin: 0;
}

body.is-mobile-experience.page-main-menu .menu-topbar {
    position: sticky;
    top: calc(var(--mobile-safe-top) + 0.3rem);
    z-index: 50;
    padding: 0.85rem 1rem;
    border-radius: var(--mobile-radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--mobile-shadow-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

body.is-mobile-experience.page-main-menu .menu-topbar-actions {
    inline-size: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}

body.is-mobile-experience.page-main-menu .menu-hero {
    padding: 1.4rem;
    border-radius: var(--mobile-radius-xl);
    background: var(--mobile-brand-gradient) !important;
    box-shadow: var(--mobile-shadow-brand);
    color: #ffffff;
    text-align: start;
    overflow: hidden;
    position: relative;
}

body.is-mobile-experience.page-main-menu .menu-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22) 0%, transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

body.is-mobile-experience.page-main-menu .menu-hero h1,
body.is-mobile-experience.page-main-menu .menu-hero p {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

body.is-mobile-experience.page-main-menu .menu-hero h1 {
    font-size: 1.75rem !important;
}

body.is-mobile-experience.page-main-menu .menu-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
}

body.is-mobile-experience.page-main-menu .menu-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-block-size: 118px;
    border-radius: var(--mobile-radius-xl) !important;
    background: #ffffff !important;
    border: 1.5px solid var(--mobile-border) !important;
    box-shadow: var(--mobile-shadow-card) !important;
    text-align: center;
    gap: 0.5rem;
}

body.is-mobile-experience.page-main-menu .menu-item--primary {
    background: var(--mobile-brand-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: var(--mobile-shadow-brand) !important;
    grid-column: 1 / -1;
    min-block-size: 96px;
}

body.is-mobile-experience.page-main-menu .menu-item--disabled {
    opacity: 0.5;
}

body.is-mobile-experience.page-main-menu .menu-item-icon {
    font-size: 2rem;
}

body.is-mobile-experience.page-main-menu .theme-toggle-menu {
    inline-size: 100%;
    justify-content: center;
    min-block-size: 50px;
    border-radius: var(--mobile-radius);
    box-shadow: var(--mobile-shadow-sm);
    background: #ffffff !important;
}

/* ============================================================
   INLINE NAV PANEL
   ============================================================ */

body.is-mobile-experience .mobile-inline-nav-panel {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    padding: 1.1rem;
    border-radius: var(--mobile-radius-xl);
    border: 1.5px solid var(--mobile-border);
    background: #ffffff;
    box-shadow: var(--mobile-shadow-card);
    overflow: hidden;
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    transition: opacity 200ms var(--mobile-ease), transform 240ms var(--mobile-spring);
}

body.is-mobile-experience .mobile-inline-nav-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

body.is-mobile-experience .mobile-inline-nav-panel[hidden] {
    display: none !important;
}

body.is-mobile-experience .mobile-home-hero,
body.is-mobile-experience .mobile-flow-intro {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    padding: 1.1rem;
    border-radius: var(--mobile-radius-xl);
    border: 1.5px solid var(--mobile-border);
    background: #ffffff;
    box-shadow: var(--mobile-shadow-card);
    overflow: hidden;
}

body.is-mobile-experience .mobile-inline-nav-panel__intro,
body.is-mobile-experience .mobile-home-hero,
body.is-mobile-experience .mobile-flow-intro {
    display: grid;
    gap: 0.5rem;
}

body.is-mobile-experience .mobile-inline-nav-panel__eyebrow,
body.is-mobile-experience .mobile-flow-intro__eyebrow,
body.is-mobile-experience .mobile-home-hero__badge {
    display: inline-flex;
    inline-size: fit-content;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--mobile-radius-pill);
    background: rgba(23, 70, 162, 0.08);
    color: var(--mobile-brand);
    font-size: 0.8125rem;
    font-weight: 800;
}

body.is-mobile-experience .mobile-inline-nav-panel__title,
body.is-mobile-experience .mobile-flow-intro__title,
body.is-mobile-experience .mobile-home-hero__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--mobile-ink);
}

body.is-mobile-experience .mobile-flow-intro__helper,
body.is-mobile-experience .mobile-home-hero__helper {
    margin: 0;
    color: var(--mobile-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

body.is-mobile-experience .mobile-inline-nav-panel__groups {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.85rem;
}

body.is-mobile-experience .mobile-inline-nav-group {
    display: grid;
    gap: 0.6rem;
}

body.is-mobile-experience .mobile-inline-nav-group h3 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mobile-faint);
}

body.is-mobile-experience .mobile-inline-nav-links,
body.is-mobile-experience .mobile-home-hero__actions,
body.is-mobile-experience .mobile-flow-intro__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

body.is-mobile-experience .mobile-inline-nav-link,
body.is-mobile-experience .mobile-home-hero__action,
body.is-mobile-experience .mobile-flow-jump {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-block-size: 50px;
    padding: 0.8rem 0.9rem;
    border-radius: var(--mobile-radius);
    border: 1.5px solid var(--mobile-border);
    background: rgba(248, 251, 255, 0.98);
    color: var(--mobile-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--mobile-shadow-xs);
    transition: transform 140ms var(--mobile-ease), box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

body.is-mobile-experience .mobile-inline-nav-link::after,
body.is-mobile-experience .mobile-home-hero__action::after,
body.is-mobile-experience .mobile-flow-jump::after {
    content: "←";
    color: var(--mobile-brand);
    font-size: 0.9rem;
    flex-shrink: 0;
}

body.is-mobile-experience .mobile-inline-nav-link.is-active {
    background: rgba(221, 233, 252, 0.7);
    border-color: rgba(23, 70, 162, 0.22);
    color: var(--mobile-brand);
}

body.is-mobile-experience .mobile-inline-nav-link:active,
body.is-mobile-experience .mobile-home-hero__action:active,
body.is-mobile-experience .mobile-flow-jump:active {
    transform: scale(0.97);
    box-shadow: none;
}

body.is-mobile-experience .mobile-home-hero {
    background: var(--mobile-brand-gradient) !important;
    border-color: transparent !important;
    box-shadow: var(--mobile-shadow-brand) !important;
    position: relative;
}

body.is-mobile-experience .mobile-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.22), transparent 40%);
}

body.is-mobile-experience .mobile-home-hero .mobile-home-hero__title,
body.is-mobile-experience .mobile-home-hero .mobile-home-hero__helper {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

body.is-mobile-experience .mobile-home-hero__badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

body.is-mobile-experience .mobile-home-hero__actions {
    position: relative;
    z-index: 1;
}

body.is-mobile-experience .mobile-home-hero__action {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.is-mobile-experience .mobile-home-hero__action::after {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

body.is-mobile-experience .mobile-section-heading {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.9);
}

body.is-mobile-experience .mobile-section-heading strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mobile-ink);
}

body.is-mobile-experience .mobile-section-heading span {
    font-size: 0.84rem;
    color: var(--mobile-muted);
    line-height: 1.55;
}

/* ============================================================
   WIZARD
   ============================================================ */

body.is-mobile-experience .mobile-wizard-shell {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1.1rem;
    border-radius: var(--mobile-radius-xl);
    background: #ffffff;
    border: 1.5px solid var(--mobile-border);
    box-shadow: var(--mobile-shadow-card);
}

body.is-mobile-experience .mobile-wizard-shell__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body.is-mobile-experience .mobile-wizard-shell__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: var(--mobile-radius-pill);
    background: rgba(23, 70, 162, 0.08);
    color: var(--mobile-brand);
    font-size: 0.8125rem;
    font-weight: 800;
}

body.is-mobile-experience .mobile-wizard-shell__count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mobile-muted);
}

body.is-mobile-experience .mobile-wizard-shell__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mobile-ink);
}

body.is-mobile-experience .mobile-wizard-shell__helper {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--mobile-muted);
}

body.is-mobile-experience .mobile-wizard-shell__progress {
    block-size: 5px;
    border-radius: var(--mobile-radius-pill);
    background: rgba(219, 234, 254, 0.65);
    overflow: hidden;
}

body.is-mobile-experience .mobile-wizard-shell__progress-bar {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    border-radius: inherit;
    transform-origin: right center;
    transform: scaleX(0.08);
    background: var(--mobile-brand-gradient);
    transition: transform 300ms var(--mobile-ease-out);
}

body.is-mobile-experience .mobile-wizard-shell__chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

body.is-mobile-experience .mobile-wizard-shell__chips::-webkit-scrollbar {
    display: none;
}

body.is-mobile-experience .mobile-wizard-shell__chip {
    flex: 0 0 auto;
    min-block-size: 36px;
    padding: 0.46rem 0.85rem;
    border-radius: var(--mobile-radius-pill);
    border: 1.5px solid rgba(148, 163, 184, 0.26);
    background: rgba(248, 251, 255, 0.96);
    color: var(--mobile-muted);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--mobile-shadow-xs);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.is-mobile-experience .mobile-wizard-shell__chip.is-active {
    background: rgba(23, 70, 162, 0.1);
    color: var(--mobile-brand);
    border-color: rgba(23, 70, 162, 0.24);
}

body.is-mobile-experience .mobile-wizard-shell__chip.is-complete {
    color: var(--mobile-success);
    border-color: rgba(22, 128, 61, 0.22);
    background: rgba(22, 128, 61, 0.07);
}

body.is-mobile-experience .mobile-wizard-shell__chip:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

/* ── Wizard step transitions ── */

body.is-mobile-experience .mobile-wizard-step[hidden] {
    display: none !important;
}

body.is-mobile-experience .mobile-wizard-step.is-active {
    animation-duration: 340ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

body.is-mobile-experience .mobile-wizard-step.is-active[data-wizard-direction="forward"] {
    animation-name: mobileWizardStepForward;
}

body.is-mobile-experience .mobile-wizard-step.is-active[data-wizard-direction="back"] {
    animation-name: mobileWizardStepBack;
}

body.is-mobile-experience .mobile-wizard-step.is-active[data-wizard-direction="initial"] {
    animation-name: mobileWizardStepInitial;
}

/* ── Featured quick actions ── */

body.is-mobile-experience .quick-action-btn[data-mobile-featured="true"] {
    min-block-size: 138px;
}

body.is-mobile-experience .quick-action-btn[data-mobile-featured-rank="1"] {
    grid-column: 1 / -1;
    min-block-size: 148px;
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */

@media (max-width: 390px) {
    body.is-mobile-experience .mobile-inline-nav-links,
    body.is-mobile-experience .mobile-home-hero__actions,
    body.is-mobile-experience .mobile-flow-intro__tabs,
    body.is-mobile-experience .mobile-sticky-cta__actions,
    body.is-mobile-experience .quick-actions-grid {
        grid-template-columns: 1fr !important;
    }

    body.is-mobile-experience .mobile-table-cards tbody tr {
        grid-template-columns: 1fr !important;
    }

    body.is-mobile-experience #filterForm > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

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

@keyframes mobileWizardStepForward {
    from {
        opacity: 0;
        transform: translateX(-22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes mobileWizardStepBack {
    from {
        opacity: 0;
        transform: translateX(22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes mobilePulseGlow {
    0%, 100% {
        box-shadow: var(--mobile-shadow-brand);
    }
    50% {
        box-shadow: 0 16px 48px rgba(23, 70, 162, 0.48);
    }
}

@keyframes mobileRipple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    body.is-mobile-experience .mobile-reveal,
    body.is-mobile-experience .mobile-feedback-toast,
    body.is-mobile-experience .mobile-sticky-cta,
    body.is-mobile-experience .mobile-wizard-step.is-active,
    body.is-mobile-experience .mobile-wizard-shell__progress-bar,
    body.is-mobile-experience .mobile-inline-nav-panel,
    body.is-mobile-experience .mobile-sticky-cta__button,
    body.is-mobile-experience .btn,
    body.is-mobile-experience .lightBtn,
    body.is-mobile-experience button,
    body.is-mobile-experience a.btn,
    body.is-mobile-experience input,
    body.is-mobile-experience select,
    body.is-mobile-experience textarea {
        transition: none !important;
        animation: none !important;
    }
}
