/* BuyNShip premium mobile app layer — app-color refresh 2026-07-24 */
.mobile-bottom-nav,
.mobile-more-overlay,
.mobile-dashboard-intro{display:none}

@media (max-width:720px){
  :root{
    --mobile-shell:#fffafa;
    --mobile-soft:#fff1ef;
    --mobile-ink:#0f172a;
    --mobile-muted:#64748b;
    --mobile-primary:#ef4444;
    --mobile-primary-2:#fb6a56;
    --mobile-primary-soft:#fee2e2;
    --mobile-primary-tint:#fff1ef;
    --mobile-red:#ef4444;
    --mobile-card:#ffffff;
    --mobile-line:#f1d8d5;
    --mobile-shadow:0 12px 30px rgba(15,23,42,.10);
  }

  html.light, body.app.light,
  html.dark, body.app.dark{
    background:var(--mobile-soft) !important;
  }

  body.app{
    background:var(--mobile-soft) !important;
    color:var(--mobile-ink) !important;
    overflow-x:hidden;
  }

  body.app::before{
    content:'';
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
      radial-gradient(circle at 12% 0%, rgba(239,68,68,.14), transparent 28%),
      radial-gradient(circle at 100% 10%, rgba(251,106,86,.10), transparent 30%);
    z-index:-1;
  }

  .app-header{
    position:relative !important;
    top:auto !important;
    z-index:120 !important;
    max-width:430px;
    margin:0 auto 8px;
    min-height:76px;
    padding:10px 12px !important;
    border:0 !important;
    border-radius:0 0 18px 18px;
    background:linear-gradient(135deg,#2b1c1c,#ef4444) !important;
    color:#fff !important;
    box-shadow:0 10px 26px rgba(15,23,42,.18);
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
  }

  .app-header .brand{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    width:100%;
    min-width:0;
    color:#fff !important;
    text-decoration:none;
  }

  .app-header .brand img{
    width:52px !important;
    height:52px !important;
    min-width:52px;
    object-fit:contain !important;
    border-radius:14px;
    padding:7px;
    background:#fff;
    box-shadow:0 6px 16px rgba(0,0,0,.12);
  }

  .app-header .brand span{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:1rem;
    font-weight:900;
    letter-spacing:.01em;
  }

  .app-header .spacer,
  .app-header .top-nav,
  .app-header .mobile-nav,
  .app-header .user,
  .app-header #themeToggle{
    display:none !important;
  }

  .app-main{
    max-width:430px !important;
    margin:0 auto !important;
    padding:14px 12px 100px !important;
    background:var(--mobile-shell) !important;
    min-height:calc(100vh - 84px);
  }

  .card,
  .dashboard-module-card,
  .dashboard-management-card,
  .linked-shop-dashboard-card,
  .access-dashboard-card{
    background:var(--mobile-card) !important;
    border:1px solid var(--mobile-line) !important;
    border-radius:18px !important;
    box-shadow:0 8px 22px rgba(15,23,42,.055) !important;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    z-index:800;
    width:min(400px,calc(100% - 24px));
    min-height:62px;
    padding:7px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:4px;
    background:rgba(255,255,255,.97);
    border:1px solid var(--mobile-line);
    border-radius:22px;
    box-shadow:0 20px 50px rgba(15,23,42,.22);
    backdrop-filter:blur(10px);
  }

  .mobile-nav-item{
    appearance:none;
    border:0;
    background:transparent;
    border-radius:16px;
    padding:7px 2px 6px;
    font:inherit;
    font-size:11px;
    font-weight:850;
    color:#475569;
    text-align:center;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    cursor:pointer;
    min-width:0;
  }

  .mobile-nav-item.active{
    background:#fee2e2;
    color:#b91c1c;
  }

  .mobile-nav-add{
    background:linear-gradient(135deg,#ef4444,#fb6a56);
    color:#fff !important;
    box-shadow:0 7px 16px rgba(239,68,68,.24);
  }

  .mobile-nav-icon{
    display:block;
    line-height:1;
    font-size:18px;
  }

  .mobile-more-overlay{
    position:fixed;
    inset:0;
    z-index:900;
    display:none;
    align-items:flex-end;
    justify-content:center;
    padding:14px;
    background:rgba(15,23,42,.58);
  }

  .mobile-more-overlay.open{display:flex}
  .mobile-more-overlay[hidden]{display:none !important}

  .mobile-more-sheet{
    width:min(400px,100%);
    max-height:80vh;
    overflow:auto;
    background:#fff;
    border:1px solid rgba(255,255,255,.9);
    border-radius:24px;
    padding:16px;
    box-shadow:0 26px 70px rgba(0,0,0,.30);
  }

  .mobile-more-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:14px;
  }

  .mobile-more-label{
    font-size:11px;
    letter-spacing:.22em;
    color:#64748b;
    font-weight:900;
  }

  .mobile-more-head h2{
    margin:3px 0 0;
    font-size:16px;
    font-weight:950;
    color:#0f172a;
  }

  .mobile-more-close{
    border:0;
    border-radius:14px;
    padding:11px 14px;
    background:#f1f5f9;
    color:#0f172a;
    font-weight:900;
    cursor:pointer;
  }

  .mobile-menu-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .mobile-menu-grid a,
  .mobile-menu-button{
    min-height:46px;
    border:0;
    border-radius:14px;
    padding:10px 12px;
    background:#f1f3f5;
    color:#0f172a !important;
    font:inherit;
    font-weight:900;
    text-decoration:none;
    display:flex;
    align-items:center;
    text-align:left;
  }

  .mobile-menu-grid a.active{
    background:#fee2e2;
    color:#b91c1c !important;
  }

  .mobile-menu-logout{
    background:#fee2e2 !important;
    color:#991b1b !important;
  }

  .mobile-dashboard-intro{
    display:block;
    margin:2px 0 14px;
  }

  .mobile-dashboard-kicker{
    margin-top:4px;
    font-size:11px;
    letter-spacing:.22em;
    color:#64748b;
    font-weight:900;
    text-transform:uppercase;
  }

  .mobile-dashboard-title{
    margin:5px 0 12px;
    color:#0f172a;
    font-size:24px;
    line-height:1.08;
    font-weight:950;
  }

  .mobile-notification-pill{
    width:100%;
    border:0;
    border-radius:14px;
    padding:12px 16px;
    margin-bottom:10px;
    background:#f3e8e7;
    color:#0f172a;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
  }

  .mobile-notification-pill .badge{
    min-width:26px;
    height:26px;
    border-radius:999px;
    display:grid;
    place-items:center;
    padding:0 8px;
    background:#ef4444;
    color:#fff;
    font-size:13px;
    font-weight:950;
  }

  .mobile-dashboard-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:0 0 14px;
  }

  .mobile-dashboard-tab{
    min-height:35px;
    border-radius:999px;
    background:#f4eeee;
    color:#475569;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    font-size:13px;
    font-weight:900;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .mobile-dashboard-tab.active{
    background:#fee2e2;
    color:#b91c1c;
  }

  .mobile-welcome-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 8px 20px rgba(15,23,42,.05);
    margin-bottom:14px;
  }

  .mobile-welcome-card .kicker{
    font-size:11px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#64748b;
    font-weight:900;
    margin-bottom:8px;
  }

  .mobile-welcome-card h2{
    margin:0 0 10px;
    color:#1e293b;
    font-size:22px;
    line-height:1.15;
    font-weight:950;
  }

  .mobile-welcome-card p{
    margin:0 0 14px;
    color:#64748b;
    line-height:1.55;
    font-size:14px;
  }

  .mobile-hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .mobile-primary-btn,
  .mobile-secondary-btn{
    width:100%;
    border:0;
    border-radius:14px;
    padding:13px 16px;
    font-weight:950;
    text-decoration:none;
    display:block;
    text-align:center;
  }

  .mobile-primary-btn{
    background:linear-gradient(135deg,#ef4444,#fb6a56);
    color:#fff !important;
  }

  .mobile-secondary-btn{
    background:#eef0f4;
    color:#0f172a !important;
  }

  .access-dashboard-card{
    margin-bottom:16px !important;
  }

  .access-dashboard-summary{
    min-height:62px !important;
    padding:13px 14px !important;
  }

  .access-summary-icon{
    width:44px !important;
    height:44px !important;
    border-radius:14px !important;
  }

  .access-summary-copy h2{font-size:1rem !important}
  .access-summary-copy p{font-size:.82rem !important}

  .dashboard-primary-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .dashboard-module-card{
    min-height:0 !important;
    padding:16px !important;
    margin-bottom:0 !important;
  }

  .dashboard-module-head{gap:12px !important}
  .dashboard-module-icon{
    width:42px !important;
    height:42px !important;
    border-radius:14px !important;
  }
  .dashboard-module-copy h3{font-size:1.06rem !important}
  .dashboard-module-copy p{font-size:.82rem !important}

  .dashboard-module-actions{
    grid-template-columns:1fr 1fr !important;
  }

  .dashboard-module-actions .btn,
  .dashboard-management-actions .btn,
  .dashboard-management-link{
    min-height:44px !important;
    border-radius:14px !important;
  }

  .dashboard-management-card{
    display:block !important;
    padding:16px !important;
  }

  .dashboard-management-heading{
    margin-bottom:12px !important;
  }

  .dashboard-management-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
  }

  .app-footer{
    max-width:430px;
    margin:0 auto;
    padding:10px 12px 90px !important;
    border:0 !important;
    background:var(--mobile-shell) !important;
    color:#64748b !important;
  }

  .filters,
  form .row{
    gap:10px !important;
  }

  input, select, textarea{
    border-radius:12px !important;
    background:#fff !important;
    color:#0f172a !important;
  }

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

  /* App colour alignment: use BuyNShip red/coral accents instead of EctoConnectify teal. */
  .mobile-primary-btn,
  .mobile-nav-add,
  .dashboard-module-actions .btn-primary,
  .dashboard-management-actions .btn-primary{
    background:linear-gradient(135deg,var(--mobile-primary),var(--mobile-primary-2)) !important;
    color:#fff !important;
    border-color:transparent !important;
  }

  .mobile-nav-item.active,
  .mobile-dashboard-tab.active,
  .mobile-menu-grid a.active{
    background:var(--mobile-primary-soft) !important;
    color:#b91c1c !important;
  }

  .mobile-welcome-card,
  .dashboard-module-card,
  .access-dashboard-card{
    border-color:#f1d8d5 !important;
  }

  .dashboard-module-card::after,
  .dashboard-management-card::after{
    background:rgba(239,68,68,.08) !important;
  }

  .mobile-notification-pill{
    background:#f7e7e5 !important;
  }

  .app-header .brand img{
    border:1px solid rgba(255,255,255,.45);
  }

}
