/*
 * RobotBulls — Mobile Native UI
 * Uses Ionic web components for native iOS look.
 * Everything is inside @media (max-width: 767.98px) — desktop untouched.
 */

/* ═══════════════════════════════════════════════════════════
   1. Ionic Theme Variables (brand colours fed into Ionic)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    :root {
        /* Ionic primary colour */
        --ion-color-primary:              #1940b0;
        --ion-color-primary-rgb:          25, 64, 176;
        --ion-color-primary-contrast:     #ffffff;
        --ion-color-primary-contrast-rgb: 255, 255, 255;
        --ion-color-primary-shade:        #1638a0;
        --ion-color-primary-tint:         #3054be;

        /* Ionic toolbar */
        --ion-toolbar-background:         #1940b0;
        --ion-toolbar-color:              #ffffff;
        --ion-toolbar-border-color:       rgba(255,255,255,0.10);
        --ion-toolbar-segment-color:      rgba(255,255,255,0.70);
        --ion-toolbar-segment-color-checked: #ffffff;

        /* Ionic tab bar */
        --ion-tab-bar-background:         rgba(255,255,255,0.96);
        --ion-tab-bar-background-focused: #ffffff;
        --ion-tab-bar-border-color:       rgba(0,0,0,0.10);
        --ion-tab-bar-color:              #8e98a8;
        --ion-tab-bar-color-selected:     #1940b0;

        /* Ionic page / content background */
        --ion-background-color:           #f0f3f9;
        --ion-background-color-rgb:       240, 243, 249;
        --ion-text-color:                 #0f172a;
        --ion-text-color-rgb:             15, 23, 42;

        /* Ionic card */
        --ion-card-background:            #ffffff;

        /* Ionic item */
        --ion-item-background:            #ffffff;

        /* Safe areas forwarded to Ionic */
        --ion-safe-area-top:    env(safe-area-inset-top,    0px);
        --ion-safe-area-bottom: env(safe-area-inset-bottom, 0px);
        --ion-safe-area-left:   env(safe-area-inset-left,   0px);
        --ion-safe-area-right:  env(safe-area-inset-right,  0px);

        /* Internal layout helpers */
        --rb-header-h:  56px;
        --rb-tabbar-h:  50px;
    }
}

/* ═══════════════════════════════════════════════════════════
   2. Body reset
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    html {
        overflow-y: auto !important;    /* Ionic's iOS mode class sets overflow-x:hidden which
                                           can kill vertical scroll in some browsers */
    }

    html, body {
        background: var(--ion-background-color) !important;
        -webkit-tap-highlight-color: transparent;
        overflow-y: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   3. Ionic ion-header  (translucent iOS header)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    ion-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
    }

    ion-toolbar {
        --background: var(--ion-toolbar-background);
        --color: var(--ion-toolbar-color);
        --border-width: 0;
        --padding-start: 8px;
        --padding-end: 8px;
    }

    ion-title {
        color: #fff;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: -0.3px;
    }

    ion-button[fill="clear"] {
        --color: rgba(255,255,255,0.90);
    }

    ion-icon[slot="icon-only"] {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════════════
   4. Plain-HTML tab bar  (frosted glass bottom nav)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    nav.rb-tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        display: flex !important;
        align-items: stretch;
        height: calc(var(--rb-tabbar-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-top: 0.5px solid rgba(0, 0, 0, 0.12);
    }

    .rb-tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #8e98a8;
        position: relative;
        gap: 3px;
        padding: 6px 4px 4px;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        border: none;
        background: none;
    }

    .rb-tab-btn--active {
        color: #1940b0;
    }

    .rb-tab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
    }

    .rb-tab-icon svg {
        width: 24px;
        height: 24px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 32;
    }

    /* iOS touch highlight: centered pill behind the icon, NOT stretched to full button width.
       Lives in ::after so its shape is independent of the flex layout.
       Opacity 0→1 instantly on press (transition:0s), fades out on release (0.22s). */
    .rb-tab-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 56px;
        height: 40px;
        border-radius: 20px;          /* fully rounded short axis = pill */
        background: rgba(118, 118, 128, 0.18);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .rb-tab-btn--tapped::after {
        opacity: 1;
        transition: opacity 0s;       /* instant on press */
    }

    .rb-tab-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.1px;
        line-height: 1;
    }

    /* Header chat icon */
    .rb-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rb-header-icon svg {
        width: 22px;
        height: 22px;
        display: block;
        fill: none;
        stroke: rgba(255, 255, 255, 0.92);
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 32;
    }
}

/* ═══════════════════════════════════════════════════════════
   5. Hide desktop chrome, add spacing for Ionic chrome
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* Hide Bootstrap desktop nav and footer */
    .topbar-wrap,
    .footer-bar {
        display: none !important;
    }

    /* Offset page content below ion-header and above ion-tab-bar */
    .page-content {
        padding-top: calc(
            var(--rb-header-h) +
            env(safe-area-inset-top, 0px) +
            12px
        ) !important;
        padding-bottom: calc(
            var(--rb-tabbar-h) +
            env(safe-area-inset-bottom, 0px) +
            16px
        ) !important;
        min-height: 100vh;
    }

    .page-content .container {
        padding-left:  12px !important;
        padding-right: 12px !important;
    }

    .page-content .row {
        margin-left:  -6px !important;
        margin-right: -6px !important;
    }

    .page-content .row > [class*="col"] {
        padding-left:  6px !important;
        padding-right: 6px !important;
    }

    /* Smooth entrance */
    .page-content {
        animation: rb-page-in 0.22s ease both;
    }

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

/* ═══════════════════════════════════════════════════════════
   6. Cards — iOS floating card style
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .card {
        border: none !important;
        border-radius: 16px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.05) !important;
        overflow: hidden;
        margin-bottom: 12px !important;
    }

    .card-innr {
        padding: 16px !important;
    }

    .card-head { padding-bottom: 8px !important; }

    .card-title, h4.card-title {
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: -0.2px;
        color: #0f172a !important;
    }

    h4.card-sub-title-s2 {
        color: #ffffff !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   7. Buttons
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .btn {
        border-radius: 12px !important;
        font-weight: 600 !important;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.12s, transform 0.1s !important;
    }

    .btn:active {
        opacity: 0.8 !important;
        transform: scale(0.97) !important;
    }

    .btn-primary {
        background: #1940b0 !important;
        border-color: #1940b0 !important;
    }

    .btn-block {
        border-radius: 14px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: 16px !important;
    }

    .btn-sm { border-radius: 8px !important; }
}

/* ═══════════════════════════════════════════════════════════
   8. Form inputs
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .input-bordered,
    .form-control {
        border-radius: 10px !important;
        border: 1.5px solid #e2e8f0 !important;
        padding: 12px 14px !important;
        font-size: 15px !important;
        background: #f8fafc !important;
        -webkit-appearance: none;
        transition: border-color 0.15s, box-shadow 0.15s !important;
    }

    .input-bordered:focus,
    .form-control:focus {
        border-color: #1940b0 !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(25,64,176,0.10) !important;
        outline: none !important;
    }

    .input-item-label,
    .input-item label {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #64748b !important;
        margin-bottom: 5px !important;
    }

    select.select-bordered {
        border-radius: 10px !important;
        border: 1.5px solid #e2e8f0 !important;
        padding: 12px 14px !important;
        font-size: 15px !important;
        background: #f8fafc !important;
        -webkit-appearance: none;
    }

    /* DataTables search bar: block label so position:relative works, restore left padding,
       and re-centre the absolute icon vertically */
    div.dataTables_wrapper div.dataTables_filter label {
        display: block !important;
        position: relative !important;
    }

    div.dataTables_wrapper div.dataTables_filter input {
        padding-left: 44px !important;
    }

    div.dataTables_wrapper div.dataTables_filter label:before {
        position: absolute !important;
        top: 50% !important;
        left: 14px !important;
        width: 24px !important;
        height: auto !important;
        line-height: 1 !important;
        -webkit-transform: translateY(-50%) !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   9. Modals → bottom sheets
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .modal-dialog,
    .modal-dialog-centered {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .modal.fade .modal-dialog {
        transform: translateY(48px) !important;
        opacity: 0 !important;
        transition: transform 0.30s cubic-bezier(0.32,0.72,0,1),
                    opacity  0.30s ease !important;
    }

    .modal.show .modal-dialog {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    /*
     * Flex column: drag-handle (::before) + close-btn (absolute) + popup-body (scrolling flex child).
     * overflow:hidden caps height at 85vh and clips the rounded top corners.
     * popup-body is the ONLY scrolling element — close button stays anchored above it.
     */
    .modal-content {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        border: none !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 85vh !important;
        overflow: hidden !important;
        padding: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    /* Drag indicator handle — flex child, never scrolls */
    .modal-content::before {
        content: '';
        flex-shrink: 0;
        display: block !important;
        width: 36px;
        height: 4px;
        background: rgba(0,0,0,0.12);
        border-radius: 2px;
        margin: 12px auto 0;
    }

    /* Close button: absolute inside modal-content, above the scrolling popup-body */
    .modal-close {
        position: absolute !important;
        top: 10px !important;
        right: 14px !important;
        z-index: 10 !important;
    }

    /* Scrollable body: flex child that fills remaining height */
    .popup-body {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 16px 20px 20px !important;
    }

    /* Title: padding-right so text doesn't slip under close button */
    .popup-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-top: 0 !important;
        padding-right: 36px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   10. Tables
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .table              { font-size: 13px !important; margin-bottom: 0 !important; }
    .table thead th     { font-size: 11px !important; white-space: nowrap !important; padding: 10px 12px !important; letter-spacing: 0.4px; color: #64748b !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; }
    .table tbody td     { padding: 12px !important; vertical-align: middle !important; white-space: nowrap; border-top: 1px solid rgba(0,0,0,0.04) !important; }

    .badge-success { background: #dcfce7 !important; color: #15803d !important; }
    .badge-warning { background: #fef9c3 !important; color: #854d0e !important; }
    .badge-danger  { background: #fee2e2 !important; color: #b91c1c !important; }
    .badge-info    { background: #dbeafe !important; color: #1d4ed8 !important; }

    .badge {
        border-radius: 20px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 4px 9px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   11. Horizontal scrollable page-tabs
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .nav-tabs-line {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    }
    .nav-tabs-line::-webkit-scrollbar { display: none; }
    .nav-tabs-line .nav-link {
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    .nav-tabs-line .nav-link.active {
        color: #1940b0 !important;
        border-bottom: 2px solid #1940b0 !important;
        background: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   12. Alerts
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .alert {
        border-radius: 12px !important;
        border: none !important;
        font-size: 13px !important;
    }

    .alert-primary {
        background: rgba(25,64,176,0.08) !important;
        color: #1940b0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   13. Full-width on mobile (sidebar stacks below, not hidden)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* Both main content and sidebar go full-width and stack vertically */
    .main-content,
    .aside.sidebar-right,
    .aside.sidebar-left {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Sidebar cards match the card style */
    .aside.sidebar-right .card,
    .aside.sidebar-left .card {
        margin-top: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   13b. Investment plan sections — iOS grouped list rows
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* Stretch plans-grid to card edges (card has overflow:hidden + border-radius:16px
       so the corners are clipped naturally, giving an iOS grouped-list look) */
    .plans-grid {
        margin-left:   -16px !important;
        margin-right:  -16px !important;
        margin-bottom: -16px !important;
        margin-top:      8px !important;
        border-top: 0.5px solid rgba(0, 0, 0, 0.08) !important;
    }

    /* Hairline separator between rows */
    .plan-section {
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08) !important;
        padding: 0 !important;
        margin:  0 !important;
    }

    .plan-section:last-child {
        border-bottom: none !important;
    }

    /* Expanded detail area gets a subtle tinted background */
    .plan-details.open {
        background: #f8fafc !important;
        border-top: 0.5px solid rgba(0, 0, 0, 0.06) !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   13c. Mobile logout button (account page)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .rb-mobile-logout {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .rb-logout-btn {
        display: block;
        width: 100%;
        padding: 15px;
        background: #fff;
        border: none;
        border-radius: 16px;
        font-size: 17px;
        font-weight: 500;
        color: #ff3b30;       /* iOS system red */
        text-align: center;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.05);
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.12s;
    }

    .rb-logout-btn:active {
        opacity: 0.6;
    }
}

/* ═══════════════════════════════════════════════════════════
   14. AUTH pages — modern onboarding look
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    body.page-ath {
        background: #1940b0 !important;
    }

    .page-ath-wrap {
        flex-direction: column !important;
        min-height: 100vh;
        align-items: stretch !important;
        padding: 0 !important;
    }

    .page-ath-gfx { display: none !important; }

    /* White card that slides up from bottom */
    .page-ath-content {
        flex: 1;
        margin-top: 80px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: calc(100vh - 80px) !important;
        background: #f0f3f9 !important;
        border-radius: 28px 28px 0 0 !important;
        padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.22) !important;
    }

    /* Logo above the white card */
    .page-ath-header {
        padding: 0 0 20px !important;
        text-align: center;
    }

    .page-ath-logo-img {
        height: 36px !important;
        width: auto !important;
    }

    .page-ath-text h2,
    .page-ath-text h3 {
        font-size: 22px !important;
        font-weight: 700 !important;
        letter-spacing: -0.5px;
        color: #0f172a !important;
    }

    .page-ath-text p {
        color: #64748b !important;
        font-size: 14px !important;
    }

    /* Form container inside auth */
    .page-ath-content .card {
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.05) !important;
    }

    .page-ath-form {
        border-radius: 0 !important;
    }

    /* Footer: full-width, centred — space-between on the parent card pushes it to the bottom */
    .page-ath-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }

    .page-ath-footer a,
    .page-ath-footer p { font-size: 13px !important; color: #64748b !important; }
}

/* ═══════════════════════════════════════════════════════════
   15. iOS Add-to-Home-Screen install prompt
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .rb-ios-prompt-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2099;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .rb-ios-prompt-backdrop--visible {
        opacity: 1;
    }

    .rb-ios-prompt {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2100;
        padding: 0 12px calc(16px + env(safe-area-inset-bottom, 0px));
        transform: translateY(110%);
        transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .rb-ios-prompt--visible {
        transform: translateY(0);
    }

    .rb-ios-prompt__card {
        background: #fff;
        border-radius: 20px;
        padding: 20px 20px 16px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.24);
        position: relative;
    }

    .rb-ios-prompt__close {
        position: absolute;
        top: 14px;
        right: 14px;
        background: rgba(120, 120, 128, 0.16);
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-size: 17px;
        line-height: 1;
        color: #3c3c43;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .rb-ios-prompt__header {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        padding-right: 32px;
    }

    .rb-ios-prompt__icon {
        width: 54px;
        height: 54px;
        border-radius: 12px;
        object-fit: contain;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .rb-ios-prompt__title {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 3px;
    }

    .rb-ios-prompt__subtitle {
        font-size: 13px;
        color: #64748b;
        margin: 0;
        line-height: 1.4;
    }

    .rb-ios-prompt__steps {
        background: #f8fafc;
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 14px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .rb-ios-prompt__step {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: #334155;
        line-height: 1.4;
    }

    .rb-ios-prompt__step-num {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #1940b0;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .rb-ios-prompt__share-icon {
        width: 15px;
        height: 15px;
        vertical-align: -2px;
        display: inline-block;
        margin: 0 1px;
    }

    .rb-ios-prompt__btn {
        display: block;
        width: 100%;
        padding: 13px;
        background: #1940b0;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.12s;
    }

    .rb-ios-prompt__btn:active {
        opacity: 0.8;
    }

    /* Small downward-pointing arrow hinting at the browser toolbar */
    .rb-ios-prompt__arrow {
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #fff;
        margin: 0 auto;
        filter: drop-shadow(0 4px 4px rgba(0,0,0,0.12));
    }
}

/* ═══════════════════════════════════════════════════════════
   17. Loading overlay & scrollbar hiding
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .page-overlay { z-index: 2000 !important; }

    ::-webkit-scrollbar { width: 0; height: 0; }
}

/* ═══════════════════════════════════════════════════════════
   18. PWA install banner (Android/Chrome)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .rb-pwa-banner {
        position: fixed;
        bottom: calc(var(--rb-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
        left: 12px;
        right: 12px;
        background: #1940b0;
        color: #fff;
        border-radius: 16px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1040;
        box-shadow: 0 8px 24px rgba(25,64,176,0.40);
        animation: rb-slide-up 0.3s cubic-bezier(0.4,0,0.2,1) both;
    }

    .rb-pwa-banner__text    { flex: 1; font-size: 13px; font-weight: 500; line-height: 1.4; }
    .rb-pwa-banner__install { background: rgba(255,255,255,0.2); border: none; color: #fff; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
    .rb-pwa-banner__close   { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 20px; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

    @keyframes rb-slide-up {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
