/* =========================================
   Quick Menu - Modern Floating Dock
========================================= */
.quick-floating {
    position: fixed;
    right: 22px;
    top: 50%;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 150px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 54px rgba(5, 33, 58, 0.18);
    transform: translateY(-50%);
    backdrop-filter: blur(18px);
}

.quick-floating-head {
    position: relative;
    overflow: hidden;
    padding: 15px 14px 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, #063a78 0%, #0067b8 56%, #159bd7 100%);
    color: #fff;
}

.quick-floating-head::after {
    position: absolute;
    right: -22px;
    top: -22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    content: "";
}

.quick-floating-head span {
    position: relative;
    z-index: 1;
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.quick-floating-head strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 900;
}

.quick-floating-item,
.quick-top {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 9px;
    align-items: center;
    min-height: 48px;
    padding: 7px 10px 7px 8px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    color: #102235;
    text-align: left;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(6, 58, 120, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.quick-floating-item:hover,
.quick-top:hover {
    transform: translateX(-4px);
    box-shadow: 0 14px 28px rgba(5, 33, 58, 0.15);
}

.quick-floating-item i,
.quick-top i,
.quick-floating-item b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    color: #fff;
    font-size: 19px;
    line-height: 1;
}

.quick-floating-item.phone i {
    background: #0067b8;
}

.quick-floating-item.kakao i {
    background: #fee500;
    color: #191919;
}

.quick-floating-item.blog b {
    background: #03c75a;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.quick-floating-item.online i {
    background: #063a78;
}

.quick-top i {
    background: #edf5fb;
    color: #0067b8;
}

.quick-floating-item span,
.quick-top span {
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-floating-item.phone:hover,
.quick-floating-item.online:hover,
.quick-top:hover {
    background: #f3f9fe;
    color: #0067b8;
}

.quick-floating-item.kakao:hover {
    background: #fff8bf;
    color: #191919;
}

.quick-floating-item.blog:hover {
    background: #e9fff2;
    color: #049647;
}

.quick-top {
    cursor: pointer;
}

/* =========================================
   Mobile Quick Menu - Bottom App Bar
========================================= */
.mobile-quick-menu {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 1500;
    display: none;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(5, 33, 58, 0.22);
    backdrop-filter: blur(18px);
}

.quick-menu-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    border-radius: 18px;
    background: #f3f7fb;
    color: #102235;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-menu-item:active {
    transform: scale(0.96);
}

.quick-menu-item.call {
    background: #063a78;
    color: #fff;
}

.quick-menu-item.sms {
    background: #0067b8;
    color: #fff;
}

.quick-menu-item.kakao {
    background: #fee500;
    color: #191919;
}

.quick-menu-item.blog {
    background: #03c75a;
    color: #fff;
}

.quick-menu-item.online {
    background: #0067b8;
    color: #fff;
}

.quick-menu-item i,
.quick-menu-item b {
    display: block;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
}

.quick-menu-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: -0.2px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .quick-floating {
        right: 14px;
        width: 138px;
        padding: 8px;
        border-radius: 24px;
    }

    .quick-floating-head {
        border-radius: 19px;
    }
}

/* =========================================
   Mobile Quick Side (Floating Circular)
========================================= */
.mobile-quick-side {
    position: fixed;
    right: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 78px);
    z-index: 1500;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.mq-side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(5, 33, 58, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mq-side-btn:active {
    transform: scale(0.92);
}

.mq-side-btn i,
.mq-side-btn b {
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.mq-side-btn.kakao { background: #fee500; color: #191919; }
.mq-side-btn.blog { background: #03c75a; font-size: 20px; }
.mq-side-btn.online { background: #063a78; }

@media (max-width: 768px) {
    .quick-floating {
        display: none;
    }

    .mobile-quick-menu {
        display: block;
    }
    
    .mobile-quick-side {
        display: flex;
    }
}
