:root{--vgp-mobile-bar:calc(66px + env(safe-area-inset-bottom,0px))}
/* Desktop & Mobile Responsive Helpers */
@media(max-width:760px){
 .desktop-only{display:none!important}
 .vgp-menu-btn{display:inline-flex!important}
}
@media(min-width:761px){
 .vgp-menu-btn{display:none!important}
 .mobile-only{display:none!important}
}

.vgp-menu-btn{
 align-items:center;
 justify-content:center;
 width:36px;
 height:36px;
 border-radius:10px;
 border:1px solid #dfe7e3;
 background:#fff;
 color:#075b4b;
 font-size:18px;
 font-weight:900;
 cursor:pointer;
 padding:0;
 line-height:1;
 transition:all .15s;
 box-shadow:0 1px 3px rgba(0,0,0,0.05);
 flex-shrink:0;
}
.vgp-menu-btn:hover,.vgp-menu-btn:active{background:#e7f5ef;border-color:#075b4b}

/* Drawer Backdrop */
.vgp-drawer-backdrop{
 position:fixed;
 inset:0;
 background:rgba(7,45,39,0.55);
 backdrop-filter:blur(3px);
 -webkit-backdrop-filter:blur(3px);
 z-index:900;
 opacity:0;
 pointer-events:none;
 transition:opacity .25s ease;
}
.vgp-drawer-backdrop.active{
 opacity:1;
 pointer-events:auto;
}

/* Slide-out Mobile Drawer */
.vgp-drawer{
 position:fixed;
 top:0;
 right:0;
 bottom:0;
 width:min(320px, 86vw);
 background:#ffffff;
 z-index:910;
 transform:translateX(100%);
 transition:transform .28s cubic-bezier(0.16,1,0.3,1);
 display:flex;
 flex-direction:column;
 box-shadow:-6px 0 25px rgba(0,0,0,0.18);
 overflow-y:auto;
 -webkit-overflow-scrolling:touch;
 padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));
}
.vgp-drawer.active{
 transform:translateX(0);
}

/* Drawer Header */
.vgp-drawer-header{
 display:flex;
 align-items:center;
 justify-content:space-between;
 padding:18px 16px 14px;
 background:#073d34;
 color:#fff;
 border-bottom:1px solid #0d5f4a;
}
.vgp-drawer-user{
 display:flex;
 align-items:center;
 gap:10px;
 min-width:0;
}
.vgp-drawer-avatar{
 width:40px;
 height:40px;
 border-radius:12px;
 background:#138166;
 color:#fff;
 display:grid;
 place-items:center;
 font-size:20px;
 flex-shrink:0;
}
.vgp-drawer-userinfo{
 min-width:0;
}
.vgp-drawer-userinfo b{
 display:block;
 font-size:14px;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 color:#fff;
}
.vgp-drawer-userinfo span{
 display:block;
 font-size:11px;
 color:#a3d9c9;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}
.vgp-drawer-close{
 background:rgba(255,255,255,0.15);
 border:0;
 color:#fff;
 width:32px;
 height:32px;
 border-radius:8px;
 display:grid;
 place-items:center;
 font-size:16px;
 cursor:pointer;
 flex-shrink:0;
}

/* Drawer Coin Card */
.vgp-drawer-coin-card{
 margin:12px 14px;
 padding:12px 14px;
 background:linear-gradient(135deg,#fef3c7,#fde68a);
 border:1px solid #fcd34d;
 border-radius:14px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 box-shadow:0 2px 8px rgba(180,83,9,0.08);
}
.vgp-drawer-coin-card small{
 display:block;
 font-size:10px;
 font-weight:800;
 letter-spacing:0.8px;
 color:#92400e;
}
.vgp-drawer-coin-val{
 font-size:17px;
 font-weight:900;
 color:#78350f;
 margin-top:2px;
}
.vgp-drawer-coin-action{
 font-size:12px;
 font-weight:700;
 color:#92400e;
 text-decoration:none;
 background:#fff;
 padding:6px 10px;
 border-radius:8px;
 border:1px solid #fde047;
}

/* Section titles */
.vgp-drawer-section-title{
 font-size:11px;
 font-weight:800;
 letter-spacing:0.8px;
 color:#68756f;
 padding:12px 16px 4px;
 text-transform:uppercase;
}

/* Community Quick Grid */
.vgp-drawer-grid{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:8px;
 padding:4px 14px 12px;
}
.vgp-drawer-quick{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 padding:10px 12px;
 border-radius:12px;
 text-decoration:none;
 border:1px solid #dfe7e3;
 background:#fff;
 transition:all .15s;
}
.vgp-drawer-quick .icon{font-size:18px;margin-bottom:4px}
.vgp-drawer-quick b{font-size:12px;color:#17231f}
.vgp-drawer-quick small{font-size:10px;color:#68756f;margin-top:1px}
.vgp-drawer-quick.quick-pass{background:#fffbf2;border-color:#fed330}
.vgp-drawer-quick.quick-pass b{color:#d35400}
.vgp-drawer-quick.quick-gb{background:#f0f9f5;border-color:#20bf6b}
.vgp-drawer-quick.quick-gb b{color:#134e42}
.vgp-drawer-quick.quick-fr{background:#f0f7ff;border-color:#74b9ff}
.vgp-drawer-quick.quick-fr b{color:#0984e3}
.vgp-drawer-quick.quick-chat{background:#f5f6fa;border-color:#dcdde1}

/* Drawer Nav Links */
.vgp-drawer-nav{
 display:flex;
 flex-direction:column;
 padding:4px 10px;
}
.vgp-drawer-nav a{
 display:flex;
 align-items:center;
 gap:12px;
 padding:10px 12px;
 border-radius:10px;
 font-size:13px;
 font-weight:600;
 color:#203d35;
 text-decoration:none;
 transition:background .15s;
}
.vgp-drawer-nav a:hover,.vgp-drawer-nav a:active{
 background:#e7f5ef;
 color:#075b4b;
}
.vgp-drawer-nav a .icon{
 font-size:16px;
 width:20px;
 text-align:center;
}

/* Drawer Footer */
.vgp-drawer-footer{
 margin-top:auto;
 padding:16px 14px 10px;
 border-top:1px solid #edf2ee;
 display:flex;
 flex-direction:column;
 gap:8px;
}
.vgp-drawer-btn{
 display:flex;
 align-items:center;
 justify-content:center;
 padding:10px 14px;
 border-radius:10px;
 font-size:13px;
 font-weight:700;
 text-decoration:none;
 border:1px solid #dfe7e3;
 background:#fff;
 color:#17231f;
 cursor:pointer;
}
.vgp-drawer-btn.primary{
 background:#075b4b;
 color:#fff;
 border-color:#075b4b;
}
.vgp-drawer-btn.danger{
 color:#b91c1c;
 background:#fef2f2;
 border-color:#fecaca;
}

.vgp-mobile-nav{display:none}.vgp-mobile-nav svg{width:23px;height:23px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.vgp-mobile-nav a{position:relative;text-decoration:none!important}.vgp-mobile-count{position:absolute;top:1px;right:calc(50% - 25px);background:#ad382b;color:#fff;border-radius:12px;padding:1px 5px;font:600 11px/16px 'Segoe UI',sans-serif}.vgp-mobile-count[hidden]{display:none}
.vgp-network{position:fixed;left:12px;right:12px;bottom:calc(var(--vgp-mobile-bar) + 8px);z-index:400;background:#fff0df;border:1px solid #d5ab73;color:#633e0d;padding:12px;border-radius:10px;font:14px/1.5 'Segoe UI',sans-serif}.vgp-network[hidden]{display:none}.vgp-update{position:fixed;right:16px;bottom:calc(var(--vgp-mobile-bar) + 12px);max-width:330px;background:#134e42;color:white;padding:16px;border-radius:12px;z-index:410;font:14px/1.5 'Segoe UI',sans-serif}.vgp-update button{display:block;margin-top:10px;border:1px solid #cee5dc;border-radius:8px;padding:9px 12px;background:white;color:#134e42;cursor:pointer}
.vgp-app-card{box-sizing:border-box;margin:24px 0;padding:24px;border:1px solid #dce6e0;background:#fff;border-radius:16px;color:#203d35;font:16px/1.5 'Segoe UI',sans-serif;grid-column:1/-1}.vgp-app-card h2{font-size:22px;margin:0 0 8px}.vgp-app-card p{color:#61756e;line-height:1.6}.vgp-app-card button,.vgp-app-card a{display:inline-block;min-height:44px;padding:10px 15px;border:1px solid #b9d5c5;border-radius:9px;background:#e8f4ed;color:#134e42;font:600 15px/1.5 'Segoe UI',sans-serif;text-decoration:none;margin:4px 8px 4px 0;cursor:pointer}.vgp-app-card button[hidden],.vgp-app-card a[hidden]{display:none}
.vgp-offline{margin:0;min-height:100dvh;background:#f3f7f4;color:#203d35;display:grid;place-items:center;padding:24px;font:16px/1.6 'Segoe UI',sans-serif}.vgp-offline main{max-width:480px}.vgp-offline img{border-radius:20px}.vgp-offline h1{font-size:32px;line-height:1.2;letter-spacing:-.6px}.vgp-offline p{color:#61756e}.vgp-offline .vgp-kicker{font-size:12px;letter-spacing:1.5px;color:#18765c;font-weight:700}.vgp-offline button{border:0;border-radius:10px;background:#134e42;color:white;font:600 16px/1.5 'Segoe UI',sans-serif;padding:13px 18px;cursor:pointer}.vgp-offline a{display:inline-block;margin:12px;color:#134e42}
@media(max-width:760px){
 body.vgp-mobile{padding-bottom:var(--vgp-mobile-bar)!important;scroll-padding-bottom:var(--vgp-mobile-bar)}
 .vgp-mobile-nav{position:fixed;z-index:300;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;box-sizing:border-box;height:var(--vgp-mobile-bar);padding:5px max(4px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-left));background:#fff;border-top:1px solid #dce6e0;box-shadow:0 -4px 20px #134e4208}
 .vgp-mobile-nav a{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:52px;color:#61756e!important;font:500 11px/1.3 'Segoe UI',Arial,sans-serif!important;border-radius:10px;background:transparent!important;margin:0!important;padding:5px 0!important}
 .vgp-mobile-nav a[aria-current=page]{color:#134e42!important;background:#e8f4ed!important;font-weight:700!important}
 .vgp-mobile :is(input,select,textarea){font-size:16px!important}
 .vgp-mobile #chatInboxLink{display:none!important}
 .vgp-mobile.vgp-chat-page{padding-bottom:0!important;overflow:hidden}
 .vgp-chat-page>.top{box-sizing:border-box;height:calc(62px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
 .vgp-chat-page>.workspace{height:calc(var(--vgp-viewport,100dvh) - 62px - env(safe-area-inset-top) - var(--vgp-mobile-bar))}
 .vgp-chat-page.vgp-chat-open>.top{display:none!important}
 .vgp-chat-page.vgp-chat-open>.workspace{height:calc(var(--vgp-viewport,100dvh) - env(safe-area-inset-top) - var(--vgp-mobile-bar))!important}
 body.embed-mode.vgp-chat-page>.workspace{height:100dvh!important}
 .vgp-keyboard .vgp-mobile-nav{display:none!important}
 .vgp-chat-open>.vgp-network{bottom:130px}
 .vgp-chat-page .room-header{display:flex!important;align-items:center!important;gap:8px!important;min-height:54px!important;max-height:56px!important;padding:8px 12px!important;border-bottom:1px solid var(--line)!important;background:#fff!important;flex-shrink:0!important}
 .vgp-chat-page #roomAvatarBox{display:none!important}
 .vgp-chat-page #back{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:16px!important;font-weight:800!important;padding:5px 10px!important;min-height:34px!important;border-radius:8px!important;flex-shrink:0!important;white-space:nowrap!important;background:#f4fbf7!important;color:var(--pine)!important;border:1px solid var(--line)!important}
 .vgp-chat-page .room-header>div:not(#roomAvatarBox){flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
 .vgp-chat-page .room-header h2{font-size:15px!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.3!important;color:var(--ink)!important}
 .vgp-chat-page .room-header p{font-size:11.5px!important;color:var(--muted)!important;margin:1px 0 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.2!important}
 .vgp-chat-page .room-header button:not(#back){flex-shrink:0!important;font-size:12px!important;padding:6px 9px!important;min-height:34px!important;white-space:nowrap!important}
 .vgp-chat-page #soundBtn{display:none!important}
 .vgp-chat-page #composer{display:flex!important;align-items:center!important;gap:8px!important;padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid var(--line)!important;flex-shrink:0!important}
 .vgp-chat-page .image-button{flex-shrink:0!important;white-space:nowrap!important;font-size:13px!important;padding:8px 12px!important;background:#e8f4ed!important;color:#075b4b!important;border-radius:9px!important;font-weight:700!important;min-height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
 .vgp-chat-page #composer textarea{flex:1 1 auto!important;min-width:0!important;min-height:40px!important;height:40px!important;padding:8px 12px!important;font-size:15px!important;border-radius:10px!important;line-height:1.4!important;resize:none!important}
 .vgp-chat-page #send{flex-shrink:0!important;white-space:nowrap!important;min-width:60px!important;min-height:40px!important;padding:8px 16px!important;font-size:14px!important;font-weight:750!important;border-radius:10px!important}
 .vgp-chat-page #pinned{max-height:100px;overflow:auto;flex-shrink:0}
 .vgp-chat-page .composer-note{display:none!important}
 .vgp-chat-page dialog{max-height:calc(var(--vgp-viewport,100dvh) - 32px)}
 .vgp-chat-page .member{flex-wrap:wrap}.vgp-chat-page .member>div{max-width:100%}
 .vgp-app-card{padding:18px}
}
@media(prefers-reduced-motion:reduce){.vgp-mobile *{scroll-behavior:auto!important}}

/* PWA SMART INSTALL BANNER & MODAL (ANDROID & IOS) */
.vgp-install-banner{
  position:fixed;
  left:12px;
  right:12px;
  bottom:calc(var(--vgp-mobile-bar, 66px) + 8px);
  background:linear-gradient(135deg, #073d34 0%, #0d5f4a 100%);
  color:#ffffff;
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow:0 10px 25px rgba(7, 61, 52, 0.35);
  z-index:350;
  border:1px solid rgba(255,255,255,0.15);
  animation:vgpSlideUp .3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes vgpSlideUp{
  from{transform:translateY(100px);opacity:0}
  to{transform:translateY(0);opacity:1}
}
.vgp-banner-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.vgp-banner-icon{
  width:42px;
  height:42px;
  border-radius:10px;
  background:#fff;
  padding:3px;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  flex-shrink:0;
}
.vgp-banner-text{
  min-width:0;
}
.vgp-banner-title{
  font-size:13.5px;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vgp-banner-desc{
  font-size:11.5px;
  color:#a7f3d0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vgp-banner-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.vgp-banner-btn{
  background:#fde047;
  color:#713f12;
  border:0;
  border-radius:10px;
  padding:8px 14px;
  font-size:12.5px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:all .15s;
}
.vgp-banner-btn:active{
  transform:scale(0.96);
  background:#facc15;
}
.vgp-banner-close{
  background:transparent;
  border:0;
  color:rgba(255,255,255,0.6);
  font-size:18px;
  cursor:pointer;
  padding:4px 6px;
  line-height:1;
}

/* Drawer Install Card */
.vgp-drawer-install-card{
  margin:10px 14px 4px;
  padding:12px 14px;
  background:linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border:1px solid #a7f3d0;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.vgp-drawer-install-info{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.vgp-drawer-install-info .icon{
  font-size:22px;
}
.vgp-drawer-install-info b{
  display:block;
  font-size:12.5px;
  color:#065f46;
}
.vgp-drawer-install-info small{
  display:block;
  font-size:10.5px;
  color:#047857;
}
.vgp-drawer-install-btn{
  background:#0d5f4a;
  color:#fff;
  border:0;
  border-radius:8px;
  padding:7px 12px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

/* PWA Install Modal (iOS / Android guide) */
.vgp-pwa-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  z-index:1000;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.vgp-pwa-overlay.active{
  opacity:1;
  pointer-events:auto;
}
.vgp-pwa-sheet{
  background:#ffffff !important;
  width:min(480px, 100%);
  border-radius:24px 24px 0 0;
  padding:24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -10px 30px rgba(0,0,0,0.25);
  transform:translateY(100%);
  transition:transform .3s cubic-bezier(0.16,1,0.3,1);
  max-height:85vh;
  overflow-y:auto;
  position:relative;
  z-index:1001;
}
.vgp-pwa-overlay.active .vgp-pwa-sheet{
  transform:translateY(0);
}
.vgp-sheet-handle{
  width:40px;
  height:4px;
  background:#cbd5e1;
  border-radius:99px;
  margin:0 auto 16px;
}
.vgp-sheet-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.vgp-sheet-head img{
  width:52px;
  height:52px;
  border-radius:14px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
.vgp-sheet-head h3{
  margin:0;
  font-size:17px;
  color:#1e293b;
}
.vgp-sheet-head p{
  margin:2px 0 0;
  font-size:12.5px;
  color:#64748b;
}

.vgp-guide-steps{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:14px;
  margin:16px 0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.vgp-step-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:13px;
  color:#334155;
  line-height:1.5;
}
.vgp-step-badge{
  width:24px;
  height:24px;
  border-radius:50%;
  background:#0d5f4a;
  color:#fff;
  font-size:12px;
  font-weight:800;
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.vgp-share-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  background:#007aff;
  color:#fff;
  border-radius:6px;
  font-size:14px;
  vertical-align:middle;
  margin:0 4px;
}
.vgp-add-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  background:#e2e8f0;
  color:#1e293b;
  border-radius:6px;
  font-size:14px;
  vertical-align:middle;
  margin:0 4px;
  font-weight:900;
}
.vgp-sheet-btn{
  width:100%;
  background:#0d5f4a;
  color:#fff;
  border:0;
  border-radius:12px;
  padding:13px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  margin-top:10px;
}

