body.pb-group-create,
body.pb-group-created{background:#fff6f1}
body.pb-group-create .buddypress-wrap,
body.pb-group-created .buddypress-wrap,
.buddypress-wrap:has(.pb-gw){
  background:transparent;border:0;box-shadow:none;max-width:1080px;margin:18px auto 48px;padding:0;
}

.pb-gw{
  background:#fff;border:1px solid #f3e6dc;border-radius:28px;
  box-shadow:0 18px 50px rgba(120,53,15,.06);padding:28px 32px 22px;position:relative;overflow:hidden;
}
.pb-gw:before{
  content:"";position:absolute;right:-20px;bottom:-30px;width:160px;height:160px;opacity:.35;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23f6d7c4' d='M20 14c-3 0-6 3-6 7s3 6 6 6 6-2 6-6-3-7-6-7zm24 2c-3 0-5 3-5 6s2 5 5 5 5-2 5-5-2-6-5-6zM14 28c-4 0-7 4-7 8s3 7 7 7 7-3 7-7-3-8-7-8zm36 1c-3 0-6 3-6 7s3 6 6 6 6-2 6-6-3-7-6-7zM32 34c-8 0-14 8-14 16 0 6 5 8 14 8s14-2 14-8c0-8-6-16-14-16z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pb-gw-steps{
  list-style:none;margin:0 0 28px;padding:0 12px;display:flex;justify-content:space-between;position:relative;z-index:1;
}
.pb-gw-steps:before{
  content:"";position:absolute;top:15px;left:8%;right:8%;height:3px;background:#e7e5e4;border-radius:99px;
}
.pb-gw-steps li{position:relative;z-index:1;flex:1;text-align:center}
.pb-gw-steps a{color:inherit;text-decoration:none}
.pb-gw-steps__num{
  width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;
  background:#e7e5e4;color:#64748b;font-weight:800;font-size:14px;border:3px solid #fff;
}
.pb-gw-steps__label{display:block;margin-top:6px;font-size:13px;font-weight:700;color:#94a3b8}
.pb-gw-steps li.is-done .pb-gw-steps__num{background:#22c55e;color:#fff}
.pb-gw-steps li.is-done .pb-gw-steps__label{color:#334155}
.pb-gw-steps li.is-current .pb-gw-steps__num{background:#f97316;color:#fff}
.pb-gw-steps li.is-current .pb-gw-steps__label{color:#f97316}

.pb-gw-head{position:relative;z-index:1;margin-bottom:18px}
.pb-gw-head h1{margin:0;font-size:32px;letter-spacing:-.03em;color:#1e1b4b;font-weight:800}
.pb-gw-head p{margin:8px 0 0;color:#64748b;font-weight:600;max-width:640px}

.pb-gw-details{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:24px;align-items:start;position:relative;z-index:1}
.pb-gw-details__art{width:200px;height:160px;object-fit:cover;border-radius:24px;justify-self:end}
.pb-gw-field{display:block;margin-bottom:16px}
.pb-gw-field > span{display:block;font-weight:800;margin-bottom:8px;color:#1e293b}
.pb-gw-field i{color:#f97316;font-style:normal}
.pb-gw-input{display:block;position:relative;border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.pb-gw-input input,.pb-gw-input textarea{
  width:100%;border:0;background:transparent;padding:14px 64px 14px 16px;font:inherit;font-weight:600;color:#1e293b;outline:none;resize:vertical;
}
.pb-gw-input textarea{min-height:140px}
.pb-gw-input em{position:absolute;right:12px;bottom:10px;font-style:normal;color:#94a3b8;font-size:12px;font-weight:700}
.pb-gw-tip{background:#fff7ed;border:1px solid #ffedd5;border-radius:16px;padding:14px 16px}
.pb-gw-tip strong{color:#c2410c}
.pb-gw-tip p{margin:6px 0 0;color:#9a3412;font-size:14px;line-height:1.45}

.pb-gw-block{position:relative;z-index:1;margin-bottom:22px}
.pb-gw-block h2{margin:0 0 12px;font-size:18px;color:#1e293b}
.pb-gw-lead{margin:-6px 0 12px;color:#64748b;font-weight:600}
.pb-gw-privacy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pb-gw-privacy__card{
  border:1px solid #e7e5e4;border-radius:18px;padding:16px;cursor:pointer;background:#fff;display:block;
}
.pb-gw-privacy__card input{position:absolute;opacity:0}
.pb-gw-privacy__card.is-on,.pb-gw-privacy__card:has(input:checked){border-color:#f97316;box-shadow:0 0 0 1px #f97316;background:#fffaf6}
.pb-gw-privacy__icon{font-size:22px}
.pb-gw-privacy__card strong{display:block;margin:8px 0 4px;color:#1e293b}
.pb-gw-privacy__card p{margin:0 0 8px;color:#64748b;font-size:13px;line-height:1.4}
.pb-gw-privacy__card ul{margin:0;padding:0;list-style:none}
.pb-gw-privacy__card li{font-size:13px;color:#334155;font-weight:700;padding:3px 0 3px 18px;position:relative}
.pb-gw-privacy__card li:before{content:"✓";position:absolute;left:0;color:#22c55e;font-weight:800}
.pb-gw-invites{display:flex;flex-direction:column;gap:10px}
.pb-gw-invites label{
  display:flex;gap:12px;align-items:flex-start;border:1px solid #e7e5e4;border-radius:14px;padding:12px 14px;cursor:pointer;
}
.pb-gw-invites label:has(input:checked){border-color:#f97316;background:#fffaf6}
.pb-gw-invites strong{display:block;color:#1e293b}
.pb-gw-invites small{color:#64748b;font-weight:600}

.pb-gw-photo,.pb-gw-cover{position:relative;z-index:1;display:grid;justify-items:center;gap:16px;text-align:center}
.pb-gw-photo__preview{position:relative}
.pb-gw-photo__preview img{width:180px;height:180px;border-radius:50%;object-fit:cover;border:6px solid #fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.pb-gw-photo__preview span{
  position:absolute;right:8px;bottom:8px;width:36px;height:36px;border-radius:50%;background:#fff;
  display:grid;place-items:center;box-shadow:0 6px 16px rgba(15,23,42,.12);
}
.pb-gw-drop{
  width:min(460px,100%);border:1.5px dashed #fdba74;border-radius:18px;padding:28px 16px;background:#fffaf6;cursor:pointer;
}
.pb-gw-drop input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.pb-gw-drop strong{display:block;color:#1e293b}
.pb-gw-drop span{display:block;color:#94a3b8;margin:6px 0}
.pb-gw-drop em{
  display:inline-flex;align-items:center;justify-content:center;font-style:normal;
  background:#fff;border:1px solid #e6e8ec;border-radius:10px;padding:12px 18px;min-height:46px;
  font-weight:700;font-size:15px;color:#3f4553;
}
.pb-gw-drop.is-hot{background:#ffedd5}
.pb-gw-spec{margin:0;color:#94a3b8;font-size:13px;font-weight:700;line-height:1.5}
.pb-gw-cover__preview{
  width:100%;height:180px;border-radius:18px;overflow:hidden;background:#fff7ed;
  display:flex;align-items:center;justify-content:center;gap:8px;position:relative;background-size:cover;background-position:center;
}
.pb-gw-cover__preview img{height:150px;width:180px;object-fit:cover;border-radius:16px}
.pb-gw-cover__preview strong{
  position:absolute;left:24px;bottom:16px;color:#fff;font-size:28px;text-shadow:0 6px 16px rgba(0,0,0,.35);
}

.pb-gw-tabs{display:flex;gap:22px;border-bottom:1px solid #f1f5f9;margin-bottom:14px;position:relative;z-index:1}
.pb-gw-tab{border:0;background:transparent;padding:8px 2px 12px;font-weight:800;color:#94a3b8;cursor:pointer;position:relative}
.pb-gw-tab.is-on{color:#f97316}
.pb-gw-tab.is-on:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:99px;background:#f97316}
.pb-gw-invite{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:16px;position:relative;z-index:1}
.pb-gw-tools{display:flex;gap:10px;margin-bottom:12px}
.pb-gw-search{flex:1;display:flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:999px;padding:0 14px}
.pb-gw-search svg{width:18px;height:18px;color:#94a3b8}
.pb-gw-search input{border:0;outline:0;width:100%;padding:11px 0;font:inherit;font-weight:600}
.pb-gw-filters{position:relative}
.pb-gw-filters > button,.pb-gw-chip{
  border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:10px 14px;font-weight:800;cursor:pointer;color:#334155;
}
.pb-gw-filters div{
  position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #f3e6dc;border-radius:14px;
  box-shadow:0 12px 30px rgba(15,23,42,.08);padding:6px;min-width:150px;z-index:3;
}
.pb-gw-filters div button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:8px;font-weight:700;cursor:pointer}
.pb-gw-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.pb-gw-chip.is-on{background:#f97316;border-color:#f97316;color:#fff}
.pb-gw-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pb-gmember{border:1px solid #eee7e2;border-radius:16px;padding:12px;background:#fff}
.pb-gmember[hidden]{display:none !important}
.pb-gmember header{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.pb-gmember header img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.pb-gmember header strong{display:block;color:#1e293b}
.pb-gmember header small{color:#94a3b8;font-weight:700}
.pb-gmember__pets{display:flex;flex-wrap:wrap;gap:8px}
.pb-gpet{width:92px;border:1px solid #f1f5f9;border-radius:12px;padding:8px;text-align:center;cursor:pointer;background:#fafafa}
.pb-gpet[hidden]{display:none !important}
.pb-gpet img,.pb-gpet__fallback{width:48px;height:48px;border-radius:50%;object-fit:cover}
.pb-gpet__fallback{display:inline-grid;place-items:center;background:#fff7ed}
.pb-gpet b{display:block;font-size:12px;color:#1e293b}
.pb-gpet em{display:block;font-style:normal;font-size:11px;color:#64748b;font-weight:700}
.pb-gpet input{position:absolute;opacity:0}
.pb-gpet.is-on,.pb-gpet:has(input:checked){border-color:#f97316;background:#fff7ed}
.pb-gw-pager{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.pb-gw-pager p{margin:0;color:#94a3b8;font-size:13px;font-weight:700}
.pb-gw-pager nav{display:flex;gap:6px}
.pb-gw-page{width:30px;height:30px;border-radius:50%;border:0;background:transparent;font-weight:800;color:#64748b;cursor:pointer}
.pb-gw-page.is-on{background:#f97316;color:#fff}
.pb-gw-selected{background:#fffaf6;border:1px solid #f6e6da;border-radius:18px;padding:14px;min-height:240px}
.pb-gw-selected header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.pb-gw-selected header button{border:0;background:transparent;color:#f97316;font-weight:800;cursor:pointer}
.pb-gw-selected ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.pb-gw-selected li{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #f3e6dc;border-radius:12px;padding:8px}
.pb-gw-selected img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.pb-gw-selected b{display:block;font-size:13px}
.pb-gw-selected em{display:block;font-style:normal;color:#64748b;font-size:12px;font-weight:700}
.pb-gw-selected li button{margin-left:auto;border:0;background:transparent;color:#94a3b8;font-size:18px;cursor:pointer}
#pb-gw-empty{color:#94a3b8;font-weight:700;text-align:center}
.pb-gw-none{color:#94a3b8;font-weight:700}

.pb-gw-foot{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-top:22px;padding-top:16px;border-top:1px solid #f4eee9;position:relative;z-index:1;
}
.pb-gw-foot__actions{display:flex;gap:10px}
.pb-gw-back,.pb-gw-skip,.pb-gw-next{
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  min-height:48px;border-radius:10px;padding:13px 22px;
  font-weight:700;text-decoration:none;cursor:pointer;font-size:15px;line-height:1.2;
  box-shadow:none;
}
.pb-gw-back,.pb-gw-skip{background:#fff;border:1px solid #e6e8ec;color:#3f4553}
.pb-gw-next{background:#ff6b2c;border:1px solid #ff6b2c;color:#fff}
body.pb-group-create .pb-gw-foot .pb-gw-continue{
  background:#fff !important;border:1px solid #e6e8ec !important;color:#3f4553 !important;box-shadow:none !important;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
body.pb-group-create .pb-gw-foot .pb-gw-continue:hover,
body.pb-group-create .pb-gw-foot .pb-gw-continue:focus{
  background:#ff6b2c !important;border-color:#ff6b2c !important;color:#fff !important;
}

.pb-gw-success{text-align:center;padding:48px 24px}
.pb-gw-success__badge{
  width:84px;height:84px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center;
  background:#22c55e;color:#fff;font-size:40px;font-weight:800;box-shadow:0 12px 30px rgba(34,197,94,.3);
}
.pb-gw-success h1{margin:0;color:#1e1b4b;font-size:32px}
.pb-gw-success__ready{color:#64748b;font-weight:700}
.pb-gw-success__card{max-width:520px;margin:18px auto;border:1px solid #f3e6dc;border-radius:18px;overflow:hidden;text-align:left}
.pb-gw-success__banner{height:140px;background:#fff7ed center/cover no-repeat;display:flex;align-items:center;justify-content:center;gap:8px}
.pb-gw-success__banner img{height:110px;width:140px;object-fit:cover;border-radius:14px}
.pb-gw-success__meta{padding:14px 16px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.pb-gw-success__meta strong{width:100%;font-size:18px;color:#1e293b}
.pb-gw-success__meta span{color:#64748b;font-weight:700;font-size:13px}
.pb-gw-success__actions{display:flex;flex-direction:column;gap:10px;width:min(520px,100%);margin:8px auto 0}
.pb-gw-success__actions .pb-gw-next,.pb-gw-success__actions .pb-gw-back{width:100%}

.buddypress-wrap:has(.pb-gw--invite){max-width:1220px}
.pb-gw--invite{overflow:visible;padding:18px 20px 16px}
.pb-gi-main{position:relative;z-index:1}
.pb-gi-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.pb-gi-hero h1{margin:0;font-size:30px;letter-spacing:-.03em;color:#1e1b4b;font-weight:800}
.pb-gi-hero h2{margin:6px 0 0;font-size:20px;color:#1e293b;font-weight:800}
.pb-gi-art{position:relative;width:210px;height:108px;flex:0 0 210px}
.pb-gi-art img{position:absolute;object-fit:cover;border-radius:50%;border:3px solid #fff;box-shadow:0 8px 18px rgba(15,23,42,.12)}
.pb-gi-art img:nth-child(1){width:62px;height:62px;left:0;top:30px}
.pb-gi-art img:nth-child(2){width:96px;height:96px;left:48px;top:0;z-index:1}
.pb-gi-art img:nth-child(3){width:56px;height:56px;right:0;top:38px}
.pb-gi-note{display:flex;gap:12px;align-items:flex-start;background:#fff7ed;border:1px solid #ffedd5;border-radius:16px;padding:12px 14px;margin:8px 0 12px}
.pb-gi-note[hidden]{display:none !important}
.pb-gi-note__icon{width:28px;height:28px;border-radius:50%;background:#ffedd5;color:#f97316;display:grid;place-items:center;flex:0 0 28px;font-size:14px}
.pb-gi-note p{margin:0;color:#9a3412;font-size:14px;line-height:1.45}
.pb-gi-note strong{display:block;color:#c2410c;font-weight:800}
.pb-gi-note button{margin-left:auto;border:0;background:transparent;color:#c2410c;font-size:20px;line-height:1;cursor:pointer}
.pb-gi-work{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;align-items:start}
.pb-gi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pb-gi-grid--members{grid-template-columns:1fr}
.pb-gw--invite .pb-gmember{border:1px solid #eee7e2;border-radius:16px;padding:14px;background:#fff}
.pb-gw--invite .pb-gmember.is-on{border-color:#f97316;box-shadow:0 0 0 1px #f97316}
.pb-gw--invite .pb-gmember header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.pb-gw--invite .pb-gmember header img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.pb-gw--invite .pb-gmember header strong{display:block;color:#1e293b;font-size:16px}
.pb-gw--invite .pb-gmember header small{color:#94a3b8;font-weight:700}
.pb-gw--invite .pb-gmember header small em{font-style:normal}
.pb-gmember__all{position:relative;width:22px;height:22px;flex:0 0 22px;cursor:pointer}
.pb-gmember__all input{position:absolute;opacity:0}
.pb-gmember__all .pb-gpet__mark{position:static;display:grid}
.pb-gmember__all:has(input:checked) .pb-gpet__mark,.pb-gmember__all.is-on .pb-gpet__mark{
  background:#f97316;border-color:#f97316;color:#fff;font-size:11px;font-weight:800;
}
.pb-gmember__all:has(input:checked) .pb-gpet__mark:after,.pb-gmember__all.is-on .pb-gpet__mark:after{content:"✓"}
.pb-gw--invite .pb-gmember__pets{display:flex;flex-wrap:wrap;gap:10px}
.pb-gw--invite .pb-gpet{
  position:relative;width:108px;display:flex;flex-direction:column;align-items:center;text-align:center;
  border:1px solid #eee7e2;border-radius:14px;padding:22px 8px 10px;background:#fff;cursor:pointer;
}
.pb-gw--invite .pb-gpet img,.pb-gw--invite .pb-gpet__fallback{width:56px;height:56px;border-radius:50%;object-fit:cover;margin-bottom:6px}
.pb-gw--invite .pb-gpet__fallback{display:grid;place-items:center;background:#fff7ed;font-size:28px}
.pb-gw--invite .pb-gpet b{font-size:14px;color:#1e293b}
.pb-gw--invite .pb-gpet em{font-size:12px;margin-top:2px}
.pb-gw--invite .pb-gpet small{display:block;margin-top:2px;color:#94a3b8;font-size:12px;font-weight:600}
.pb-gpet__mark{
  position:absolute;top:10px;left:10px;width:18px;height:18px;border-radius:50%;
  border:1.5px solid #d6d3d1;background:#fff;
}
.pb-gw--invite .pb-gpet.is-on,.pb-gw--invite .pb-gpet:has(input:checked){border-color:#f97316;box-shadow:0 0 0 1px #f97316;background:#fff}
.pb-gw--invite .pb-gpet.is-on .pb-gpet__mark,.pb-gw--invite .pb-gpet:has(input:checked) .pb-gpet__mark{
  background:#f97316;border-color:#f97316;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;
}
.pb-gw--invite .pb-gpet.is-on .pb-gpet__mark:after,.pb-gw--invite .pb-gpet:has(input:checked) .pb-gpet__mark:after{content:"✓"}
.pb-gw--invite .pb-gw-selected{min-height:280px}

@media (max-width:860px){
  .pb-gw{padding:20px 16px}
  .pb-gw-details,.pb-gw-privacy,.pb-gw-invite,.pb-gw-members,.pb-gi-work,.pb-gi-grid{grid-template-columns:1fr}
  .pb-gw-details__art,.pb-gi-art{display:none}
  .pb-gw-steps__label{font-size:11px}
  .pb-gw-foot{flex-direction:column;align-items:stretch}
  .pb-gw-foot__actions{flex-direction:column}
}
