/* Extracted from templates/fragments/floating-buttons.html */
.fl-wrap {
      position: fixed;
      bottom: 2rem;
      right: 1.5rem;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: .65rem;
      user-select: none
    }

    .fl-btn {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      text-decoration: none;
      color: #fff;
      flex-shrink: 0;
      transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px)
    }

    .fl-top {
      background: linear-gradient(135deg, #1a56db, #06b6d4);
      box-shadow: 0 4px 15px rgba(6, 182, 212, .4);
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px)
    }

    .fl-top.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0)
    }

    .fl-top:hover {
      transform: translateY(-3px) scale(1.07);
      box-shadow: 0 6px 22px rgba(6, 182, 212, .65)
    }

    .fl-hub-items {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: .6rem;
      max-height: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
      transition: max-height .38s cubic-bezier(.4, 0, .2, 1), opacity .25s ease
    }

    .fl-hub-items.open {
      max-height: 320px; /* Increased for new item */
      opacity: 1;
      pointer-events: auto
    }

    .fl-item-wrap {
      display: flex;
      align-items: center;
      gap: .6rem;
      transform: translateX(12px);
      opacity: 0;
      transition: transform .3s ease, opacity .3s ease
    }

    .fl-hub-items.open .fl-item-wrap {
      transform: translateX(0);
      opacity: 1
    }

    .fl-hub-items.open .fl-item-wrap:nth-child(1) { transition-delay: .05s }
    .fl-hub-items.open .fl-item-wrap:nth-child(2) { transition-delay: .10s }
    .fl-hub-items.open .fl-item-wrap:nth-child(3) { transition-delay: .15s }
    .fl-hub-items.open .fl-item-wrap:nth-child(4) { transition-delay: .20s }

    .fl-label {
      font-size: .72rem;
      font-weight: 600;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: #e2e8f0;
      background: rgba(15, 23, 42, .78);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, .08);
      padding: 4px 10px;
      border-radius: 8px;
      white-space: nowrap;
      pointer-events: none
    }

    .fl-book {
      background: linear-gradient(135deg, #4f46e5, #7c3aed);
      box-shadow: 0 4px 14px rgba(124, 58, 237, .45)
    }

    .fl-book:hover {
      transform: translateY(-3px) scale(1.07);
      box-shadow: 0 6px 22px rgba(124, 58, 237, .65)
    }

    .fl-manage {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      box-shadow: 0 4px 14px rgba(99, 102, 241, .45)
    }

    .fl-manage:hover {
        transform: translateY(-3px) scale(1.07);
        box-shadow: 0 6px 22px rgba(99, 102, 241, .65)
    }

    .fl-call {
      background: linear-gradient(135deg, #1a56db, #2563eb);
      box-shadow: 0 4px 14px rgba(37, 99, 235, .45)
    }

    .fl-call:hover {
      transform: translateY(-3px) scale(1.07);
      box-shadow: 0 6px 22px rgba(37, 99, 235, .65)
    }

    .fl-wa {
      background: linear-gradient(135deg, #1ebe5d, #25d366);
      box-shadow: 0 4px 14px rgba(37, 211, 102, .45);
      font-size: 1.4rem
    }

    .fl-wa:hover {
      transform: translateY(-3px) scale(1.07);
      box-shadow: 0 6px 22px rgba(37, 211, 102, .65)
    }

    .fl-main {
      width: 54px;
      height: 54px;
      border-radius: 16px;
      background: linear-gradient(135deg, #1a56db, #06b6d4);
      box-shadow: 0 4px 18px rgba(6, 182, 212, .5), 0 0 0 1px rgba(6, 182, 212, .15) inset;
      animation: mainPulse 3s ease-in-out infinite;
      position: relative
    }

    .fl-main.active {
      animation: none;
      background: linear-gradient(135deg, #0f172a, #1e293b);
      box-shadow: 0 4px 18px rgba(0, 0, 0, .4)
    }

    .fl-main:hover {
      transform: translateY(-2px) scale(1.06)
    }

    .fl-icon-open, .fl-icon-close {
      position: absolute;
      transition: opacity .2s ease, transform .25s ease
    }

    .fl-icon-close {
      opacity: 0;
      transform: rotate(-90deg)
    }

    .fl-main.active .fl-icon-open {
      opacity: 0;
      transform: rotate(90deg)
    }

    .fl-main.active .fl-icon-close {
      opacity: 1;
      transform: rotate(0deg)
    }

    @keyframes mainPulse {
      0%, 100% {
        box-shadow: 0 4px 18px rgba(6, 182, 212, .5), 0 0 0 0 rgba(6, 182, 212, 0)
      }
      50% {
        box-shadow: 0 4px 22px rgba(6, 182, 212, .65), 0 0 0 9px rgba(6, 182, 212, .08)
      }
    }

    .fl-bubble {
      position: absolute;
      bottom: calc(100% + .75rem);
      right: 0;
      background: rgba(15, 23, 42, .93);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(6, 182, 212, .25);
      border-radius: 16px;
      padding: .85rem 1.1rem .85rem .9rem;
      display: flex;
      align-items: flex-start;
      gap: .6rem;
      width: 232px;
      box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px) scale(.96);
      transition: opacity .35s ease, transform .35s ease
    }

    .fl-bubble.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1)
    }

    .fl-bubble.hide {
      opacity: 0;
      pointer-events: none;
      transform: translateY(6px) scale(.95)
    }

    .fl-bubble-icon {
      font-size: 1.4rem;
      line-height: 1;
      flex-shrink: 0;
      margin-top: 2px
    }

    .fl-bubble strong {
      display: block;
      font-size: .83rem;
      font-weight: 700;
      color: #e2e8f0;
      margin-bottom: 3px;
      font-family: 'Rajdhani', sans-serif;
      letter-spacing: .03em
    }

    .fl-bubble p {
      font-size: .74rem;
      color: #94a3b8;
      margin: 0;
      line-height: 1.45
    }

    .fl-bubble-close {
      position: absolute;
      top: 7px;
      right: 9px;
      background: none;
      border: none;
      color: #475569;
      font-size: 1rem;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      transition: color .15s
    }

    .fl-bubble-close:hover {
      color: #94a3b8
    }

    @media (max-width: 640px) {
      .fl-wrap {
        bottom: 1.25rem;
        right: 1rem;
        gap: .55rem
      }

      .fl-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        border-radius: 12px
      }

      .fl-main {
        width: 50px;
        height: 50px;
        border-radius: 14px
      }

      .fl-wa {
        font-size: 1.3rem
      }

      .fl-bubble {
        width: 200px
      }

      .fl-label {
        font-size: .68rem
      }
    }
