﻿/* ============================================================
   RSB.ir â€” Public Site Mobile App Shell + PWA Styling
   ============================================================
   Activates below 1024px (anything smaller than a laptop).
   Transforms the public website into a native-app-like experience:
   top app bar, bottom navigation, FAB, slide-in drawer,
   3D glassy icons, page transitions, safe-area support.

   DESIGN PRINCIPLES:
   - Loaded AFTER rsb-combined.min.css so it wins.
   - Desktop layout is completely untouched above 1024px.
   - Both installed-PWA and mobile-browser get the same app UI.
   - Supports light AND dark themes (public site has toggle).
   - Uses brand colors: #5B5EA0 (primary), #3D4079 (dark blue).
   ============================================================ */

/* ============================================================
   0) DESKTOP DEFAULT â€” hide ALL mobile-shell elements above 1024px
   (no !important â€” the @media block below overrides on mobile)
   ============================================================ */
.rsb-p-appbar,
.rsb-p-bottomnav,
.rsb-p-drawer,
.rsb-p-drawer-backdrop,
.rsb-p-fab,
.rsb-p-fab-menu,
.rsb-p-fab-backdrop,
.rsb-p-install,
.rsb-p-search,
.rsb-p-ptr,
.rsb3d-nav-fab,
.rsb3d-grid,
.rsb3d-icon,
.rsb3d-wave,
.rsb-p-drawer-close,
.rsb-p-fab-menu-item {
  display: none;
}

/* ============================================================
   1) MOBILE ROOT VARIABLES
   ============================================================ */
@media (max-width: 1023.98px) {
  :root {
    --rsb-p-appbar-h: 56px;
    --rsb-p-bottomnav-h: 62px;
    --rsb-p-fab-size: 56px;
    --rsb-p-safe-top: env(safe-area-inset-top, 0px);
    --rsb-p-safe-bottom: env(safe-area-inset-bottom, 0px);
    --rsb-p-safe-left: env(safe-area-inset-left, 0px);
    --rsb-p-safe-right: env(safe-area-inset-right, 0px);

    /* Light theme â€” calm lavender/navy palette (from UI design reference) */
    --rsb-p-bg: #ECEEF6;
    --rsb-p-bg-2: #F5F6FA;
    --rsb-p-glass: rgba(240, 242, 250, 0.85);
    --rsb-p-glass-border: rgba(32, 32, 80, 0.08);
    --rsb-p-text: #25294C;
    --rsb-p-text-muted: #6B7390;
    --rsb-p-accent: #3D4079;
    --rsb-p-accent2: #5B5EA0;
    --rsb-p-accent-soft: rgba(91, 94, 160, 0.12);
    --rsb-p-shadow: 0 4px 24px rgba(32, 32, 80, 0.08);
    --rsb-p-shadow-strong: 0 8px 32px rgba(32, 32, 80, 0.12);
    --rsb-p-radius: 18px;
    --rsb-p-radius-sm: 12px;
    --rsb-p-transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Dark theme â€” deep navy with soft lavender accents */
  [data-theme="dark"] {
    --rsb-p-bg: #151730;
    --rsb-p-bg-2: #1F2241;
    --rsb-p-glass: rgba(31, 34, 65, 0.82);
    --rsb-p-glass-border: rgba(176, 176, 224, 0.15);
    --rsb-p-text: #D0D0E0;
    --rsb-p-text-muted: #9090B0;
    --rsb-p-accent: #B0B0D0;
    --rsb-p-accent2: #C0C0E0;
    --rsb-p-accent-soft: rgba(176, 176, 208, 0.15);
    --rsb-p-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --rsb-p-shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  /* ---- Body reset ---- */
  body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  /* Hide desktop loading overlay on mobile (we have our own) */
  .loading-overlay { display: none !important; }
  .loading-overlay-showing { overflow: auto !important; }

  /* ============================================================
     2) HIDE DESKTOP HEADER NAV (we replace with app bar)
     ============================================================ */
  #header {
    display: none !important;
  }

  /* Add padding to body content for app bar + bottom nav */
  .body {
    padding-top: 0;
  }

  /* ============================================================
     3) MOBILE APP BAR (top)
     ============================================================ */
  .rsb-p-appbar { /* visible by default on mobile */ }
  .rsb-p-appbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: calc(var(--rsb-p-appbar-h) + var(--rsb-p-safe-top));
    padding-top: var(--rsb-p-safe-top);
    padding-inline: 12px;
    align-items: center;
    justify-content: space-between;
    background: var(--rsb-p-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--rsb-p-glass-border);
    box-shadow: 0 2px 16px var(--rsb-p-shadow);
    transition: transform var(--rsb-p-transition);
  }

  .rsb-p-appbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .rsb-p-appbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: contain;
    background: linear-gradient(135deg, var(--rsb-p-accent-soft), rgba(91, 94, 160, 0.08));
    border: 1px solid var(--rsb-p-glass-border);
    padding: 4px;
    box-shadow: 0 2px 10px rgba(91, 94, 160, 0.2);
    flex: none;
  }

  .rsb-p-appbar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--rsb-p-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  .rsb-p-appbar-subtitle {
    font-size: 10.5px;
    color: var(--rsb-p-text-muted);
    line-height: 1.2;
  }

  .rsb-p-appbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
  }

  .rsb-p-appbar-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--rsb-p-glass-border);
    background: var(--rsb-p-accent-soft);
    color: var(--rsb-p-accent);
    font-size: 17px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
  }
  .rsb-p-appbar-btn:active {
    transform: scale(0.92);
    background: var(--rsb-p-accent-soft);
  }

  .rsb-p-appbar-btn .rsb-p-badge {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
    animation: rsbPBadgePulse 2s ease-in-out infinite;
  }
  @keyframes rsbPBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
  }

  /* ============================================================
     4) MAIN CONTENT AREA â€” offset for app bar + bottom nav
     ============================================================ */
  .body {
    padding-top: calc(var(--rsb-p-appbar-h) + var(--rsb-p-safe-top)) !important;
    padding-bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 16px) !important;
    min-height: 100vh;
  }

  .main,
  main,
  .content {
    padding-top: 0 !important;
  }

  /* ============================================================
     5) BOTTOM NAVIGATION
     ============================================================ */
  .rsb-p-bottomnav { /* visible by default on mobile */ }
  .rsb-p-bottomnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom));
    padding-bottom: var(--rsb-p-safe-bottom);
    background: var(--rsb-p-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--rsb-p-glass-border);
    box-shadow: 0 -4px 24px var(--rsb-p-shadow);
    align-items: stretch;
    justify-content: space-around;
    transition: transform var(--rsb-p-transition);
  }

  .rsb-p-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--rsb-p-text-muted) !important;
    font-size: 10.5px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
  }

  .rsb-p-nav-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
    position: relative;
    transition: all var(--rsb-p-transition);
    transform: translateZ(0);
  }

  .rsb-p-nav-item:active .rsb-p-nav-icon {
    transform: scale(0.88);
  }

  /* Active state â€” 3D glassy gradient orb */
  .rsb-p-nav-item.active {
    color: var(--rsb-p-accent2) !important;
  }
  .rsb-p-nav-item.active .rsb-p-nav-icon {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05) 60%),
      linear-gradient(145deg, var(--rsb-p-accent-soft), rgba(32, 32, 80, 0.15));
    border: 1px solid var(--rsb-p-accent2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -2px 6px rgba(0, 0, 0, 0.1),
      0 4px 14px rgba(91, 94, 160, 0.3);
    transform: translateY(-4px) scale(1.05);
    animation: rsbPNavFloat 3s ease-in-out infinite;
  }
  [data-theme="dark"] .rsb-p-nav-item.active .rsb-p-nav-icon {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 60%),
      linear-gradient(145deg, rgba(176, 176, 208, 0.35), rgba(176, 176, 224, 0.25));
    border-color: rgba(176, 176, 208, 0.5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      inset 0 -2px 6px rgba(0, 0, 0, 0.3),
      0 4px 14px rgba(176, 176, 208, 0.35);
  }
  @keyframes rsbPNavFloat {
    0%, 100% { transform: translateY(-4px) scale(1.05); }
    50% { transform: translateY(-7px) scale(1.05); }
  }

  /* Active indicator bar */
  .rsb-p-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--rsb-p-accent2), var(--rsb-p-accent));
    box-shadow: 0 0 10px var(--rsb-p-accent2);
  }

  /* Shimmer sweep on active icon */
  .rsb-p-nav-item.active .rsb-p-nav-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -30%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-160%) rotate(14deg);
    animation: rsbPNavShimmer 2.5s ease-in-out infinite;
  }
  @keyframes rsbPNavShimmer {
    0%, 100% { opacity: 0; transform: translateX(-160%) rotate(14deg); }
    50% { opacity: 1; transform: translateX(460%) rotate(14deg); }
  }

  .rsb-p-nav-item .rsb-p-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 50%;
    margin-inline-end: -22px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.5);
    z-index: 2;
  }

  /* ============================================================
     6) FLOATING ACTION BUTTON (FAB) â€” contact/quick actions
     ============================================================ */
  .rsb-p-fab {
    display: none;
  }
  .rsb-p-fab {
    display: flex;
    position: fixed;
    z-index: 1040;
    width: var(--rsb-p-fab-size);
    height: var(--rsb-p-fab-size);
    bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 18px);
    inset-inline-end: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05) 60%),
      linear-gradient(135deg, #3D4079, #5B5EA0);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 -2px 6px rgba(0, 0, 0, 0.15),
      0 6px 20px rgba(91, 94, 160, 0.4),
      0 2px 8px rgba(32, 32, 80, 0.3);
    transition: all var(--rsb-p-transition);
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
  }
  .rsb-p-fab:active {
    transform: scale(0.9) rotate(90deg);
  }
  .rsb-p-fab.rsb-p-fab-pulse {
    animation: rsbPFabPulse 2.5s ease-in-out infinite;
  }
  @keyframes rsbPFabPulse {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(0,0,0,.15), 0 6px 20px rgba(0,136,204,.4), 0 2px 8px rgba(0,86,179,.3), 0 0 0 0 rgba(0,136,204,.4); }
    50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(0,0,0,.15), 0 6px 20px rgba(0,136,204,.4), 0 2px 8px rgba(0,86,179,.3), 0 0 0 14px rgba(0,136,204,0); }
  }

  /* FAB speed dial menu */
  .rsb-p-fab-menu {
    display: none;
    position: fixed;
    z-index: 1039;
    bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 82px);
    inset-inline-end: 14px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
  .rsb-p-fab-menu.open {
    display: flex;
    animation: rsbPFabMenuIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  @keyframes rsbPFabMenuIn {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .rsb-p-fab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--rsb-p-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--rsb-p-glass-border);
    color: var(--rsb-p-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--rsb-p-shadow-strong);
    white-space: nowrap;
    opacity: 0;
    animation: rsbPFabItemIn 0.3s ease forwards;
    -webkit-tap-highlight-color: transparent;
  }
  .rsb-p-fab-menu-item:nth-child(1) { animation-delay: 0.05s; }
  .rsb-p-fab-menu-item:nth-child(2) { animation-delay: 0.1s; }
  .rsb-p-fab-menu-item:nth-child(3) { animation-delay: 0.15s; }
  .rsb-p-fab-menu-item:nth-child(4) { animation-delay: 0.2s; }
  .rsb-p-fab-menu-item:nth-child(5) { animation-delay: 0.25s; }
  @keyframes rsbPFabItemIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .rsb-p-fab-menu-item:active {
    transform: scale(0.95);
  }
  .rsb-p-fab-menu-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 15px;
    background: linear-gradient(145deg, var(--rsb-p-accent-soft), rgba(32, 32, 80, 0.1));
    border: 1px solid var(--rsb-p-glass-border);
    color: var(--rsb-p-accent);
  }

  .rsb-p-fab-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1038;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .rsb-p-fab-backdrop.open {
    display: block;
  }

  /* ============================================================
     7) SLIDE-IN DRAWER (full menu)
     ============================================================ */
    .rsb-p-drawer {
    display: none;
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    z-index: 1050;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--rsb-p-bg-2);
    border-inline-start: 1px solid var(--rsb-p-glass-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--rsb-p-transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--rsb-p-safe-top) + 16px) 0 calc(var(--rsb-p-safe-bottom) + 20px);
  }
  [data-theme="dark"] .rsb-p-drawer {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }
  .rsb-p-drawer.open {
    display: block;
    transform: translateX(0);
  }

  .rsb-p-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px 18px;
    border-bottom: 1px solid var(--rsb-p-glass-border);
    margin-bottom: 12px;
  }
  .rsb-p-drawer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    border: 2px solid var(--rsb-p-accent2);
    box-shadow: 0 0 16px rgba(91, 94, 160, 0.3);
  }
  .rsb-p-drawer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--rsb-p-text);
  }
  .rsb-p-drawer-tagline {
    font-size: 11px;
    color: var(--rsb-p-text-muted);
    line-height: 1.5;
  }

  .rsb-p-drawer-section {
    padding: 10px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rsb-p-text-muted);
    opacity: 0.7;
  }

  .rsb-p-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 2px 10px;
    border-radius: 13px;
    color: var(--rsb-p-text) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .rsb-p-drawer-item:active {
    background: var(--rsb-p-accent-soft);
    transform: scale(0.98);
  }
  .rsb-p-drawer-item i {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 16px;
    flex: none;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 55%),
      linear-gradient(145deg, var(--rsb-p-accent-soft), rgba(32, 32, 80, 0.05));
    border: 1px solid var(--rsb-p-glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(91, 94, 160, 0.1);
    color: var(--rsb-p-accent) !important;
  }
  [data-theme="dark"] .rsb-p-drawer-item i {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 55%),
      linear-gradient(145deg, rgba(176, 176, 208, 0.25), rgba(176, 176, 224, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(176, 176, 208, 0.15);
  }
  .rsb-p-drawer-item.active {
    background: var(--rsb-p-accent-soft);
    border: 1px solid var(--rsb-p-accent2);
  }
  .rsb-p-drawer-item.active i {
    color: var(--rsb-p-accent2) !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05) 60%),
      linear-gradient(145deg, var(--rsb-p-accent-soft), rgba(32, 32, 80, 0.15));
    border-color: var(--rsb-p-accent2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px rgba(91, 94, 160, 0.25);
  }

  .rsb-p-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1049;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .rsb-p-drawer-backdrop.open {
    display: block;
    animation: rsbPFadeIn 0.25s ease;
  }
  @keyframes rsbPFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ============================================================
     8) PAGE TRANSITIONS
     ============================================================ */
  .body {
    animation: rsbPPageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes rsbPPageIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* Stagger cards on entry */
  .rsb-step-card,
  .rsb-news-card-premium,
  .feature-box,
  .rsb-related-card,
  .rsb-gallery-item,
  .rsb-trust-box {
    animation: rsbPCardSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .rsb-step-card:nth-child(1),
  .rsb-news-card-premium:nth-child(1),
  .feature-box:nth-child(1) { animation-delay: 0.05s; }
  .rsb-step-card:nth-child(2),
  .rsb-news-card-premium:nth-child(2),
  .feature-box:nth-child(2) { animation-delay: 0.1s; }
  .rsb-step-card:nth-child(3),
  .rsb-news-card-premium:nth-child(3),
  .feature-box:nth-child(3) { animation-delay: 0.15s; }
  .rsb-step-card:nth-child(4),
  .rsb-news-card-premium:nth-child(4),
  .feature-box:nth-child(4) { animation-delay: 0.2s; }
  @keyframes rsbPCardSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============================================================
     9) HERO / SLIDER â€” mobile adjustments
     ============================================================ */
  #rsbHero {
    margin-top: 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
  }
  .rsb-hero__slide {
    min-height: 280px;
  }
  .rsb-hero__title {
    font-size: 24px !important;
  }
  .rsb-hero__subtitle {
    font-size: 14px !important;
  }

  /* ============================================================
     10) SECTIONS â€” mobile spacing
     ============================================================ */
  .rsb-section,
  section {
    padding: 24px 0 !important;
  }
  .container {
    padding-inline: 14px;
  }

  /* ============================================================
     11) CARDS â€” glassmorphic mobile treatment
     ============================================================ */
  .rsb-step-card,
  .rsb-news-card-premium,
  .feature-box {
    border-radius: var(--rsb-p-radius) !important;
    box-shadow: var(--rsb-p-shadow) !important;
    overflow: hidden;
  }

  /* ============================================================
     12) FOOTER — premium mobile RTL layout
     ============================================================ */
  .rsb-footer-modern {
    direction: rtl;
    text-align: right;
    padding: 24px 0 calc(28px + var(--rsb-p-safe-bottom));
    margin-bottom: var(--rsb-p-bottomnav-h);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20,24,58,.98), rgba(12,16,40,1));
  }
  .rsb-footer-modern::before {
    content: '';
    display: block;
    width: 92px;
    height: 3px;
    margin: 0 20px 22px auto;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #65d7e6, #8e9bff);
    box-shadow: 0 0 18px rgba(101,215,230,.45);
    animation: rsbFooterLine 3s ease-in-out infinite;
  }
  .rsb-footer-modern .container {
    width: 100%;
    padding-inline: 16px;
  }
  .rsb-footer-inner .row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rsb-footer-brand,
  .rsb-footer-col {
    width: 100%;
    max-width: none;
    flex: none;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
  }
  .rsb-footer-brand {
    position: relative;
    display: block;
    padding: 18px 18px 16px !important;
    border: 1px solid rgba(126,214,230,.18);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(52,67,113,.72), rgba(18,25,61,.82));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 32px rgba(0,0,0,.2);
    animation: rsbFooterCardIn .65s ease both;
  }
  .rsb-footer-brand::after {
    content: '';
    position: absolute;
    left: 18px;
    bottom: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(61,198,219,.13);
    filter: blur(18px);
    pointer-events: none;
  }
  .rsb-footer-brand .rsb-3d-logo-footer {
    float: right;
    width: 62px;
    height: 62px;
    margin: 0 0 8px 14px;
  }
  .rsb-footer-brand .rsb-3d-logo-footer img {
    width: 62px !important;
    height: 62px !important;
    object-fit: contain;
  }
  .rsb-footer-tagline {
    min-height: 62px;
    margin: 0 !important;
    padding-top: 8px;
    color: rgba(255,255,255,.92) !important;
    text-align: right !important;
    font-size: 13px !important;
    line-height: 2 !important;
    font-weight: 700;
  }
  .rsb-footer-tagline span + br + span {
    color: rgba(169,221,232,.7);
    font-size: 11px;
    font-weight: 500;
  }
  .rsb-social-footer {
    clear: both;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 13px;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,.09);
  }
  .rsb-social-footer .rsb-social-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.78);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease;
  }
  .rsb-social-footer .rsb-social-link:hover {
    color: #fff;
    background: #168da7;
    transform: translateY(-4px) rotate(-4deg);
  }
  .rsb-footer-col {
    position: relative;
    padding: 17px 17px 13px !important;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    animation: rsbFooterCardIn .65s ease both;
  }
  .rsb-footer-col:nth-child(2) { animation-delay: .08s; }
  .rsb-footer-col:nth-child(3) { animation-delay: .16s; }
  .rsb-footer-col:nth-child(4) { animation-delay: .24s; }
  .rsb-footer-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px !important;
    color: #fff !important;
    text-align: right !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }
  .rsb-footer-title::before {
    content: '';
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: #65d7e6;
    box-shadow: 0 0 12px rgba(101,215,230,.8);
  }
  .rsb-footer-title::after {
    position: static !important;
    flex: 1;
    height: 1px !important;
    margin: 0 !important;
    transform: none !important;
    background: linear-gradient(90deg, rgba(101,215,230,.45), transparent) !important;
  }
  .rsb-footer-services {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 18px !important;
  }
  .rsb-footer-services .rsb-footer-list {
    flex: 1;
    width: auto !important;
  }
  .rsb-footer-list,
  .rsb-footer-contact {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    text-align: right !important;
  }
  .rsb-footer-list li,
  .rsb-footer-contact li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start !important;
    gap: 8px;
    min-height: 32px;
    margin: 0 !important;
    text-align: right !important;
    direction: rtl;
  }
  .rsb-footer-list li a,
  .rsb-footer-contact li,
  .rsb-footer-contact li a,
  .rsb-footer-contact li span {
    color: rgba(224,231,255,.72) !important;
    text-align: right !important;
    direction: rtl;
    font-size: 11px !important;
    line-height: 1.8;
  }
  .rsb-footer-list li a {
    position: relative;
    display: block !important;
    padding-right: 14px;
    transition: color .25s ease, padding-right .25s ease;
  }
  .rsb-footer-list li a::before {
    content: '‹';
    position: absolute;
    right: 0;
    top: 0;
    color: #65d7e6;
    opacity: .7;
    transition: transform .25s ease, opacity .25s ease;
  }
  .rsb-footer-list li a:hover {
    color: #fff !important;
    padding-right: 18px;
  }
  .rsb-footer-list li a:hover::before {
    opacity: 1;
    transform: translateX(-3px);
  }
  .rsb-footer-contact li {
    align-items: flex-start;
  }
  .rsb-footer-contact li i {
    flex: none;
    width: 22px;
    margin-top: 4px;
    color: #65d7e6 !important;
    text-align: center;
  }
  .rsb-footer-contact li a {
    color: rgba(224,231,255,.78) !important;
  }
  .rsb-map-link {
    display: inline-block;
    margin-top: 2px;
    color: #65d7e6 !important;
    font-size: 10px !important;
  }
  .rsb-footer-bottom {
    display: block;
    margin-top: 16px;
    padding: 17px 0 0;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: right;
    direction: rtl;
  }
  .rsb-footer-bottom .container {
    padding-inline: 16px;
  }
  .rsb-footer-bottom-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 7px 13px;
    text-align: right;
  }
  .rsb-footer-logos {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
  .rsb-footer-mini-logo {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    padding: 4px;
    background: rgba(255,255,255,.08);
    opacity: .9;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  }
  .rsb-footer-mini-logo:hover {
    transform: translateY(-3px) rotate(3deg);
    box-shadow: 0 7px 18px rgba(101,215,230,.25);
  }
  .rsb-footer-copy,
  .rsb-footer-design {
    margin: 0 !important;
    text-align: right !important;
    color: rgba(224,231,255,.68) !important;
    font-size: 10.5px !important;
    line-height: 1.9;
  }
  .rsb-footer-copy a {
    color: #65d7e6 !important;
    font-weight: 700;
  }
  .rsb-footer-design {
    color: rgba(224,231,255,.45) !important;
    font-size: 10px !important;
  }
  @keyframes rsbFooterLine { 0%,100% { opacity: .55; transform: scaleX(.72); transform-origin: right; } 50% { opacity: 1; transform: scaleX(1); transform-origin: right; } }
  @keyframes rsbFooterCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    .rsb-footer-modern::before,
    .rsb-footer-brand,
    .rsb-footer-col { animation: none !important; }
    .rsb-social-footer .rsb-social-link,
    .rsb-footer-list li a,
    .rsb-footer-mini-logo { transition: none !important; }
  }

  /* ============================================================
     13) PULL-TO-REFRESH indicator
     ============================================================ */
  .rsb-p-ptr {
    display: none;
    position: fixed;
    top: calc(var(--rsb-p-appbar-h) + var(--rsb-p-safe-top));
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    z-index: 1020;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rsb-p-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--rsb-p-glass-border);
    box-shadow: var(--rsb-p-shadow);
    align-items: center;
    justify-content: center;
    color: var(--rsb-p-accent2);
    font-size: 18px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  .rsb-p-ptr {
    display: flex;
  }
  .rsb-p-ptr.rsb-p-ptr-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .rsb-p-ptr.rsb-p-ptr-loading {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .rsb-p-ptr.rsb-p-ptr-loading i {
    animation: rsbPSpin 0.8s linear infinite;
  }
  @keyframes rsbPSpin {
    to { transform: rotate(360deg); }
  }

  /* ============================================================
     14) SEARCH â€” mobile expandable
     ============================================================ */
  .rsb-p-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    height: calc(var(--rsb-p-appbar-h) + var(--rsb-p-safe-top));
    padding-top: var(--rsb-p-safe-top);
    padding-inline: 12px;
    background: var(--rsb-p-bg-2);
    align-items: center;
    gap: 8px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  .rsb-p-search.open {
    display: flex;
    transform: translateY(0);
  }
  .rsb-p-search input {
    flex: 1;
    background: var(--rsb-p-bg);
    border: 1px solid var(--rsb-p-glass-border);
    border-radius: 12px;
    color: var(--rsb-p-text);
    padding: 10px 16px;
    font-size: 16px;
    height: 44px;
    outline: none;
  }
  .rsb-p-search input::placeholder {
    color: var(--rsb-p-text-muted);
  }
  .rsb-p-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--rsb-p-glass-border);
    background: var(--rsb-p-accent-soft);
    color: var(--rsb-p-accent);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  /* ============================================================
     15) TOAST â€” mobile notifications
     ============================================================ */
  .rsb-p-toast {
    display: none;
    position: fixed;
    bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 80px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 1070;
    padding: 12px 22px;
    border-radius: 14px;
    background: var(--rsb-p-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--rsb-p-glass-border);
    box-shadow: var(--rsb-p-shadow-strong);
    color: var(--rsb-p-text);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
    text-align: center;
  }
  .rsb-p-toast.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* ============================================================
     16) INSTALL PROMPT BANNER — mobile
     ============================================================ */
  .rsb-p-install {
    display: none;
    position: fixed;
    bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 10px);
    left: 12px;
    right: 12px;
    z-index: 1060;
    padding: 16px 18px;
    border-radius: var(--rsb-p-radius);
    background: linear-gradient(135deg, rgba(61, 64, 121, 0.95), rgba(91, 94, 160, 0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(32, 32, 80, 0.3);
    color: #fff;
    align-items: center;
    gap: 12px;
    animation: rsbPInstallIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes rsbPInstallIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .rsb-p-install.show {
    display: flex;
  }
  .rsb-p-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: none;
  }
  .rsb-p-install-text {
    flex: 1;
    min-width: 0;
  }
  .rsb-p-install-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
  }
  .rsb-p-install-desc {
    font-size: 11px;
    opacity: 0.85;
    margin: 0;
  }
  .rsb-p-install-actions {
    display: flex;
    gap: 8px;
    flex: none;
  }
  .rsb-p-install-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: var(--rsb-p-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .rsb-p-install-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* ============================================================
     17) PWA INSTALLED MODE â€” extra polish
     ============================================================ */
  body.rsb-p-pwa .rsb-p-install {
    display: none !important;
  }
  @media (display-mode: standalone) {
    .rsb-p-appbar {
      padding-top: var(--rsb-p-safe-top);
    }
    .rsb-p-install {
      display: none !important;
    }
  }

  /* ============================================================
     18) SCROLLBAR â€” thin mobile style
     ============================================================ */
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(91, 94, 160, 0.2);
    border-radius: 4px;
  }

  /* ============================================================
     19) UTILITY â€” hide on mobile / show on mobile
     ============================================================ */
  .rsb-p-mobile-only { display: none !important; }
  .rsb-p-mobile-only { display: flex !important; }
  .rsb-p-mobile-block { display: block !important; }
  .rsb-p-desktop-only { display: none !important; }

  /* ============================================================
     20) FORMS â€” mobile-friendly touch targets
     ============================================================ */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
    min-height: 46px;
    border-radius: var(--rsb-p-radius-sm) !important;
  }
  .btn,
  .btn-lg {
    min-height: 44px;
    font-size: 14px;
    border-radius: var(--rsb-p-radius-sm) !important;
  }

  /* ============================================================
     21) SMALL PHONES (â‰¤380px)
     ============================================================ */
  @media (max-width: 380px) {
    .rsb-p-appbar-title {
      font-size: 13px;
    }
    .rsb-p-nav-item {
      font-size: 9.5px;
    }
    .rsb-p-nav-icon {
      width: 38px;
      height: 38px;
      font-size: 17px;
    }
    .rsb-hero__title {
      font-size: 20px !important;
    }
  }

  /* ============================================================
     22) TABLET (768pxâ€“1023px) â€” centered bottom nav
     ============================================================ */
  @media (min-width: 768px) and (max-width: 1023.98px) {
    .rsb-p-bottomnav {
      max-width: 560px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 20px 20px 0 0;
    }
    .rsb-p-fab {
      bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 24px);
    }
  }

  /* ============================================================
     23) INTERNAL APP PAGES (logged-in employee pages)
     ============================================================ */
  .internal-app-page #header {
    display: none !important;
  }
  .internal-app-page .body {
    padding-top: calc(var(--rsb-p-appbar-h) + var(--rsb-p-safe-top)) !important;
    padding-bottom: calc(var(--rsb-p-bottomnav-h) + var(--rsb-p-safe-bottom) + 16px) !important;
  }
}

/* ============================================================
   24) DESKTOP INSTALL PROMPT (≥1024px) — calm lavender card
   ============================================================ */
.rsb-p-install-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .rsb-p-install-desktop {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 1050;
    width: 360px;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 246, 250, 0.96), rgba(236, 238, 246, 0.94));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(32, 32, 80, 0.1);
    box-shadow: 0 12px 48px rgba(32, 32, 80, 0.12), 0 4px 16px rgba(32, 32, 80, 0.08);
    color: #25294C;
    animation: rsbPDesktopInstallIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .rsb-p-install-desktop.hide {
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    pointer-events: none;
  }
  @keyframes rsbPDesktopInstallIn {
    from { transform: translateY(120%) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
  .rsb-p-install-desktop-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
  }
  .rsb-p-install-desktop-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(91, 94, 160, 0.18), rgba(61, 64, 121, 0.1));
    border: 1px solid rgba(91, 94, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #3D4079;
    flex: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(91, 94, 160, 0.15);
  }
  .rsb-p-install-desktop-title {
    font-size: 16px;
    font-weight: 700;
    color: #25294C;
    margin: 0 0 2px;
  }
  .rsb-p-install-desktop-subtitle {
    font-size: 12px;
    color: #6B7390;
    margin: 0;
  }
  .rsb-p-install-desktop-body {
    font-size: 13px;
    line-height: 1.7;
    color: #4A4D6E;
    margin-bottom: 16px;
  }
  .rsb-p-install-desktop-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .rsb-p-install-desktop-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(91, 94, 160, 0.08);
    border: 1px solid rgba(91, 94, 160, 0.12);
    font-size: 11.5px;
    font-weight: 600;
    color: #3D4079;
  }
  .rsb-p-install-desktop-feature i {
    font-size: 13px;
    color: #5B5EA0;
  }
  .rsb-p-install-desktop-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .rsb-p-install-desktop-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3D4079, #5B5EA0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(61, 64, 121, 0.3);
  }
  .rsb-p-install-desktop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 64, 121, 0.4);
  }
  .rsb-p-install-desktop-btn:active {
    transform: translateY(0);
  }
  .rsb-p-install-desktop-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(32, 32, 80, 0.1);
    background: rgba(255, 255, 255, 0.6);
    color: #6B7390;
    font-size: 18px;
    cursor: pointer;
    flex: none;
    transition: all 0.25s ease;
  }
  .rsb-p-install-desktop-close:hover {
    background: rgba(91, 94, 160, 0.1);
    color: #3D4079;
  }
  /* Hide desktop install in standalone mode */
  @media (display-mode: standalone) {
    .rsb-p-install-desktop { display: none !important; }
  }
}

/* ============================================================
   16) DESKTOP TOAST + INSTALL INSTRUCTION MODAL
   Toast is visible on ALL screen sizes (not just mobile)
   ============================================================ */
@media (min-width: 1024px) {
  .rsb-p-toast {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    padding: 14px 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(91, 94, 160, 0.15);
    box-shadow: 0 8px 32px rgba(32, 32, 80, 0.15);
    color: #25294C;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 500px;
    text-align: center;
    font-family: inherit;
  }
  .rsb-p-toast.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Desktop install instruction modal */
.rsb-p-install-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rsb-p-install-modal.show {
  display: flex;
  opacity: 1;
}
.rsb-p-install-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(32, 32, 80, 0.25);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rsb-p-install-modal.show .rsb-p-install-modal-card {
  transform: scale(1);
}
.rsb-p-install-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #ECEEF6, #D5D8E8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: -4px -4px 10px rgba(255,255,255,0.8), 5px 6px 12px rgba(127,135,166,0.3);
  font-size: 28px;
  color: #3D4079;
}
.rsb-p-install-modal-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #25294C;
  margin: 0 0 12px;
}
.rsb-p-install-modal-card p {
  font-size: 14px;
  color: #6B7390;
  line-height: 1.8;
  margin: 0 0 20px;
}
.rsb-p-install-modal-steps {
  text-align: right;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.rsb-p-install-modal-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: #4a4d6e;
  line-height: 1.7;
}
.rsb-p-install-modal-steps li .step-num {
  width: 24px;
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5B5EA0, #3D4079);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rsb-p-install-modal-close {
  padding: 10px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3D4079, #5B5EA0);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.rsb-p-install-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(61, 64, 121, 0.35);
}
