/**
 * TML Spin Wheel Pro - Frontend Styles
 */

/* Import Syne font */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&display=swap');

/* CSS Custom Properties for Dynamic Design Control */
.tml-sw-container {
    /* Container Layout */
    --tml-sw-padding: 30px 20px;
    --tml-sw-margin: 0 auto;
    --tml-sw-min-height: 0px;
    --tml-sw-max-width: 100%;
    --tml-sw-border-radius: 20px;
    --tml-sw-border-width: 1px;
    --tml-sw-border-color: rgba(255, 255, 255, 0.2);
    --tml-sw-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --tml-sw-title-font-size: 28px;
    --tml-sw-title-margin: 0 0 30px 0;
    --tml-sw-button-font-size: 18px;
    
    /* Form Elements */
    --tml-sw-form-gap: 20px;
    --tml-sw-input-padding: 15px 20px;
    --tml-sw-input-border-radius: 12px;
    --tml-sw-button-padding: 18px 30px;
    --tml-sw-button-border-radius: 12px;
    
    /* Colors */
    --tml-sw-bg-color: rgba(255, 255, 255, 0.95);
    --tml-sw-text-color: #333333;
    --tml-sw-accent-color: #FFCC00;
    --tml-sw-slice-a-color: #ffffff;
    --tml-sw-slice-b-color: #FFCC00;
}

/* Main Container */
.tml-sw-container {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: var(--tml-sw-max-width);
    margin: var(--tml-sw-margin);
    padding: var(--tml-sw-padding);
    min-height: var(--tml-sw-min-height);
    border-radius: var(--tml-sw-border-radius);
    box-shadow: var(--tml-sw-box-shadow);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    background: var(--tml-sw-bg-color);
    border: var(--tml-sw-border-width) solid var(--tml-sw-border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tml-sw-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

.tml-sw-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
    z-index: 1;
}

.tml-sw-container > * {
    position: relative;
    z-index: 2;
}

/* Form Container */
.tml-sw-form-container {
    text-align: center;
}

.tml-sw-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: var(--tml-sw-title-font-size);
    margin: var(--tml-sw-title-margin);
    text-align: center;
    line-height: 1.2;
    color: var(--tml-sw-text-color);
}

.tml-sw-form {
    display: flex;
    flex-direction: column;
    gap: var(--tml-sw-form-gap);
    max-width: 400px;
    margin: 0 auto;
}

.tml-sw-input-group {
    position: relative;
}

.tml-sw-input-group input {
    width: 100%;
    padding: var(--tml-sw-input-padding);
    border: 2px solid #e0e0e0;
    border-radius: var(--tml-sw-input-border-radius);
    font-size: 16px;
    font-family: 'Syne', sans-serif;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tml-sw-input-group input:focus {
    outline: none;
    border-color: var(--tml-sw-accent-color);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.tml-sw-input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Spin Button */
.tml-sw-spin-btn {
    padding: var(--tml-sw-button-padding);
    border: none;
    border-radius: var(--tml-sw-button-border-radius);
    font-size: var(--tml-sw-button-font-size);
    font-weight: 700;
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tml-sw-accent-color) 0%, var(--tml-sw-accent-color) 100%);
    color: var(--tml-sw-text-color);
}

.tml-sw-spin-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tml-sw-spin-btn:hover::after {
    opacity: 1;
}

.tml-sw-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tml-sw-spin-btn:hover::before {
    left: 100%;
}

.tml-sw-spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.tml-sw-spin-btn:active {
    transform: translateY(0);
}

.tml-sw-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Wheel Container */
.tml-sw-wheel-container {
    text-align: center;
    padding: 20px 0;
}

.tml-sw-wheel-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto 20px;
}

.tml-sw-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Pointer */
.tml-sw-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 40px solid #FF6B6B;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
    animation: pointerPulse 2s infinite;
}

.tml-sw-pointer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -22px;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 37px solid #fff;
    z-index: -1;
}

.tml-sw-pointer::after {
    content: '';
    position: absolute;
    top: -38px;
    left: -20px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #FF6B6B;
}

/* Spinning Text */
.tml-sw-spinning-text {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Result Container */
.tml-sw-result-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.tml-sw-result-popup {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupIn 0.4s ease-out;
    position: relative;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tml-sw-result-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.tml-sw-result-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tml-sw-prize-display {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #FFCC00;
}

.tml-sw-prize-text {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tml-sw-coupon-display {
    text-align: left;
}

.tml-sw-coupon-display label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.tml-sw-coupon-code {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tml-sw-coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: #f8f9fa;
    letter-spacing: 2px;
}

.tml-sw-copy-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
    min-width: 80px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
}

.tml-sw-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tml-sw-close-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
}

.tml-sw-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Toast Notifications */
.tml-sw-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tml-sw-toast.show {
    transform: translateX(0);
}

.tml-sw-toast.error {
    background: #f44336;
}

/* Responsive Design Controls */
@media (max-width: 768px) {
    .tml-sw-container {
        --tml-sw-padding: 20px 15px;
        --tml-sw-margin: 10px;
        --tml-sw-border-radius: 15px;
        --tml-sw-title-font-size: 24px;
        --tml-sw-button-font-size: 16px;
        --tml-sw-form-gap: 15px;
        --tml-sw-input-padding: 12px 16px;
        --tml-sw-button-padding: 15px 25px;
    }
    
    .tml-sw-title {
        font-size: var(--tml-sw-title-font-size);
        margin-bottom: 25px;
    }
    
    .tml-sw-form {
        gap: var(--tml-sw-form-gap);
    }
    
    .tml-sw-input-group input {
        padding: var(--tml-sw-input-padding);
        font-size: 16px;
    }
    
    .tml-sw-spin-btn {
        padding: var(--tml-sw-button-padding);
        font-size: var(--tml-sw-button-font-size);
        min-height: 50px;
    }
    
    .tml-sw-result-popup {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .tml-sw-result-header h3 {
        font-size: 28px;
    }
    
    .tml-sw-prize-text {
        font-size: 20px;
    }
    
    .tml-sw-coupon-code {
        flex-direction: column;
        gap: 15px;
    }
    
    .tml-sw-coupon-input {
        width: 100%;
    }
    
    .tml-sw-copy-btn {
        width: 100%;
        min-width: auto;
    }
    
    .tml-sw-close-btn {
        width: 100%;
        min-width: auto;
    }
    
    .tml-sw-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .tml-sw-toast.show {
        transform: translateY(0);
    }
    
    .tml-sw-canvas {
        max-width: 300px;
    }
    
    .tml-sw-pointer {
        top: -15px;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 30px solid #FF6B6B;
    }
}

@media (max-width: 480px) {
    .tml-sw-container {
        --tml-sw-title-font-size: 22px;
        --tml-sw-button-font-size: 14px;
        --tml-sw-form-gap: 10px;
        --tml-sw-input-padding: 10px 12px;
        --tml-sw-button-padding: 12px 20px;
    }
    
    .tml-sw-title {
        font-size: var(--tml-sw-title-font-size);
    }
    
    .tml-sw-result-header h3 {
        font-size: 24px;
    }
    
    .tml-sw-prize-text {
        font-size: 18px;
    }
    
    .tml-sw-coupon-input {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Beautiful Professional Spinner Styles */
.tml-sw-style-modern .tml-sw-canvas {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tml-sw-style-modern .tml-sw-canvas::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    z-index: -1;
    animation: modernGlow 3s ease-in-out infinite;
}

.tml-sw-style-modern .tml-sw-canvas:hover {
    transform: scale(1.03) rotate(2deg);
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.25),
        inset 0 3px 6px rgba(255, 255, 255, 0.5),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.tml-sw-style-classic .tml-sw-canvas {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 60%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border: 4px solid #ffffff;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tml-sw-style-classic .tml-sw-canvas:hover {
    transform: scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.7),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.tml-sw-style-neon .tml-sw-canvas {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, #ff006e 0%, #8338ec 33%, #3a86ff 66%, #ff006e 100%);
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(255, 0, 110, 0.6),
        0 0 60px rgba(131, 56, 236, 0.4),
        0 0 90px rgba(58, 134, 255, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    animation: neonPulse 2s ease-in-out infinite;
}

.tml-sw-style-neon .tml-sw-canvas:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(255, 0, 110, 0.8),
        0 0 80px rgba(131, 56, 236, 0.6),
        0 0 120px rgba(58, 134, 255, 0.4),
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.4);
    animation: neonPulse 1s ease-in-out infinite;
}

.tml-sw-style-minimal .tml-sw-canvas {
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.02) 0%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.tml-sw-style-minimal .tml-sw-canvas:hover {
    transform: scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.12),
        0 6px 15px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.tml-sw-style-vintage .tml-sw-canvas {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f4e4bc 0%, #d4a574 30%, #8b4513 70%, #654321 100%);
    border: 5px solid #8b4513;
    box-shadow: 
        0 15px 35px rgba(139, 69, 19, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.tml-sw-style-vintage .tml-sw-canvas::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.1) 2px,
            rgba(139, 69, 19, 0.1) 4px
        );
    border-radius: 50%;
    pointer-events: none;
}

.tml-sw-style-vintage .tml-sw-canvas:hover {
    transform: scale(1.02);
    box-shadow: 
        0 18px 40px rgba(139, 69, 19, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.35),
        inset 0 4px 8px rgba(255, 255, 255, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(139, 69, 19, 0.3);
}

.tml-sw-style-premium .tml-sw-canvas {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tml-sw-style-premium .tml-sw-canvas::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 50%;
    z-index: -1;
    animation: premiumShimmer 3s ease-in-out infinite;
}

.tml-sw-style-premium .tml-sw-canvas:hover {
    transform: scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 12px 25px rgba(0, 0, 0, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.tml-sw-style-luxury .tml-sw-canvas {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 69, 19, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #FFD700 0%, #FFA500 30%, #FF8C00 70%, #B8860B 100%);
    border: 4px solid #FFD700;
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2),
        inset 0 0 0 2px rgba(255, 215, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tml-sw-style-luxury .tml-sw-canvas::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    border-radius: 50%;
    z-index: -1;
    animation: luxuryGlow 2s ease-in-out infinite;
}

.tml-sw-style-luxury .tml-sw-canvas:hover {
    transform: scale(1.04);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.25),
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px rgba(255, 215, 0, 0.6);
}

/* Enhanced Pointer Designs */
.tml-sw-style-modern .tml-sw-pointer {
    border-top-color: #ff6b6b;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.4));
}

.tml-sw-style-neon .tml-sw-pointer {
    border-top-color: #ff006e;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.8));
    animation: neonPulse 2s infinite;
}

.tml-sw-style-vintage .tml-sw-pointer {
    border-top-color: #8b4513;
    filter: drop-shadow(0 4px 8px rgba(139, 69, 19, 0.5));
}

.tml-sw-style-premium .tml-sw-pointer {
    border-top-color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.tml-sw-style-luxury .tml-sw-pointer {
    border-top-color: #FFD700;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
    animation: luxuryPulse 2s ease-in-out infinite;
}

/* Enhanced Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(3600deg);
    }
}

@keyframes pointerPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 110, 1));
    }
}

@keyframes modernGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes spinnerGlow {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(102, 126, 234, 0.3),
            0 10px 20px rgba(0, 0, 0, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 25px 50px rgba(102, 126, 234, 0.4),
            0 15px 30px rgba(0, 0, 0, 0.25),
            inset 0 3px 6px rgba(255, 255, 255, 0.5);
    }
}

@keyframes premiumShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes luxuryGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes luxuryPulse {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.8));
    }
}

.tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: scale(1.02);
}

.tml-sw-style-modern .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99), spinnerGlow 5s ease-in-out;
    transform: scale(1.05);
}

.tml-sw-style-classic .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: scale(1.03);
    box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.7),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.tml-sw-style-neon .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99), neonPulse 1s ease-in-out infinite;
    transform: scale(1.08);
    box-shadow: 
        0 0 50px rgba(255, 0, 110, 1),
        0 0 100px rgba(131, 56, 236, 0.8),
        0 0 150px rgba(58, 134, 255, 0.6),
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.5);
}

.tml-sw-style-minimal .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.tml-sw-style-vintage .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: scale(1.03);
    box-shadow: 
        0 20px 45px rgba(139, 69, 19, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 4px 8px rgba(255, 255, 255, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(139, 69, 19, 0.3);
}

.tml-sw-style-premium .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99), premiumShimmer 2s ease-in-out infinite;
    transform: scale(1.04);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 12px 25px rgba(0, 0, 0, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.tml-sw-style-luxury .tml-sw-canvas.spinning {
    animation: spin 5s cubic-bezier(0.17, 0.67, 0.12, 0.99), luxuryGlow 1.5s ease-in-out infinite;
    transform: scale(1.06);
    box-shadow: 
        0 30px 60px rgba(255, 215, 0, 0.5),
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px rgba(255, 215, 0, 0.6);
}

/* Loading states */
.tml-sw-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.tml-sw-input-group input:focus,
.tml-sw-spin-btn:focus,
.tml-sw-copy-btn:focus,
.tml-sw-close-btn:focus {
    outline: 2px solid #FFCC00;
    outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] .tml-sw-container {
    text-align: right;
}

[dir="rtl"] .tml-sw-title {
    text-align: center;
}

[dir="rtl"] .tml-sw-form {
    text-align: right;
}

[dir="rtl"] .tml-sw-input-group input {
    text-align: right;
}

[dir="rtl"] .tml-sw-input-group input::placeholder {
    text-align: right;
}

[dir="rtl"] .tml-sw-coupon-code {
    flex-direction: row-reverse;
}

[dir="rtl"] .tml-sw-activity-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .tml-sw-activity-time {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .tml-sw-toast {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

[dir="rtl"] .tml-sw-toast.show {
    transform: translateX(0);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tml-sw-container {
        border: 2px solid #000;
    }
    
    .tml-sw-input-group input {
        border-color: #000;
    }
    
    .tml-sw-spin-btn {
        border: 2px solid #000;
    }
}
