.free-btn-fixed {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.free-btn-content {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    animation: bounce-pulse 2s ease-in-out infinite;
    cursor: pointer;
    border: 3px solid #fff;
    position: relative;
    box-sizing: border-box;
    padding: 5px;
}

.free-btn-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 3px;
    animation: rotate-gift 3s ease-in-out infinite;
}

@keyframes rotate-gift {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.free-btn-text {
    font-size: 9px;
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
}

.free-btn-close {
    background: rgba(255, 68, 68, 0.9);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    margin-bottom: 5px;
    margin-right: 5px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    box-sizing: border-box;
    font-weight: bold;
}

@keyframes bounce-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 165, 0, 0.4);
    }
}

/* Modal Styles - Independent of page rem */
.layui-layer-demo {
    border-radius: 8px !important;
    overflow: hidden !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
}

.share-modal-container {
    background-color: #ffffff;
    padding-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: left;
    font-size: 14px !important;
}

.share-banner-wrap {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #f0f0f0;
}

.share-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-modal-container * {
    font-size: 14px !important;
    line-height: normal !important;
}

.share-banner-tag {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px !important;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 9;
    padding: 4px 10px;
    border-radius: 12px;
}

.share-banner-text {
    text-align: center;
    font-size: 20px !important;
    color: #d32f2f;
    font-weight: bold;
    z-index: 9;
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    text-shadow: 2px 2px 4px rgba(255,255,255,0.9);
    line-height: 1.4;
}

.share-stats {
    color: #333;
    margin: 0;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px !important;
    line-height: 1.6;
}

.share-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 4px;
}

.share-stat-label {
    color: #666;
}

.share-stat-value {
    font-weight: bold;
    font-family: monospace;
    font-size: 15px !important;
}

.val-red { color: #FF6B6B; }
.val-orange { color: #FF8E53; }
.val-green { color: #4CAF50; }
.val-gray { color: #999; }

.share-actions {
    padding: 0 20px 10px;
    text-align: center;
}

.share-actions-title {
    margin-bottom: 15px;
    font-size: 15px !important;
    font-weight: bold;
    color: #333;
    position: relative;
    text-align: center;
}

.share-btn-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.share-action-btn {
    margin: 5px 0;
    width: 48%;
    padding: 10px 0;
    border-radius: 6px;
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 13px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-action-btn:active {
    transform: scale(0.98);
}

.share-btn-full {
    width: 100%;
}

.share-copy-btn {
    padding: 14px;
    text-align: center;
    width: 100%;
    background: linear-gradient(to right, #FF6B6B, #FF8E53);
    font-size: 16px !important;
    color: white;
    font-weight: bold;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-sizing: border-box;
    letter-spacing: 1px;
    cursor: pointer;
}

/* Button Colors */
.btn-sys { background: #FF6B6B; }
.btn-wa { background: #25d366; }
.btn-fb { background: #1877f2; }
.btn-tw { background: #1da1f2; }
.btn-tg { background: #0088cc; }

#textArea {
    height: 1px;
    width: 1px;
    position: fixed;
    left: -999px;
    top: -999px;
}
