/**
 * FreeBies Giveaway — Admin CSS
 * Version: 2.0
 *
 * Sections:
 *   1. General / Layout
 *   2. Tab Bar
 *   3. Status Badges
 *   4. Tables
 *   5. Pagination
 *   6. Forms (Create / Edit / Settings)
 *   7. Code Management
 *   8. Event Detail
 *   9. Winner Panel
 *  10. Spin Button
 *  11. Spin Overlay / Roulette
 *  12. Winner Reveal
 *  13. Confetti
 *  14. Animations
 *  15. Utility Classes
 *  16. Trade Link
 *  17. Notices
 *  18. Media Uploader
 */

/* ==========================================================================
   1. General / Layout
   ========================================================================== */

.fbga-wrap {
    max-width: 1200px;
    padding: 20px 20px 40px;
}

.fbga-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.fbga-card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.fbga-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d2327;
}

.fbga-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   2. Tab Bar (Event List)
   ========================================================================== */

.fbga-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    gap: 0;
}

.fbga-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    font-weight: 500;
    font-size: 14px;
    color: #50575e;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: -2px;
}

.fbga-tab:hover {
    border-bottom-color: #2271b1;
    color: #2271b1;
}

.fbga-tab.active {
    border-bottom-color: #2271b1;
    color: #2271b1;
    font-weight: 600;
}

/* ==========================================================================
   3. Status Badges
   ========================================================================== */

.fbga-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.fbga-badge-green {
    background: #d4edda;
    color: #155724;
}

.fbga-badge-blue {
    background: #cce5ff;
    color: #004085;
}

.fbga-badge-orange {
    background: #fff3cd;
    color: #856404;
}

.fbga-badge-purple {
    background: #e2d5f1;
    color: #4a1a8a;
}

.fbga-badge-red {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   4. Tables
   ========================================================================== */

.fbga-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.fbga-table th {
    background: #f1f1f1;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    border-bottom: 2px solid #ddd;
}

.fbga-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 13px;
    color: #333;
}

.fbga-table tr:hover td {
    background: #f8f9fa;
}

.fbga-table .column-cb {
    width: 30px;
    text-align: center;
}

.fbga-table .column-id {
    width: 50px;
}

.fbga-table .avatar-round {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    vertical-align: middle;
}

.fbga-winner-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fbga-winner-cell img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   5. Pagination
   ========================================================================== */

.fbga-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.fbga-pagination a,
.fbga-pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}

.fbga-pagination .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.fbga-pagination a:hover {
    background: #f0f0f0;
}

/* ==========================================================================
   6. Forms (Create / Edit / Settings)
   ========================================================================== */

.fbga-form {
    max-width: 700px;
}

.fbga-form-group {
    margin-bottom: 20px;
}

.fbga-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1d2327;
}

.fbga-form-group input[type="text"],
.fbga-form-group input[type="url"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fbga-form-group input:focus,
.fbga-form-group select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Custom Datetime Picker */
.fbga-form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.fbga-form-half {
    flex: 1;
    min-width: 280px;
}

.fbga-datetime-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbga-date-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fbga-time-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fbga-time-input {
    width: 52px !important;
    max-width: 52px !important;
    text-align: center;
    padding: 8px 4px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fbga-time-sep {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    padding: 0 2px;
}

.fbga-ampm-select {
    padding: 8px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
    margin-left: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.fbga-ampm-select:hover {
    background: #eef3f8;
    border-color: #2271b1;
}

.fbga-ampm-select option {
    font-weight: 600;
}

/* Auto-detected PM indicator */
.fbga-time-input.auto-pm {
    border-color: #d63384;
    background: #fdf2f8;
}

.fbga-ampm-select.auto-switched {
    border-color: #d63384;
    background: #fdf2f8;
    animation: fbga-flash 0.4s ease;
}

@keyframes fbga-flash {
    0%, 100% { background: #f9f9f9; }
    50% { background: #fdf2f8; }
}

.fbga-image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px dashed #ddd;
    display: block;
    overflow: hidden;
}

.fbga-image-preview img {
    max-width: 100%;
    border-radius: 6px;
    display: block;
}

.fbga-submit-btn {
    background: #2271b1;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.fbga-submit-btn:hover {
    background: #135e96;
}

/* ==========================================================================
   7. Code Management
   ========================================================================== */

.fbga-code-gen-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.fbga-code-gen-section input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.fbga-generated-codes {
    background: #f0f8ff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.fbga-generated-codes.visible {
    display: block;
}

.fbga-generated-codes h4 {
    margin: 0 0 10px;
    color: #2271b1;
    font-size: 15px;
}

.fbga-code-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    margin: 5px;
    border: 1px solid #ddd;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1d2327;
}

.fbga-copy-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.fbga-copy-btn:hover {
    background: #135e96;
}

.fbga-copy-btn.copied {
    background: #28a745;
}

.fbga-copy-all-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.fbga-copy-all-btn:hover {
    background: #218838;
}

/* ==========================================================================
   8. Event Detail
   ========================================================================== */

.fbga-event-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .fbga-event-info {
        grid-template-columns: 1fr;
    }
}

.fbga-event-info .fbga-prize-image {
    max-width: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fbga-event-info-item {
    margin-bottom: 10px;
}

.fbga-event-info-item label {
    font-weight: 600;
    color: #666;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.fbga-event-info-item span {
    font-size: 16px;
    color: #333;
}

.fbga-participants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   9. Winner Panel
   ========================================================================== */

.fbga-winner-panel {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.fbga-winner-panel img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffc107;
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.fbga-winner-panel h3 {
    font-size: 22px;
    color: #333;
    margin: 10px 0 5px;
}

.fbga-winner-panel .steam-id {
    color: #666;
    font-size: 14px;
    margin: 0 0 5px;
}

.fbga-winner-panel .trade-link-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   10. Spin Button
   ========================================================================== */

.fbga-spin-section {
    text-align: center;
    margin: 30px 0;
}

#fbga-spin-btn {
    background: linear-gradient(135deg, #ff6b35, #ff2d2d);
    color: #fff;
    border: none;
    padding: 20px 50px;
    font-size: 24px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 45, 45, 0.4);
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 1px;
}

#fbga-spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 45, 45, 0.6);
}

#fbga-spin-btn:active {
    transform: scale(0.98);
}

/* Test spin — outlined style */
#fbga-spin-btn.fbga-spin-test {
    background: transparent;
    border: 2px dashed #ff6b35;
    color: #ff6b35;
    box-shadow: none;
    font-size: 18px;
    padding: 15px 40px;
}

#fbga-spin-btn.fbga-spin-test:hover {
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

/* ==========================================================================
   11. Spin Overlay / Roulette
   ========================================================================== */

.fbga-spin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fbga-spin-overlay.active {
    display: flex;
}

.fbga-roulette-container {
    width: 600px;
    height: 120px;
    overflow: hidden;
    position: relative;
    border: 3px solid #ffc107;
    border-radius: 12px;
    background: #1a1a2e;
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.2);
}

.fbga-roulette-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #ff2d2d;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 45, 45, 0.8);
}

.fbga-roulette-indicator::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #ff2d2d;
}

.fbga-roulette-indicator::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #ff2d2d;
}

.fbga-roulette-strip {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    will-change: transform;
}

.fbga-roulette-strip.spinning {
    transition: transform 8s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.fbga-roulette-item {
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.fbga-roulette-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: border-color 0.3s;
}

.fbga-roulette-item .name {
    color: #fff;
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbga-roulette-item.winner-slot img {
    border: 3px solid #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

/* ==========================================================================
   12. Winner Reveal (after spin)
   ========================================================================== */

.fbga-winner-reveal {
    display: none;
    text-align: center;
    margin-top: 30px;
    color: #fff;
}

.fbga-spin-overlay.winner-revealed .fbga-winner-reveal {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.fbga-spin-overlay.winner-revealed .fbga-roulette-container {
    opacity: 0.3;
    transition: opacity 0.5s;
}

.fbga-winner-reveal img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffc107;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
    margin-bottom: 15px;
    object-fit: cover;
}

.fbga-winner-reveal h2 {
    font-size: 32px;
    color: #ffc107;
    margin: 10px 0;
}

.fbga-winner-reveal .steam-id {
    color: #aaa;
    font-size: 14px;
    margin: 5px 0;
}

.fbga-winner-reveal .trade-link {
    color: #ccc;
    font-size: 13px;
    margin-top: 10px;
    word-break: break-all;
}

.fbga-confirm-winner-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.fbga-confirm-winner-btn:hover {
    background: #218838;
    transform: scale(1.02);
}

.fbga-close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
    line-height: 1;
}

.fbga-close-overlay:hover {
    opacity: 1;
}

/* ==========================================================================
   13. Confetti
   ========================================================================== */

.fbga-confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    z-index: 1000000;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

/* ==========================================================================
   14. Animations
   ========================================================================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confettiFall {
    0% {
        top: -10px;
        transform: rotate(0deg) translateX(0);
        opacity: 1;
    }
    25% {
        transform: rotate(180deg) translateX(15px);
    }
    50% {
        transform: rotate(360deg) translateX(-10px);
    }
    75% {
        transform: rotate(540deg) translateX(15px);
    }
    100% {
        top: 110vh;
        transform: rotate(720deg) translateX(0);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
    }
}

/* ==========================================================================
   15. Utility Classes
   ========================================================================== */

.fbga-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    text-align: center;
}

.fbga-btn-primary {
    background: #2271b1;
    color: #fff;
}

.fbga-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.fbga-btn-danger {
    background: #dc3545;
    color: #fff;
}

.fbga-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.fbga-btn-success {
    background: #28a745;
    color: #fff;
}

.fbga-btn-success:hover {
    background: #218838;
    color: #fff;
}

.fbga-btn-warning {
    background: #ffc107;
    color: #333;
}

.fbga-btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.fbga-btn-sm {
    padding: 3px 8px;
    font-size: 11px;
}

.fbga-text-muted {
    color: #999;
}

.fbga-mt-10 {
    margin-top: 10px;
}

.fbga-mb-10 {
    margin-bottom: 10px;
}

.fbga-mb-20 {
    margin-bottom: 20px;
}

.fbga-flex {
    display: flex;
}

.fbga-gap-10 {
    gap: 10px;
}

.fbga-align-center {
    align-items: center;
}

/* ==========================================================================
   16. Trade Link
   ========================================================================== */

.fbga-trade-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fbga-trade-link-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #666;
}

/* ==========================================================================
   17. Notices (Success / Error)
   ========================================================================== */

.fbga-notice-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
}

.fbga-notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #721c24;
    font-size: 14px;
}

/* ==========================================================================
   18. Media Uploader
   ========================================================================== */

.fbga-upload-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.fbga-upload-btn:hover {
    background: #135e96;
}

.fbga-remove-image-btn {
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    background: none;
    border: none;
    text-decoration: underline;
}

.fbga-remove-image-btn:hover {
    color: #a71d2a;
}

/* ==========================================================================
   19. Sound Preview
   ========================================================================== */

.fbga-sound-preview {
    margin-top: 10px;
}

.fbga-sound-preview audio {
    vertical-align: middle;
}

/* ==========================================================================
   20. Responsive adjustments for WP admin
   ========================================================================== */

@media (max-width: 960px) {
    .fbga-roulette-container {
        width: 90vw;
        max-width: 600px;
    }

    .fbga-code-gen-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .fbga-actions-bar {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   21. Dynamic Prize Rows (Create/Edit page)
   ========================================================================== */
.fbga-prizes-section { margin: 20px 0; }
.fbga-prize-row {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  position: relative;
}
.fbga-prize-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1d2327;
}
.fbga-remove-prize {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.fbga-remove-prize:hover { background: rgba(220,53,69,0.1); }
.fbga-prize-row-body {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.fbga-prize-row-body input[type='text'] {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.fbga-upload-prize-img {
  background: #2271b1;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.fbga-upload-prize-img:hover { background: #135e96; }
.fbga-prize-img-preview img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 6px;
  border: 2px dashed #ddd;
}
#fbga-add-prize {
  background: none;
  border: 2px dashed #2271b1;
  color: #2271b1;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
}
#fbga-add-prize:hover {
  background: rgba(34,113,177,0.05);
  border-color: #135e96;
}

/* ==========================================================================
   22. Prizes Panel (Event Detail page)
   ========================================================================== */
.fbga-prizes-panel {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fbga-prizes-panel h3 {
  margin: 0 0 15px;
  font-size: 18px;
}
.fbga-prize-thumb {
  max-width: 60px;
  border-radius: 6px;
}
.fbga-prize-winner-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fbga-prize-winner-cell img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.fbga-won-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #e8d5f5;
  color: #7b2d8e;
}

/* ==========================================================================
   23. Quick Draw
   ========================================================================== */
#fbga-quick-draw {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  transition: all 0.3s;
}
#fbga-quick-draw:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}

.fbga-quickdraw-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s;
}
.fbga-quickdraw-results {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 500px;
  width: 90%;
  color: #fff;
  text-align: center;
}
.fbga-quickdraw-results h2 {
  color: #f59e0b;
  margin-bottom: 20px;
}
.fbga-qd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fbga-qd-item:last-child { border-bottom: none; }
.fbga-qd-item img {
  width: 40px; height: 40px;
  border-radius: 50%;
}
.fbga-qd-item .qd-prize {
  color: #f59e0b;
  font-weight: 600;
  min-width: 120px;
  text-align: left;
}
.fbga-qd-item .qd-winner {
  color: #e0e0e0;
  text-align: left;
}
.fbga-qd-close {
  margin-top: 20px;
  background: #f59e0b;
  color: #1a1a2e;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

/* ==========================================================================
   24. Spin Overlay Updates
   ========================================================================== */
.fbga-spin-prize-name {
  color: #f59e0b;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
