/* BuddyPark public/mobile polish */
:root{--bp-primary:#5D5FEF;--bp-secondary:#FDB22D;--bp-dark:#1E1E2F;--bp-light:#F7F7FC;--bp-text:#4B4B63;--bp-orange:#FF8A1E;}
html,body{max-width:100%;overflow-x:hidden;}
body{background:var(--bp-light);}
body>header{isolation:isolate;}
body>header .container{max-width:1240px;}
body>header a,body>header button{touch-action:manipulation;}
main img{max-width:100%;height:auto;}
main section{position:relative;}
main section .container{max-width:1240px;}
.bp-image-fallback{object-fit:contain!important;background:#fff!important;padding:12px!important;border-radius:20px!important;box-shadow:0 10px 30px rgba(30,30,47,.08)!important;}

/* Mobile navigation */
#mobile-menu{background:rgba(255,255,255,.98);backdrop-filter:blur(18px);border-top:1px solid rgba(93,95,239,.08);box-shadow:0 18px 36px rgba(30,30,47,.14);}
#mobile-menu>a{font-weight:750;border-radius:12px;padding:11px 12px;}
#mobile-menu>a:hover{background:#f2f2ff;}
#mobile-menu a[href*="/login"]{border:1px solid rgba(93,95,239,.22);text-align:center;color:var(--bp-primary)!important;}
#mobile-menu a[href*="/register"]{padding:12px 14px!important;}
#mobile-menu-button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;}
#mobile-menu-button:hover{background:#f3f4ff;}

/* Inline PWA call-to-action */
.bp-inline-install{display:flex;align-items:center;gap:14px;margin-top:24px;padding:16px 18px;border:1px solid rgba(93,95,239,.16);border-radius:20px;background:linear-gradient(135deg,#fff,#f2f3ff);box-shadow:0 16px 40px rgba(30,30,47,.09);}
.bp-inline-install img{width:52px;height:52px;border-radius:14px;flex:0 0 auto;}
.bp-inline-install-copy{min-width:0;flex:1;}
.bp-inline-install-title{font-weight:800;color:var(--bp-dark);font-size:1rem;}
.bp-inline-install-text{color:var(--bp-text);font-size:.9rem;margin-top:2px;}
.bp-inline-install button{border:0;border-radius:12px;background:var(--bp-primary);color:#fff;font-weight:800;padding:11px 15px;white-space:nowrap;box-shadow:0 8px 22px rgba(93,95,239,.22);}

/* Auth cards */
[data-buddy-scope="auth"] main{padding-top:78px!important;}
[data-buddy-scope="auth"] main>section{min-height:calc(100dvh - 78px)!important;background-attachment:scroll!important;background-size:cover!important;}
[data-buddy-scope="auth"] main>section>div{border:1px solid rgba(93,95,239,.10);}
[data-buddy-scope="auth"] input,[data-buddy-scope="auth"] select,[data-buddy-scope="auth"] textarea{min-height:48px;}
[data-buddy-scope="auth"] a[href*="/auth/google"],[data-buddy-scope="auth"] a[href*="/auth/facebook"]{min-height:48px;text-decoration:none!important;}

/* Partnership page */
body[data-buddy-page="partner"] #form{scroll-margin-top:96px;}
body[data-buddy-page="partner"] #form input,body[data-buddy-page="partner"] #form select,body[data-buddy-page="partner"] #form textarea{font-size:16px;}

@media (max-width:1023px){
  body>header .container{padding:10px 14px!important;min-height:64px;}
  body>header .container>a:first-child{font-size:1.25rem!important;line-height:1;}
  body>header .container>a:first-child img{height:32px!important;margin-right:7px!important;}
  #mobile-menu{position:absolute;left:0;right:0;top:100%;padding:12px 14px 16px!important;max-height:calc(100dvh - 64px);overflow:auto;}
  #mobile-menu:not(.hidden){display:block!important;}
  body.bp-menu-open{overflow:hidden;}
  main.pt-24{padding-top:64px!important;}
  main section{padding-top:48px!important;padding-bottom:48px!important;}
  main section .container{padding-left:18px!important;padding-right:18px!important;}
  main .grid{gap:24px;}
  main h1,main h2,main h3{overflow-wrap:anywhere;}
  main .whitespace-nowrap{white-space:normal!important;}
  main .text-6xl{font-size:2.5rem!important;line-height:1.06!important;}
  main .text-5xl{font-size:2.2rem!important;line-height:1.08!important;}
  main .text-4xl{font-size:1.9rem!important;line-height:1.12!important;}
  main .text-3xl{font-size:1.6rem!important;line-height:1.18!important;}
  main .text-xl{font-size:1.05rem!important;line-height:1.6!important;}
  main [data-aos]{transform:none!important;}
  main .lg\:rotate-3,main .rotate-6{transform:none!important;}
  main img{object-position:center;}
}

@media (max-width:640px){
  main section{padding-top:38px!important;padding-bottom:38px!important;}
  main section .container{padding-left:14px!important;padding-right:14px!important;}
  main>section:first-of-type{padding-top:34px!important;}
  main>section:first-of-type .grid{gap:22px!important;}
  main>section:first-of-type h1{font-size:clamp(2rem,10vw,2.55rem)!important;line-height:1.05!important;margin-bottom:16px!important;letter-spacing:-.035em;}
  main>section:first-of-type p{font-size:1rem!important;line-height:1.58!important;margin-bottom:20px!important;}
  main>section:first-of-type a{width:100%;text-align:center;padding:13px 16px!important;font-size:1rem!important;}
  main>section:first-of-type img{max-height:320px;object-fit:cover;border-width:5px!important;border-radius:22px!important;}
  main>section:first-of-type .absolute{display:none!important;}
  main .p-8{padding:20px!important;}
  main .sm\:p-10,main .md\:p-12{padding:22px!important;}
  main .rounded-3xl{border-radius:22px!important;}
  main .gap-8{gap:18px!important;}
  footer .container{padding-left:18px!important;padding-right:18px!important;}
  .bp-inline-install{align-items:flex-start;flex-wrap:wrap;padding:14px;}
  .bp-inline-install-copy{width:calc(100% - 68px);}
  .bp-inline-install button{width:100%;}

  [data-buddy-scope="auth"] main>section{padding:18px 12px 28px!important;align-items:flex-start!important;}
  [data-buddy-scope="auth"] main>section>div{width:100%!important;max-width:100%!important;margin:0!important;padding:20px 16px!important;border-radius:22px!important;}
  [data-buddy-scope="auth"] h2{font-size:1.9rem!important;line-height:1.12!important;}
  [data-buddy-scope="auth"] p{line-height:1.5;}
  [data-buddy-scope="auth"] .grid{grid-template-columns:1fr!important;gap:12px!important;}
  [data-buddy-scope="auth"] input,[data-buddy-scope="auth"] select,[data-buddy-scope="auth"] textarea,[data-buddy-scope="auth"] button{font-size:16px!important;}

  body[data-buddy-page="partner"] main>section:first-of-type h1{font-size:2.25rem!important;}
  body[data-buddy-page="partner"] main .grid{grid-template-columns:1fr!important;}
  body[data-buddy-page="partner"] main .flex.sm\:flex-row{flex-direction:column!important;text-align:center!important;}
}
