/* MindCyber mobile app V1 — desktop styling is preserved. */
.mc-app-nav{display:none}
@media(max-width:860px){
 body.mc-mobile-app{padding-bottom:calc(88px + env(safe-area-inset-bottom));}
 .mc-mobile-app .mc-app-nav{position:fixed;inset:auto 0 0;z-index:1100;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;box-sizing:border-box;min-height:72px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e1e7e2;box-shadow:0 -6px 24px rgba(13,59,47,.06)}
 .mc-app-tab{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:56px;padding:4px 0;border-radius:15px;color:#52645b;text-decoration:none;font-size:11px;font-weight:600;line-height:1.4;white-space:nowrap;-webkit-tap-highlight-color:transparent}
 .mc-app-tab.is-active{background:#eaf2ed;color:#0d3b2f;font-weight:800}
 .mc-app-tab:focus-visible{outline:2px solid #0d3b2f;outline-offset:-2px}
 .mc-app-icon{position:relative;display:grid;place-items:center;width:29px;height:29px}
 .mc-app-icon svg{width:24px;height:24px}
 .mc-app-badge{position:absolute;top:-3px;right:-9px;min-width:16px;height:16px;box-sizing:content-box;padding:0 3px;border:2px solid #fff;border-radius:20px;background:#9a352d;color:white;font:700 10px/16px sans-serif;text-align:center}
 .mc-app-badge[hidden]{display:none}
 .mc-mobile-app .container{width:calc(100% - 32px);max-width:100%}
 .mc-mobile-app .header-main{min-height:68px;gap:12px}
 .mc-mobile-app .brand{min-width:0;gap:9px}
 .mc-mobile-app .brand strong{font-size:21px}
 .mc-mobile-app .brand small{font-size:10px}
 .mc-mobile-app .brand-mark{width:38px;height:38px;flex-shrink:0}
 .mc-mobile-app .header-actions{gap:8px;flex-shrink:0}
 .mc-mobile-app .header-cart-link{display:none}
 .mc-mobile-app .announcement-bar{display:none}
 .mc-mobile-app .hero-section{padding:24px 0;background:#f7f2e8}
 .mc-mobile-app .hero-grid{display:block;padding-top:0;padding-bottom:0}
 .mc-mobile-app .hero-visual,.mc-mobile-app .hero-stats{display:none}
 .mc-mobile-app .hero-copy h1{font-size:30px;line-height:1.3;margin:10px 0}
 .mc-mobile-app .hero-copy>p{font-size:14px;line-height:1.7;margin:0 0 16px}
 .mc-mobile-app .hero-actions{gap:8px;margin-top:14px;flex-wrap:wrap}
 .mc-mobile-app .hero-search{display:flex;flex-wrap:nowrap;border-radius:16px;padding:8px;gap:8px;margin:0}
 .mc-mobile-app .hero-search input{min-width:0;flex:1;flex-basis:auto;font-size:16px}
 .mc-mobile-app .hero-search button{width:auto;padding:10px 14px;border-radius:11px}
 .mc-mobile-app .section{padding:28px 0}
 .mc-mobile-app .section-heading h2{font-size:25px;line-height:1.3}
 .mc-mobile-app .category-strip{padding:16px 0}
 .mc-mobile-app .category-grid-six{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .mc-mobile-app .category-grid-six>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:13px 6px;background:#fff;border:1px solid #e4e8e0;border-radius:16px;min-width:0;text-align:center}
 .mc-mobile-app .category-grid-six strong{font-size:12px}
 .mc-mobile-app .category-grid-six small{display:none}
 .mc-mobile-app .category-icon{font-size:22px;width:34px;height:34px}
 .mc-mobile-app .book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .mc-mobile-app .book-card{min-width:0}
 .mc-mobile-app .book-info h3{font-size:15px;line-height:1.5}
 .mc-mobile-app .article-archive-hero{padding:25px 0}
 .mc-mobile-app .article-archive-grid{grid-template-columns:1fr}
 .mc-mobile-app .article-archive-hero h1{font-size:29px;line-height:1.35}
 .mc-mobile-app .article-hero-orb{display:none}
 .mc-mobile-app .mobile-panel:not([hidden]){max-height:calc(100dvh - 160px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px}
 .mc-mobile-app .mobile-panel nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 16px}
 .mc-mobile-app .mobile-panel nav a{background:#f2f6f1;border:1px solid #e0e8de;border-radius:13px;padding:14px 10px;color:#0d3b2f;font-weight:600;font-size:14px}
 .mc-mobile-app .site-footer{padding:22px 0 12px}
 .mc-mobile-app .footer-grid{display:block}
 .mc-mobile-app .footer-grid>div:not(.footer-brand){display:none}
 .mc-mobile-app .footer-grid>div:last-child{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px}
 .mc-mobile-app .footer-grid>div:last-child .footer-heading{display:none}
 .mc-mobile-app .footer-grid>div:last-child>a{font-size:12px;margin:0}
 .mc-mobile-app .footer-brand p,.mc-mobile-app .footer-bottom p:last-child{display:none}
 .mc-mobile-app .footer-brand .brand small{display:none}
 .mc-mobile-app .footer-bottom{margin-top:14px;padding-top:12px;font-size:11px}
 .mc-mobile-app #pwa-install-button{bottom:calc(88px + env(safe-area-inset-bottom))!important;right:12px!important;min-height:40px!important}
 .mc-mobile-app #pwa-ios-help{padding-bottom:calc(20px + env(safe-area-inset-bottom))!important}
 .mc-mobile-app .mc-dashboard{padding:22px 0 32px}
 .mc-mobile-app .mc-dashboard-head h1{font-size:28px;line-height:1.4;overflow-wrap:anywhere}
 .mc-mobile-app .mc-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mc-mobile-app .mc-stat-card{padding:16px;border-radius:17px;min-width:0}
 .mc-mobile-app .mc-stat-card strong{font-size:27px}
 .mc-mobile-app .mc-stat-card span{font-size:12px}
 .mc-mobile-app .mc-member-user strong,.mc-mobile-app .mc-member-user small{overflow-wrap:anywhere}
 .mc-mobile-app .mc-member-sidebar nav,.mc-mobile-app .member-account-nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .mc-mobile-app .mc-member-sidebar nav a,.mc-mobile-app .member-account-nav a{padding:12px 9px;background:#f4f7f2;border-radius:12px;font-size:12px;min-width:0}
 .mc-mobile-app .member-layout,.mc-mobile-app .mc-dashboard-grid,.mc-mobile-app .mc-panel-grid{grid-template-columns:minmax(0,1fr)}
 .mc-mobile-app .member-content,.mc-mobile-app .mc-dashboard-grid>main{min-width:0}
 .mc-mobile-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),.mc-mobile-app select,.mc-mobile-app textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}
 .mc-mobile-app.mc-keyboard-open .mc-app-nav,.mc-mobile-app.mc-keyboard-open #pwa-install-button{display:none!important}
}
@media(prefers-reduced-motion:reduce){.mc-app-nav,.mc-app-tab{transition:none}}

/* MINDCYBER_MOBILE_POLISH_V2 */
@media(max-width:860px){
  body.mc-mobile-app .hero-section::before{
    display:none!important;
  }
  body.mc-mobile-app .hero-copy{
    position:relative;
    z-index:1;
  }
  body.mc-mobile-app .hero-copy h1{
    color:#17392f!important;
    font-size:27px!important;
    line-height:1.4!important;
  }
  body.mc-mobile-app .hero-copy h1 em{
    color:#805a23!important;
  }
  body.mc-mobile-app .hero-copy>p{
    color:#52645b!important;
    font-size:13px!important;
  }
  body.mc-mobile-app .hero-copy .eyebrow{
    color:#805a23!important;
  }
  body.mc-mobile-app .hero-section{
    padding:20px 0!important;
  }
  body.mc-mobile-app .site-footer{
    padding:16px 0 10px!important;
  }
  body.mc-mobile-app .footer-brand{
    display:none!important;
  }
  body.mc-mobile-app .footer-grid>div:last-child{
    margin-top:0!important;
  }
  body.mc-mobile-app .footer-bottom{
    margin-top:12px!important;
    padding-top:10px!important;
  }
  body.mc-mobile-app>.mc-app-nav{
    position:fixed!important;
    top:auto!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    display:grid!important;
    transform:none!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:1100!important;
  }
  body.mc-mobile-app.mc-keyboard-open>.mc-app-nav{
    display:none!important;
  }
}
