/* Floating by Gilawebsite.com — v1.0.0 */
#fgw-wrap * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Panel */
#fgw-panel {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 22px;
  padding: 10px;
  margin-bottom: 14px;
  min-width: 245px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 4px 6px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.10), 0 24px 48px rgba(0,0,0,0.05);
  transform-origin: bottom right;
  transform: scale(0.72) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
#fgw-panel.fgw-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Panel header */
.fgw-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 12px;
  border-bottom: 1px solid #F3F3F3;
  margin-bottom: 6px;
}
.fgw-dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: fgwPulse 2s ease infinite;
}
@keyframes fgwPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.45; transform:scale(.82); }
}
.fgw-head-title {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: #BDBDBD;
}

/* Items */
.fgw-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: 13px;
  cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .18s ease;
  margin-bottom: 2px;
}
.fgw-item:last-of-type { margin-bottom: 0; }
.fgw-item::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 13px; opacity: 0;
  transition: opacity .18s ease;
}
.fgw-item:hover { transform: translateX(-3px); }
.fgw-item:hover::after { opacity: 1; }
.fgw-item:active { transform: translateX(-3px) scale(.98); }

.fgw-faq::after     { background: #EEEFFE; }
.fgw-hubungi::after { background: #EDFAF4; }
.fgw-aduan::after   { background: #FFF8EE; }
.fgw-peta::after    { background: #F3F0FF; }

.fgw-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.fgw-item:hover .fgw-ico { transform: scale(1.12) rotate(-4deg); }

.fgw-lbl { position: relative; z-index: 1; flex: 1; }
.fgw-lbl strong { display: block; font-size: 13.5px; font-weight: 600; color: #1a1a1a; line-height: 1.25; margin-bottom: 2px; }
.fgw-lbl span   { font-size: 11.5px; color: #AFAFAF; }

.fgw-chev { font-size: 14px; color: #D5D5D5; position: relative; z-index: 1; transition: color .18s, transform .18s; }
.fgw-item:hover .fgw-chev { color: #AAAAAA; transform: translateX(2px); }

/* Divider */
.fgw-sep { height: 1px; background: #F3F3F3; margin: 6px 12px; }

/* Footer */
.fgw-footer { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 12px 4px; border-top: 1px solid #F3F3F3; margin-top: 6px; }
.fgw-footer-txt   { font-size: 10px; color: #CCCCCC; }
.fgw-footer-brand { font-size: 10px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.fgw-footer-brand:hover { text-decoration: underline; }

/* Stagger */
#fgw-panel.fgw-open .fgw-item:nth-of-type(1) { animation: fgwUp .3s .05s both; }
#fgw-panel.fgw-open .fgw-item:nth-of-type(2) { animation: fgwUp .3s .10s both; }
#fgw-panel.fgw-open .fgw-item:nth-of-type(3) { animation: fgwUp .3s .15s both; }
#fgw-panel.fgw-open .fgw-item:nth-of-type(4) { animation: fgwUp .3s .20s both; }
@keyframes fgwUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* FAB */
#fgw-fab {
  width: 54px; height: 54px; border-radius: 16px;
  border: none; cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: filter .2s, border-radius .35s cubic-bezier(.34,1.56,.64,1), transform .2s;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.16);
  outline: none;
}
#fgw-fab:hover  { filter: brightness(1.12); transform: scale(1.06); }
#fgw-fab.fgw-open { border-radius: 50%; }

.fgw-fab-ring {
  position: absolute; inset: -8px; border-radius: 24px;
  border: 2px solid transparent; pointer-events: none;
  transition: border-color .3s, border-radius .35s cubic-bezier(.34,1.56,.64,1);
}
#fgw-fab.fgw-open .fgw-fab-ring {
  border-radius: 50%;
  animation: fgwRing 2s ease infinite;
}
@keyframes fgwRing {
  0%   { transform:scale(1); opacity:1; }
  70%  { transform:scale(1.22); opacity:0; }
  100% { transform:scale(1.22); opacity:0; }
}

.fgw-ico-open, .fgw-ico-close {
  position: absolute; font-size: 22px; color: #fff;
  transition: opacity .2s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  line-height: 1;
}
.fgw-ico-open  { opacity:1; transform:rotate(0deg) scale(1); }
.fgw-ico-close { opacity:0; transform:rotate(-90deg) scale(.7); }
#fgw-fab.fgw-open .fgw-ico-open  { opacity:0; transform:rotate(90deg) scale(.7); }
#fgw-fab.fgw-open .fgw-ico-close { opacity:1; transform:rotate(0deg) scale(1); }

/* Tooltip */
#fgw-tip {
  position: absolute; right: 64px; bottom: 14px;
  background: #1a1a1a; color: #fff;
  font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 100px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
#fgw-tip::after {
  content:''; position:absolute; right:-5px; top:50%;
  transform:translateY(-50%);
  border:5px solid transparent; border-right:none; border-left-color:#1a1a1a;
}
#fgw-wrap:not(.fgw-active):hover #fgw-tip { opacity:1; transform:translateX(0); }
