/* Popup Overlay */
.kz-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kzFadeIn 0.3s ease;
}
@keyframes kzFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.kz-popup {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.kz-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.kz-popup-close:hover { color: #fff; }
.kz-popup-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}
.kz-popup-title {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: #FFD700;
}
.kz-popup-text {
    font-size: 0.95rem;
    margin: 0 0 20px;
    opacity: 0.9;
    line-height: 1.5;
}
.kz-popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #E94560, #FF6B35);
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kz-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.4);
    color: #fff;
}

/* Newsletter in popup */
.kz-popup-newsletter {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.kz-popup-nl-label {
    font-size: 0.85rem;
    margin: 0 0 10px;
    opacity: 0.8;
}
.kz-nl-form {
    display: flex;
    gap: 8px;
}
.kz-nl-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}
.kz-nl-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.kz-nl-form input[type="email"]:focus { border-color: #FFD700; }
.kz-nl-form button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #FFD700;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.kz-nl-form button:hover { background: #FFC107; }
.kz-nl-msg {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #4CAF50;
}

/* Telegram label + button wrap */
.kz-telegram-wrap {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kz-telegram-label {
    display: block;
    max-width: 200px;
    background: linear-gradient(135deg, #0088cc, #00aaee);
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,136,204,0.3);
    animation: kzFadeIn 0.3s ease;
}
.kz-telegram-label:hover {
    box-shadow: 0 6px 25px rgba(0,136,204,0.5);
    transform: translateY(-1px);
}
.kz-telegram-label span {
    color: #fff !important;
}

/* Floating Telegram Button */
.kz-telegram-float {
    position: relative;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0088cc, #00aaee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,136,204,0.4);
    z-index: 9998;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.kz-telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,136,204,0.6);
}

/* Spin Wheel Trigger */
.kz-spin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E94560, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
    z-index: 9998;
    animation: kzPulse 2s infinite;
    transition: transform 0.2s;
}
.kz-spin-trigger:hover {
    transform: scale(1.1);
    animation: none;
}
.kz-spin-icon { font-size: 28px; }
@keyframes kzPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(233,69,96,0.4); }
    50% { box-shadow: 0 4px 25px rgba(233,69,96,0.7); }
}

/* Spin Modal */
.kz-spin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kzFadeIn 0.3s ease;
}
.kz-spin-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: #fff;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.kz-spin-title {
    font-size: 1.4rem;
    margin: 0 0 20px;
    color: #FFD700;
}
.kz-wheel-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.kz-wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #FFD700;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
#kz-wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(233,69,96,0.3);
}
.kz-spin-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kz-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}
.kz-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.kz-spin-result {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,215,0,0.15);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #FFD700;
}
.kz-spin-email {
    margin-top: 16px;
}
.kz-spin-email p {
    font-size: 0.85rem;
    margin: 0 0 8px;
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 480px) {
    .kz-popup { padding: 24px 20px; }
    .kz-nl-form { flex-direction: column; }
    .kz-spin-content { padding: 24px 16px; }
    #kz-wheel-canvas { width: 260px; height: 260px; }
    .kz-telegram-label { display: none !important; }
    .kz-telegram-wrap { right: 12px !important; bottom: 62px !important; }
    .kz-telegram-float { width: 36px !important; height: 36px !important; }
    .kz-telegram-float svg { width: 18px !important; height: 18px !important; }
    .kz-spin-trigger { bottom: 14px !important; right: 12px !important; width: 36px !important; height: 36px !important; }
    .kz-spin-icon { font-size: 18px !important; }
}
