/**
 * Patreon Wheel Generator - Styles
 * Matching the Patreon Suggestions theme
 */

/* Container */
.patreon-wheel-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

.patreon-wheel-title {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    margin-bottom: 40px;
    position: relative;
}

.patreon-wheel-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

/* Admin Controls */
.patreon-wheel-admin-controls {
    background: linear-gradient(145deg, #1e1e3f 0%, #2a2a4a 100%);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.patreon-wheel-admin-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    border-radius: 24px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    z-index: -1;
}

.patreon-wheel-admin-controls h3 {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wheel-admin-buttons-row {
    margin-bottom: 20px;
}

.wheel-import-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wheel-import-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #2a2a4a 0%, #1e1e3f 100%);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

.wheel-import-amount label {
    color: #a0a9c0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wheel-import-amount input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(145deg, #1e1e3f 0%, #2a2a4a 100%);
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wheel-import-amount input:focus {
    border: 2px solid #4ecdc4;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(78, 205, 196, 0.3);
    transform: scale(1.05);
}

.wheel-import-amount input::-webkit-inner-spin-button,
.wheel-import-amount input::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.wheel-import-amount span {
    color: #a0a9c0;
    font-size: 0.9rem;
    font-weight: 600;
}

.wheel-admin-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wheel-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wheel-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;
}

.wheel-btn:hover::before {
    left: 100%;
}

.wheel-btn:hover {
    transform: translateY(-2px);
}

.wheel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.wheel-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #2c3e50 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wheel-btn-primary:hover {
    box-shadow: 
        0 12px 24px rgba(102, 126, 234, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #1a202c 100%);
}

.wheel-btn-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px rgba(139, 92, 246, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wheel-btn-secondary:hover {
    box-shadow: 
        0 12px 24px rgba(139, 92, 246, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
}

.wheel-btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px rgba(220, 38, 38, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wheel-btn-danger:hover {
    box-shadow: 
        0 12px 24px rgba(220, 38, 38, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
}

.wheel-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px rgba(16, 185, 129, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wheel-btn-success:hover {
    box-shadow: 
        0 12px 24px rgba(16, 185, 129, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
}

.wheel-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px rgba(245, 158, 11, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wheel-btn-warning:hover {
    box-shadow: 
        0 12px 24px rgba(245, 158, 11, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%);
}

.wheel-btn-toggle {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 16px rgba(245, 158, 11, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wheel-icon {
    font-size: 1.2em;
}

.wheel-item-count {
    color: #a0a9c0;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 12px;
}

.wheel-item-count strong {
    color: #4ecdc4;
    font-size: 1.2em;
}

/* Main Wheel Area */
.patreon-wheel-main {
    background: linear-gradient(145deg, #1e1e3f 0%, #2a2a4a 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.patreon-wheel-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    border-radius: 24px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    z-index: -1;
}

/* Closed Overlay */
.wheel-closed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 63, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 24px;
}

.wheel-closed-message {
    text-align: center;
    color: #e2e8f0;
}

.wheel-closed-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.wheel-closed-message h3 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wheel-closed-message p {
    font-size: 1.1rem;
    color: #a0a9c0;
}

/* Canvas Container */
.wheel-canvas-container {
    position: relative;
    width: 900px;
    max-width: 100%;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheel-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Wheel Pointer */
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 60px solid #ff6b6b;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -60px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(255, 107, 107, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

/* Center Button */
.wheel-center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 6px solid #1e1e3f;
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 36px rgba(102, 126, 234, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.2);
    z-index: 20;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    word-wrap: break-word;
    overflow: hidden;
}

.wheel-center-button:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 
        0 18px 48px rgba(102, 126, 234, 0.5),
        0 9px 24px rgba(0, 0, 0, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

.wheel-center-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Smaller font when showing "SPINNING..." */
.wheel-center-button.spinning {
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

/* Winner Announcement */
.wheel-winner-announcement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: linear-gradient(145deg, #1e1e3f 0%, #2a2a4a 100%);
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid;
    border-image: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1) 1;
    animation: winnerPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.winner-content h2 {
    font-size: 3rem;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-weight: 800;
    animation: winnerTextGlow 1s ease-in-out infinite alternate;
}

.winner-name {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes winnerPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes winnerTextGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.8));
    }
}

/* Items List */
.wheel-items-list {
    margin-top: 40px;
}

.wheel-items-list h3 {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#wheel-items-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.wheel-item {
    background: linear-gradient(145deg, #2a2a4a 0%, #1e1e3f 100%);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wheel-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wheel-item-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.wheel-item-name {
    flex: 1;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.wheel-item-remove {
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.wheel-item-remove:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.2);
}

.wheel-empty-message {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
}

/* Spin History Section */
.wheel-history-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.wheel-history-section h3 {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wheel-history-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.wheel-history-subtitle {
    color: #a0a9c0;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    font-style: italic;
}

.wheel-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wheel-history-item {
    background: linear-gradient(145deg, #2a2a4a 0%, #1e1e3f 100%);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.wheel-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.wheel-history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wheel-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-history-winner {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 1.05rem;
}

.wheel-history-time {
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: 600;
}

.wheel-history-items {
    color: #a0a9c0;
    font-size: 0.85rem;
}

.wheel-history-expiry {
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 4px;
    width: fit-content;
}

.wheel-expiry-safe {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.wheel-expiry-moderate {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.wheel-expiry-urgent {
    color: #f97316;
    background: rgba(249, 115, 22, 0.2);
    animation: pulse-urgent 2s ease-in-out infinite;
}

.wheel-expiry-critical {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.2);
    animation: pulse-critical 1.5s ease-in-out infinite;
    font-weight: 700;
}

@keyframes pulse-urgent {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes pulse-critical {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
    }
}

.wheel-btn-replay {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.wheel-btn-replay:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.wheel-btn-delete {
    padding: 10px 12px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.wheel-btn-delete:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.wheel-btn-delete .wheel-icon {
    font-size: 1.1em;
}

/* Modal */
.wheel-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wheel-modal-content {
    background: linear-gradient(145deg, #1e1e3f 0%, #2a2a4a 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.wheel-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 24px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    z-index: -1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wheel-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #a0a9c0;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.wheel-modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

.wheel-modal-content h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
}

#wheel-custom-item-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 16px;
    background: linear-gradient(145deg, #2a2a4a 0%, #1e1e3f 100%);
    color: #e2e8f0;
    outline: none;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

#wheel-custom-item-input::placeholder {
    color: #6b7280;
}

#wheel-custom-item-input:focus {
    border: 2px solid transparent;
    background: linear-gradient(145deg, #2a2a4a 0%, #1e1e3f 100%) padding-box,
                linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1) border-box;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 107, 107, 0.3),
        0 0 40px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.wheel-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Replay Countdown Overlay */
.wheel-replay-countdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.wheel-replay-countdown-content {
    text-align: center;
    animation: countdown-pulse 1s ease-in-out infinite;
}

.wheel-replay-countdown-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8ae2ec;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(138, 226, 236, 0.5);
    font-family: 'Space Grotesk', sans-serif;
}

.wheel-replay-countdown-number {
    font-size: 6rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(138, 226, 236, 0.8),
        0 0 40px rgba(138, 226, 236, 0.6),
        0 0 60px rgba(138, 226, 236, 0.4);
    font-family: 'Space Grotesk', sans-serif;
    animation: countdown-number 1s ease-in-out;
}

@keyframes countdown-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes countdown-number {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notifications */
.wheel-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wheel-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.wheel-notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.wheel-notification-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.wheel-notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .patreon-wheel-container {
        padding: 0 16px;
    }
    
    .patreon-wheel-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .patreon-wheel-admin-controls {
        padding: 24px;
    }
    
    .wheel-import-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .wheel-import-amount {
        justify-content: center;
    }
    
    .wheel-admin-buttons {
        flex-direction: column;
    }
    
    .wheel-btn {
        width: 100%;
        justify-content: center;
    }
    
    .patreon-wheel-main {
        padding: 24px;
    }
    
    .wheel-canvas-container {
        width: 100%;
    }
    
    .wheel-center-button {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }
    
    .wheel-center-button.spinning {
        font-size: 1rem;
    }
    
    .wheel-winner-announcement {
        padding: 40px;
        width: 90%;
    }
    
    .winner-content h2 {
        font-size: 2rem;
    }
    
    .winner-name {
        font-size: 1.5rem;
    }
    
    #wheel-items-ul {
        grid-template-columns: 1fr;
    }
    
    .wheel-notification {
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    .wheel-replay-countdown {
        padding-top: 60px;
    }
    
    .wheel-replay-countdown-text {
        font-size: 1.5rem;
    }
    
    .wheel-replay-countdown-number {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .patreon-wheel-title {
        font-size: 1.5rem;
    }
    
    .patreon-wheel-admin-controls h3 {
        font-size: 1.1rem;
    }
    
    .wheel-btn {
        font-size: 13px;
        padding: 12px 20px;
    }
    
    .wheel-modal-content {
        padding: 30px 20px;
    }
    
    .wheel-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wheel-history-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .wheel-btn-replay,
    .wheel-btn-delete {
        width: 100%;
        justify-content: center;
    }
    
    .wheel-replay-countdown {
        padding-top: 40px;
    }
    
    .wheel-replay-countdown-text {
        font-size: 1.2rem;
    }
    
    .wheel-replay-countdown-number {
        font-size: 4rem;
    }
}

/* ========================================
   WHEEL WIDGET ON SUGGESTION FORM
   ======================================== */

.patreon-wheel-widget {
    background: linear-gradient(135deg, #2c2f44 0%, #1e2135 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.patreon-wheel-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(138, 226, 236, 0.2);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.patreon-wheel-widget-header:hover {
    opacity: 0.8;
}

.wheel-widget-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wheel-widget-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8ae2ec;
    font-family: 'Space Grotesk', sans-serif;
}

.wheel-widget-toggle {
    font-size: 1.2rem;
    color: #8ae2ec;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.patreon-wheel-widget.collapsed .wheel-widget-toggle {
    transform: rotate(-90deg);
}

.patreon-wheel-widget-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.patreon-wheel-widget.collapsed .patreon-wheel-widget-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.patreon-wheel-widget.collapsed .patreon-wheel-widget-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wheel-widget-winner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(138, 226, 236, 0.1);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #8ae2ec;
}

.wheel-widget-label {
    font-size: 0.95rem;
    color: #8ae2ec;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-widget-winner-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.wheel-widget-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 8px;
}

.wheel-widget-date,
.wheel-widget-expiry {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wheel-widget-countdown {
    color: #ffd700;
    font-weight: 600;
}

.wheel-widget-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-widget-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wheel-widget-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
    text-decoration: none;
}

.wheel-widget-btn-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .patreon-wheel-widget {
        padding: 20px;
        margin: 20px 0;
    }
    
    .wheel-widget-title {
        font-size: 1.3rem;
    }
    
    .wheel-widget-winner-name {
        font-size: 1.1rem;
    }
    
    .wheel-widget-replay-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }
}

