/* =============================================================================
   SUPERFLY BETS - IN-CHAT BETTING SYSTEM
   Polymarket-style UI with Superfly Cash aesthetics
   Session 62 - December 2025
   ============================================================================= */

/* =============================================================================
   BET CREATION MODAL
   ============================================================================= */

/* 🔥 Full-width bet modals - remove body padding, content handles its own */
.base-modal-body:has(.bet-creation-content),
.base-modal-body:has(.bet-detail-content) {
    padding-left: 0;
    padding-right: 0;
}

.bet-creation-content {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden; /* Prevent any leaking */
    position: relative;
}

/* Swipe zone - visible area for swipe-to-close gesture */
.bet-swipe-zone {
    height: 24px;
    margin: 0 -20px 0;
    cursor: grab;
    flex-shrink: 0;
    /* NOTE: Don't use touch-action here - it interferes with JS touch handling */
}

.bet-swipe-zone:active {
    cursor: grabbing;
}

/* Fix all inputs to respect container width */
.bet-creation-content input,
.bet-creation-content textarea,
.bet-creation-content select {
    box-sizing: border-box;
}

.bet-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.bet-question-input {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bet-question-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(207, 181, 106, 0.15);
}

.bet-question-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.question-char-count {
    text-align: right;
    font-size: 11px;
    color: var(--text-secondary);
}

.question-char-count.near-limit {
    color: #ff9800;
}

.question-char-count.at-limit {
    color: #f44336;
}

/* =============================================================================
   OPTIONS LIST
   ============================================================================= */

.bet-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-option-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.bet-option-input:focus {
    outline: none;
    border-color: var(--gold);
}

.bet-option-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.btn-remove-option {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 67, 54, 0.1);
    border: none;
    border-radius: 50%;
    color: #f44336;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-option:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: scale(1.1);
}

.btn-add-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(207, 181, 106, 0.1);
    border: 1px dashed var(--gold);
    border-radius: 10px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-option:hover {
    background: rgba(207, 181, 106, 0.2);
}

.btn-add-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============================================================================
   BET SETTINGS
   ============================================================================= */

.bet-settings-row {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Min bet smaller, Max bet gets more space */
    gap: 12px;
    width: 100%;
    overflow: hidden; /* 🔥 Prevent any child overflow */
}

.bet-settings-row.single {
    grid-template-columns: 1fr;
}

.bet-setting-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* Allow shrinking below content width */
    max-width: 100%; /* 🔥 iOS FIX */
    overflow: hidden;
}

.bet-setting-input {
    width: 100%;
    min-width: 0; /* Allow shrinking below content width */
    max-width: 100%; /* 🔥 iOS FIX: Prevent overflow */
    padding: 12px 14px;
    font-size: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    
    /* 🔥 iOS date input fixes */
    -webkit-appearance: none;
    appearance: none;
}

.bet-setting-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* 🔥 iOS Date Input specific fixes */
.bet-setting-input[type="date"] {
    /* iOS date inputs have weird default min-width */
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    
    /* Ensure the date picker icon doesn't cause overflow */
    -webkit-min-logical-width: auto;
}

/* iOS Safari specific - date picker pseudo-element */
.bet-setting-input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.bet-setting-input[type="date"]::-webkit-calendar-picker-indicator {
    /* Keep the calendar icon but don't let it add extra width */
    margin-left: auto;
    margin-right: 0;
}

/* Mode Selector */
.bet-mode-selector {
    display: flex;
    gap: 8px;
}

.bet-mode-btn {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-mode-btn.active {
    background: rgba(207, 181, 106, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.bet-mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* =============================================================================
   CREATE BET BUTTON
   ============================================================================= */

.btn-create-bet {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #FFD700);
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.btn-create-bet:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 181, 106, 0.3);
}

.btn-create-bet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   BET CARD (In Chat Messages)
   ============================================================================= */

.bet-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    max-width: 320px;
    min-width: 0; /* 🔥 Allow shrinking to fit container */
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Bet card inside chat message bubbles - constrain to parent */
.message-bubble .bet-card {
    max-width: 100%;
    min-width: 0;
}

.bet-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(207, 181, 106, 0.15);
}

.bet-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.bet-card-icon {
    font-size: 20px;
    color: var(--gold);
    animation: betIconPulse 2s ease-in-out infinite;
}

@keyframes betIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bet-card-question {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.bet-card-creator {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Odds Bars */
.bet-options-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bet-option-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-option-label {
    font-size: 13px;
    color: var(--text-primary);
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bet-option-bar-container {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bet-option-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), rgba(207, 181, 106, 0.6));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.bet-option-percent {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.bet-option-pool {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: right;
}

/* Bet Card Footer */
.bet-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.bet-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bet-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.bet-stat i {
    font-size: 14px;
    color: var(--gold);
}

.bet-card-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
}

.bet-status-open {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.bet-status-resolved {
    background: rgba(156, 39, 176, 0.15);
    color: #9C27B0;
}

.bet-status-cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

/* =============================================================================
   BET DETAIL MODAL - Full Polymarket View
   ============================================================================= */

.bet-detail-content {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero Section */
.bet-detail-hero {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.bet-detail-question {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 12px;
}

.bet-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bet-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.bet-meta-item i {
    color: var(--gold);
}

/* Pool Stats */
.bet-pool-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.bet-pool-stat {
    text-align: center;
}

.bet-pool-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.bet-pool-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Options Voting Section */
.bet-options-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.bet-options-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.bet-options-list-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-option-item-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-option-item-detail:hover {
    border-color: var(--gold);
    background: rgba(207, 181, 106, 0.05);
}

.bet-option-item-detail.selected {
    border-color: var(--gold);
    background: rgba(207, 181, 106, 0.1);
}

.bet-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bet-option-item-detail.selected .bet-option-radio {
    border-color: var(--gold);
    background: var(--gold);
}

.bet-option-item-detail.selected .bet-option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

.bet-option-info {
    flex: 1;
}

.bet-option-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bet-option-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.bet-option-odds {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

/* Bet Amount Input */
.bet-amount-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden; /* 🔥 Prevent children overflow */
}

.bet-amount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bet-amount-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.bet-balance {
    font-size: 12px;
    color: var(--text-secondary);
}

.bet-balance span {
    color: var(--gold);
    font-weight: 600;
}

.bet-amount-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s ease;
    overflow: hidden; /* 🔥 Contain children */
    max-width: 100%;
}

.bet-amount-input-wrapper:focus-within {
    border-color: var(--gold);
}

.bet-amount-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.bet-amount-input {
    flex: 1;
    padding: 16px 12px;
    font-size: 24px;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
}

.bet-amount-input:focus {
    outline: none;
}

.bet-amount-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Asset Selector */
.bet-asset-select {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(207, 181, 106, 0.1);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    cursor: pointer;
    
    /* 🔥 iOS overflow fix */
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Quick Amount Buttons */
.bet-quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.bet-quick-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-quick-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Potential Payout */
.bet-payout-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    margin-top: 12px;
}

.bet-payout-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.bet-payout-value {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
}

/* Place Bet Button */
.btn-place-bet {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #FFD700);
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-place-bet:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 181, 106, 0.3);
}

.btn-place-bet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Your Position Section */
.bet-your-position {
    background: linear-gradient(135deg, rgba(207, 181, 106, 0.1), rgba(207, 181, 106, 0.05));
    border: 1px solid rgba(207, 181, 106, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.bet-position-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bet-position-header i {
    color: var(--gold);
}

.bet-position-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-position-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.bet-position-option {
    font-size: 14px;
    color: var(--text-primary);
}

.bet-position-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

/* Participants Section */
.bet-participants-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.bet-participants-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bet-participants-title span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.bet-participants-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.bet-participants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.bet-participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.bet-participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), rgba(207, 181, 106, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.bet-participant-info {
    flex: 1;
}

.bet-participant-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.bet-participant-option {
    font-size: 11px;
    color: var(--text-secondary);
}

.bet-participant-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

/* Resolution Section (for creator) */
.bet-resolve-section {
    background: rgba(156, 39, 176, 0.1);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.bet-resolve-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #9C27B0;
}

.bet-resolve-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.bet-resolve-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-resolve-option:hover {
    border-color: #9C27B0;
}

.bet-resolve-option.selected {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.1);
}

.btn-resolve-bet {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-resolve-bet:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.3);
}

.btn-resolve-bet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================================================
   CHAT BET BUTTON - Glowing Animation
   ============================================================================= */

.btn-bet {
    position: relative;
    background: rgba(207, 181, 106, 0.15);
    border: none;
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all 0.2s ease;
    animation: betButtonGlow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(207, 181, 106, 0.3);
}

@keyframes betButtonGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(207, 181, 106, 0.3);
        background: rgba(207, 181, 106, 0.15);
    }
    50% {
        box-shadow: 0 0 20px rgba(207, 181, 106, 0.6), 0 0 30px rgba(207, 181, 106, 0.3);
        background: rgba(207, 181, 106, 0.25);
    }
}

.btn-bet:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(207, 181, 106, 0.7);
}

/* =============================================================================
   BET SHARE ACTIONS
   ============================================================================= */

.bet-share-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-share-bet {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share-bet:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-copy-link {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* =============================================================================
   RESOLVED BET DISPLAY
   ============================================================================= */

.bet-resolved-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(156, 39, 176, 0.05));
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.bet-resolved-banner i {
    font-size: 24px;
    color: #9C27B0;
}

.bet-resolved-info {
    display: flex;
    flex-direction: column;
}

.bet-resolved-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.bet-resolved-winner {
    font-size: 18px;
    font-weight: 700;
    color: #9C27B0;
}

/* Winner Highlight */
.bet-option-item-detail.winner {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.bet-option-item-detail.winner .bet-option-radio {
    border-color: #4CAF50;
    background: #4CAF50;
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #4CAF50;
    text-transform: uppercase;
}

/* =============================================================================
   LIGHT MODE OVERRIDES
   ============================================================================= */

body[data-theme="light"] .bet-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .bet-option-bar-container {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .bet-option-bar-fill {
    background: linear-gradient(90deg, #B8973F, rgba(184, 151, 63, 0.6));
}

body[data-theme="light"] .btn-bet {
    background: rgba(184, 151, 63, 0.15);
    box-shadow: 0 0 8px rgba(184, 151, 63, 0.3);
}

@keyframes betButtonGlowLight {
    0%, 100% {
        box-shadow: 0 0 8px rgba(184, 151, 63, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(184, 151, 63, 0.6);
    }
}

body[data-theme="light"] .btn-bet {
    animation: betButtonGlowLight 2s ease-in-out infinite;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bet-option-item-detail {
    animation: slideInUp 0.3s ease forwards;
}

.bet-option-item-detail:nth-child(1) { animation-delay: 0.05s; }
.bet-option-item-detail:nth-child(2) { animation-delay: 0.1s; }
.bet-option-item-detail:nth-child(3) { animation-delay: 0.15s; }
.bet-option-item-detail:nth-child(4) { animation-delay: 0.2s; }
.bet-option-item-detail:nth-child(5) { animation-delay: 0.25s; }

