/* ========================================
   GIVEAWAY PICKER PAGE STYLES
   ========================================
   Admin tool for randomly selecting giveaway winners.
   Features: CSV upload, slot machine animation, confetti celebration.
   
   How to tweak:
   - Animation speeds: Adjust transition/animation durations
   - Colors: Uses CSS variables from tokens.css
   - Layout: Modify grid columns and gaps
*/

/* ----------------------------------------
   PAGE LAYOUT
   ---------------------------------------- */
body.picker-page {
    min-height: 100vh;
    background: #0a0a0b;
}

body.picker-page main {
    padding: 40px 20px;
}

.picker-main {
    max-width: 1400px !important;
}

/* Header */
.picker-header {
    text-align: center;
    margin-bottom: 40px;
}

.picker-header .giveaway-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 8px;
}

.picker-subtitle {
    color: var(--tjm-text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* ----------------------------------------
   UPLOAD SECTION
   ---------------------------------------- */
.picker-upload-section {
    margin-bottom: 48px;
}

.upload-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tjm-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.upload-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.upload-icon i {
    font-size: 2.5rem;
    color: #f97316;
}

.upload-card h2 {
    color: var(--tjm-text);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.upload-card p {
    color: var(--tjm-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.upload-card code {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.upload-rules {
    font-size: 0.85rem;
    color: var(--tjm-text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #f97316;
    margin-bottom: 20px;
}

.status-note {
    font-size: 0.85rem;
    color: var(--tjm-text-muted);
    margin-left: 8px;
}

/* ----------------------------------------
   PARTICIPANTS LIST (Verification)
   ---------------------------------------- */
.participants-list-section {
    margin-bottom: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--tjm-border);
    border-radius: 16px;
    overflow: hidden;
}

.participants-list-header {
    padding: 24px;
    border-bottom: 1px solid var(--tjm-border);
}

.participants-list-header h2 {
    color: var(--tjm-text);
    font-size: 1.25rem;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participants-list-header h2 i {
    color: #f97316;
}

.participants-list-subtitle {
    color: var(--tjm-text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.participants-list-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.participant-search {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tjm-border);
    border-radius: 8px;
    color: var(--tjm-text);
    font-size: 0.95rem;
}

.participant-search::placeholder {
    color: var(--tjm-text-muted);
}

.participant-search:focus {
    outline: none;
    border-color: #f97316;
}

.toggle-list-btn {
    padding: 10px 20px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: #fb923c;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toggle-list-btn:hover {
    background: rgba(249, 115, 22, 0.25);
}

.toggle-list-btn.expanded i {
    transform: rotate(180deg);
}

.participants-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
}

.participants-table th,
.participants-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tjm-border);
}

.participants-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--tjm-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.participants-table td {
    color: var(--tjm-text);
    font-size: 0.9rem;
}

.participants-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.participants-table .row-number {
    color: var(--tjm-text-muted);
    font-size: 0.8rem;
}

.participants-table .participant-name {
    font-weight: 600;
}

.participants-table .participant-email {
    color: var(--tjm-text-muted);
    font-size: 0.85rem;
}

.participants-table .participant-location {
    color: var(--tjm-text-muted);
    font-size: 0.85rem;
}

.participants-table .entry-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
}

.participants-table .entry-count.max-entries {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.participants-table .days-posted {
    font-size: 0.8rem;
    color: var(--tjm-text-muted);
    max-width: 200px;
}

.participants-table .days-posted span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 2px;
    font-size: 0.75rem;
}

.no-results-row td {
    text-align: center;
    color: var(--tjm-text-muted);
    padding: 24px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--tjm-text);
}

.upload-label i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.upload-zone:hover .upload-label i {
    color: #f97316;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--tjm-text-muted);
}

/* Upload Status */
.upload-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.upload-status .status-icon i {
    color: var(--tjm-text-muted);
}

.upload-status.loaded .status-icon i {
    color: #22c55e;
}

.upload-status .status-text {
    color: var(--tjm-text-muted);
    font-size: 0.95rem;
}

.upload-status.loaded .status-text {
    color: var(--tjm-text);
}

/* ----------------------------------------
   SLOT MACHINE
   ---------------------------------------- */
.slot-machine-section {
    margin-bottom: 48px;
}

.slot-display {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.slot-window {
    background: linear-gradient(145deg, #1a1a1f, #0d0d10);
    border: 3px solid #333;
    border-radius: 20px;
    padding: 8px;
    overflow: hidden;
    box-shadow: 
        inset 0 4px 20px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.slot-reel {
    background: linear-gradient(180deg, #0a0a0b 0%, #151518 50%, #0a0a0b 100%);
    border-radius: 14px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slot-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--tjm-text);
    text-align: center;
    padding: 0 20px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* ----------------------------------------
   DRAW MODAL - Full Screen Animation Popup
   ---------------------------------------- */
.draw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.draw-modal[hidden] {
    display: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.draw-modal-content {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    text-align: center;
}

.draw-modal-header {
    margin-bottom: 40px;
}

.draw-modal-prize {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.draw-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--tjm-text);
    margin: 0;
}

.draw-modal-display {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--tjm-border);
    border-radius: 20px;
    overflow: hidden;
}

.draw-name-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flashing name styles */
.draw-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--tjm-text);
    text-align: center;
    padding: 0 20px;
    animation: nameFlash 0.1s ease-out;
}

@keyframes nameFlash {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Winner name - dramatic reveal */
.draw-name.winner {
    color: #f97316;
    font-size: clamp(2rem, 6vw, 3.5rem);
    animation: winnerBoom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-shadow: 
        0 0 30px rgba(249, 115, 22, 0.8),
        0 0 60px rgba(249, 115, 22, 0.5),
        0 0 90px rgba(249, 115, 22, 0.3);
}

@keyframes winnerBoom {
    0% { 
        transform: scale(0) rotate(-10deg); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.3) rotate(3deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.9) rotate(-2deg);
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
}

/* Progress bar */
.draw-modal-footer {
    padding: 0 20px;
}

.draw-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.draw-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ----------------------------------------
   PRIZE CARDS - Horizontal Layout
   ---------------------------------------- */
.prizes-section {
    margin-bottom: 48px;
}

.prizes-title {
    text-align: center;
    color: var(--tjm-text);
    font-size: 1.75rem;
    margin-bottom: 32px;
}

/* Stack cards vertically */
.prize-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.prize-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tjm-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    min-height: 200px;
}

@media (max-width: 768px) {
    .prize-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.prize-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.prize-card.drawing {
    border-color: #f97316;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.prize-card.won {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.03);
}

/* Prize Status Badge */
.prize-status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

@media (max-width: 768px) {
    .prize-status {
        top: 8px;
        right: 8px;
        left: auto;
    }
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.pending {
    background: rgba(0, 0, 0, 0.5);
    color: var(--tjm-text-muted);
}

.status-badge.drawing {
    background: rgba(249, 115, 22, 0.9);
    color: #0a0a0b;
    animation: pulse 1s ease-in-out infinite;
}

.status-badge.won {
    background: rgba(34, 197, 94, 0.9);
    color: #0a0a0b;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Prize Image - Larger thumbnail */
.prize-image {
    margin: 0;
    grid-row: 1 / 3;
    width: 200px;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 768px) {
    .prize-image {
        grid-row: auto;
        width: 100%;
        height: 200px;
        min-height: auto;
    }
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.prize-image img.loaded {
    opacity: 1;
}

.prize-card:hover .prize-image img {
    transform: scale(1.05);
}

/* Image loading placeholder */
.prize-image::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.prize-image img.loaded + .prize-image::before,
.prize-image:has(img.loaded)::before {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Prize Content - Main info */
.prize-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.prize-content .kicker {
    font-size: 0.75rem;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    font-weight: 600;
}

.prize-name {
    color: var(--tjm-text);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.prize-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prize-items li {
    color: var(--tjm-text-muted);
    font-size: 0.85rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.prize-items li::before {
    display: none;
}

/* Prize Winner/Action Area */
.prize-action {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--tjm-border);
    gap: 20px;
}

@media (max-width: 768px) {
    .prize-action {
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
    }
}

/* Prize Winner Display */
.prize-winner {
    text-align: left;
    flex: 1;
}

.winner-label {
    font-size: 0.7rem;
    color: var(--tjm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.winner-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tjm-text-muted);
    transition: color 0.3s ease;
    line-height: 1.2;
}

.prize-card.won .winner-name {
    color: #22c55e;
}

.winner-email {
    font-size: 0.8rem;
    color: var(--tjm-text-muted);
    margin-top: 2px;
}

.winner-post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.winner-post-link:hover {
    background: rgba(249, 115, 22, 0.25);
    color: #f97316;
}

/* Draw Button */
.draw-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 10px;
    color: #0a0a0b;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.draw-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fb923c, #f97316);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.draw-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--tjm-text-muted);
    cursor: not-allowed;
}

.draw-btn.drawing {
    background: linear-gradient(135deg, #f97316, #ea580c);
    animation: btnPulse 0.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    50% { box-shadow: 0 0 15px 5px rgba(249, 115, 22, 0.3); }
}

.draw-btn.complete {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Prize buttons container */
.prize-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Share button */
.share-btn {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--tjm-border);
    border-radius: 10px;
    color: var(--tjm-text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
    color: #f97316;
}

.share-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .prize-winner {
        text-align: center;
    }
    .prize-buttons {
        width: 100%;
    }
    .draw-btn {
        flex: 1;
    }
}

/* ----------------------------------------
   WINNER SHARE MODAL
   ---------------------------------------- */
.winner-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.winner-share-modal[hidden] {
    display: none;
}

.winner-share-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.winner-share-modal-content {
    background: #1a1a1b;
    border-radius: 20px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.winner-share-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--tjm-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.winner-share-close:hover {
    color: var(--tjm-text);
}

.winner-share-preview {
    margin-bottom: 20px;
}

.winner-share-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.winner-share-actions .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.winner-share-actions .btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #0a0a0b;
    border: none;
}

.winner-share-actions .btn-outline {
    background: transparent;
    color: var(--tjm-text);
    border: 1px solid var(--tjm-border);
}

.winner-share-tip {
    text-align: center;
    color: var(--tjm-text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
    margin-bottom: 0;
}

.winner-share-tip i {
    margin-right: 6px;
    color: #f97316;
}

/* Winner Share Card - The actual shareable image */
.winner-share-card {
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1b 50%, #0a0a0b 100%);
    border: 2px solid #f97316;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.winner-share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c, #f97316);
}

.winner-share-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.winner-share-logo {
    width: 40px;
    height: 40px;
}

.winner-share-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.winner-share-brand .brand-the {
    font-size: 0.6rem;
    color: var(--tjm-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.winner-share-brand .brand-journeyman {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tjm-text);
    letter-spacing: 0.05em;
}

.winner-share-giveaway {
    font-size: 0.8rem;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.winner-share-prize-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.winner-share-prize-image img {
    width: 100%;
    height: auto;
    display: block;
}

.winner-share-prize {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tjm-text);
    margin-bottom: 20px;
}

.winner-share-congrats {
    font-size: 0.9rem;
    color: var(--tjm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.winner-share-name {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.winner-share-location {
    font-size: 0.95rem;
    color: var(--tjm-text-muted);
    margin-bottom: 24px;
}

.winner-share-location i {
    color: #f97316;
    margin-right: 6px;
}

.winner-share-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.winner-share-items span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--tjm-text-muted);
}

.winner-share-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--tjm-border);
    font-size: 0.75rem;
    color: var(--tjm-text-muted);
}

.winner-share-footer .share-url {
    color: #f97316;
}

/* All Winners Master Share Card */
.all-winners-card {
    padding: 24px;
}

.all-winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .all-winners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.all-winners-item {
    text-align: center;
}

.all-winners-prize-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.all-winners-prize-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-winners-prize-name {
    font-size: 0.75rem;
    color: var(--tjm-text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.all-winners-winner-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #22c55e;
}

.winner-share-thanks {
    font-size: 0.85rem;
    color: var(--tjm-text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

/* ----------------------------------------
   RESULTS SECTION
   ---------------------------------------- */
.results-section {
    text-align: center;
    padding: 40px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-title {
    color: #22c55e;
    font-size: 2rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tjm-border);
    border-radius: 16px;
    padding: 24px;
}

.result-card .prize-label {
    font-size: 0.75rem;
    color: var(--tjm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.result-card .prize-title {
    color: #f97316;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.result-card .winner-info {
    border-top: 1px solid var(--tjm-border);
    padding-top: 16px;
}

.result-card .winner-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
}

.result-card .winner-email {
    font-size: 0.9rem;
    color: var(--tjm-text-muted);
    margin-top: 4px;
}

.result-card .winner-phone,
.result-card .winner-location {
    font-size: 0.85rem;
    color: var(--tjm-text-muted);
    margin-top: 6px;
}

.result-card .winner-phone i,
.result-card .winner-location i {
    color: #f97316;
    margin-right: 6px;
    width: 14px;
}

.result-card .winner-entries {
    font-size: 0.8rem;
    color: var(--tjm-text-muted);
    margin-top: 8px;
}

.result-card .winner-post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.result-card .winner-post-link:hover {
    background: rgba(249, 115, 22, 0.25);
    color: #f97316;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.results-actions .btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.results-actions .btn-primary {
    background: #f97316;
    color: #0a0a0b;
    border: none;
}

.results-actions .btn-primary:hover {
    background: #fb923c;
}

.results-actions .btn-outline {
    background: transparent;
    color: var(--tjm-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------
   CONFETTI CANVAS
   ---------------------------------------- */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ----------------------------------------
   CELEBRATION OVERLAY
   ---------------------------------------- */
.celebration-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.celebration-content {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(12, 12, 12, 0.98));
    border: 2px solid #22c55e;
    border-radius: 24px;
    max-width: 500px;
    animation: celebrationPop 0.5s ease-out;
}

@keyframes celebrationPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.celebration-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 8px;
}

.celebration-prize {
    color: #f97316;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.celebration-winner {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tjm-text);
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.celebration-details {
    margin-bottom: 24px;
}

.celebration-email {
    color: var(--tjm-text-muted);
    font-size: 1rem;
}

.celebration-location {
    color: var(--tjm-text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.celebration-location i {
    color: #f97316;
    margin-right: 6px;
}

.celebration-entries {
    font-size: 0.85rem;
    color: var(--tjm-text-muted);
    margin-top: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: inline-block;
}

.celebration-post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.celebration-post-link:hover {
    background: rgba(249, 115, 22, 0.3);
    color: #f97316;
    transform: translateY(-2px);
}

.celebration-close {
    padding: 14px 40px;
    background: #22c55e;
    color: #0a0a0b;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.celebration-close:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* ----------------------------------------
   RESPONSIVE ADJUSTMENTS
   ---------------------------------------- */
@media (max-width: 768px) {
    body.picker-page main {
        padding: 20px 12px;
    }

    .picker-header .giveaway-title {
        font-size: 2rem;
    }

    .upload-card {
        padding: 24px;
    }

    .slot-reel {
        height: 80px;
    }

    .slot-name {
        font-size: 1.25rem;
    }

    .prizes-title {
        font-size: 1.5rem;
    }

    .results-section {
        padding: 24px;
    }

    .celebration-content {
        padding: 40px 24px;
        margin: 20px;
    }

    .celebration-winner {
        font-size: 1.75rem;
    }
}
