/* --------------------------------------
   FREE PICKS (Pick'em) STYLES
   -------------------------------------- */
#view-picks {
    padding-bottom: 120px; /* Space for the sticky slip */
}

/* Header & Auth */
.picks-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 40px 16px;
    background: linear-gradient(135deg, rgba(255,0,51,0.15), rgba(0,140,255,0.15));
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.picks-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/black-scales.png');
    opacity: 0.3; pointer-events: none;
}

.auth-container {
    max-width: 400px;
    margin: 40px auto;
    background: var(--card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    text-align: center;
}
.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #005ce6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0,140,255,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 2s infinite alternate;
}
.auth-btn:hover { 
    background: linear-gradient(135deg, var(--danger), #cc0000); 
    box-shadow: 0 0 25px rgba(255,0,51,0.6); 
    transform: scale(1.02); 
}
@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(0,140,255,0.3); }
    to { box-shadow: 0 0 25px rgba(0,140,255,0.6); }
}
.auth-toggle {
    background: none; border: none; color: var(--muted); font-size: 0.85rem; margin-top: 16px; cursor: pointer; text-decoration: underline;
}

/* User Profile Mini Bar */
.user-bar {
    display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); border-radius: 8px; margin-bottom: 24px;
}
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.2rem; }

/* Filter Tabs */
.prop-filters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 24px; }
.prop-filters::-webkit-scrollbar { display: none; }
.prop-filter-btn { padding: 8px 16px; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 0.85rem; transition: 0.2s;}
.prop-filter-btn.active { background: white; color: black; border-color: white; }

/* Prop Cards Grid */
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.prop-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.prop-card-header { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: flex-start; }
.prop-player-info { display: flex; gap: 12px; align-items: center; }
.prop-player-info img { width: 48px; height: 48px; object-fit: contain; }
.prop-name { font-weight: 700; font-size: 1rem; }
.prop-team { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.prop-line-container { text-align: right; }
.prop-line-val { font-size: 1.8rem; font-weight: 900; color: white; line-height: 1; }
.prop-line-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-top: 4px; }

.prop-reference { padding: 8px 16px; background: rgba(255,255,255,0.02); font-size: 0.75rem; color: var(--muted); text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.prop-reference strong { color: white; }

.prop-controls { display: flex; flex: 1; }
.prop-btn { flex: 1; padding: 16px 0; border: none; background: transparent; cursor: pointer; font-weight: 800; font-size: 1rem; transition: 0.2s; position: relative; }
.prop-btn-over { color: var(--emerald); border-right: 1px solid rgba(255,255,255,0.05); }
.prop-btn-under { color: var(--danger); }
.prop-btn:hover { background: rgba(255,255,255,0.05); }
.prop-btn.selected-over { background: var(--emerald) !important; color: white !important; }
.prop-btn.selected-under { background: var(--danger) !important; color: white !important; }

/* Sticky Slip */
.pick-slip {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    max-height: 85vh; /* Prevents slip from exceeding screen height on very small phones */
    background: var(--background, #060606);
    border: 1px solid var(--card-border, rgba(255,255,255,0.1));
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    z-index: 1000;
    display: none;
    flex-direction: column;
}
.pick-slip.active { display: flex; }
.slip-header { padding: 12px 16px; border-bottom: 1px solid var(--card-border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; background: var(--card); border-radius: 16px 16px 0 0;}
.slip-items { max-height: 250px; overflow-y: auto; padding: 8px; }
.slip-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; border: 1px solid var(--card-border); }
.slip-item-info { flex: 1; }
.slip-item-name { font-weight: 700; font-size: 0.85rem; }
.slip-item-desc { font-size: 0.75rem; color: var(--muted); }
.slip-item-choice { font-weight: 800; font-size: 0.85rem; padding: 4px 8px; border-radius: 4px; margin-left: 12px;}
.slip-choice-over { background: rgba(16,185,129,0.2); color: var(--emerald); }
.slip-choice-under { background: rgba(239,68,68,0.2); color: var(--danger); }
.slip-remove { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px 8px; font-size: 1rem; }

.slip-footer { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--card-border, rgba(255,255,255,0.1)); background: var(--card, #121214); }
.slip-submit-btn { 
    width: 100%; padding: 16px; 
    background: linear-gradient(135deg, var(--primary), #005ce6); 
    color: white; font-weight: 900; font-size: 1.1rem; border: none; border-radius: 8px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0,140,255,0.4);
    transition: all 0.3s;
}
.slip-submit-btn:hover:not(:disabled) { 
    background: linear-gradient(135deg, var(--danger), #cc0000); 
    box-shadow: 0 0 25px rgba(255,0,51,0.6); 
    transform: translateY(-2px); 
}
.slip-submit-btn:disabled { background: rgba(255,255,255,0.1); color: var(--muted); cursor: not-allowed; box-shadow: none; }

/* My Picks History */
.ticket-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 16px; padding: 16px; }
.ticket-header { display: flex; justify-content: space-between; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px;}
.ticket-status-won { color: var(--emerald); font-weight: 700;}
.ticket-status-lost { color: var(--danger); font-weight: 700;}
.ticket-status-pending { color: #fbbf24; font-weight: 700;}

/* NEW: Hot Streaks Section */
.streak-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; margin-bottom: 24px; }
.streak-scroll::-webkit-scrollbar { display: none; }
.streak-card { min-width: 150px; background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 16px; text-align: center; position: relative; }
.streak-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--card-border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 12px; position:relative;}
.streak-badge { position: absolute; bottom: -5px; right: -5px; background: #fbbf24; color: black; font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; border: 2px solid var(--card); }
.streak-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px;}
.streak-count { font-size: 0.8rem; color: var(--emerald); font-weight: 700; }
.streak-acc { font-size: 0.7rem; color: var(--muted); }

/* NEW: Pick Of The Day */
.potd-wrapper { background: linear-gradient(45deg, #10b98122, #0066ff22); padding: 2px; border-radius: 14px; margin-bottom: 32px; animation: potdGlow 3s infinite alternate; }
@keyframes potdGlow { from { box-shadow: 0 0 10px #10b98122; } to { box-shadow: 0 0 20px #10b98166; } }
.potd-card { background: var(--card); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.potd-header { text-align:center; padding: 8px; background: rgba(16,185,129,0.1); color: var(--emerald); font-weight: 900; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;}
.potd-edge-strong { background: var(--emerald); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; }
.potd-edge-solid { background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; }

/* PLAYER DETAIL MODAL (PRIZEPICKS STYLE) */
.player-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.player-modal-overlay.active { display: flex; opacity: 1; }
.player-modal-content {
    background: var(--card);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.player-modal-overlay.active .player-modal-content { transform: translateY(0); }
.pm-header {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), var(--bg));
    padding: 24px 20px 16px;
    text-align: center;
    position: relative;
}
.pm-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.1);
    border: none; color: var(--muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}
.pm-close:hover { background: rgba(255,255,255,0.2); color: white; }
.pm-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8800ff);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 900; color: white;
    border: 4px solid var(--card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.pm-name { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 4px; }
.pm-team { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.pm-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 0; width: 100%; }

/* PERFORMANCE CHART */
.pm-chart-section { padding: 20px; background: var(--bg); }
.pm-chart-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.pm-stat-title { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.pm-stat-val { font-size: 2.2rem; font-weight: 900; color: white; line-height: 1; }
.pm-avg-box { text-align: right; }
.pm-avg-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;}
.pm-avg-val { font-size: 1.2rem; font-weight: 800; color: white; }

.pm-chart-container {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* The dashed line representing the prop */
.pm-chart-target-line {
    position: absolute;
    left: -10px; right: -10px;
    border-top: 2px dashed rgba(255,255,255,0.3);
    z-index: 1;
}
.pm-chart-target-label {
    position: absolute;
    right: 0; top: -18px;
    font-size: 0.7rem; font-weight: 800; color: rgba(255,255,255,0.6);
}
.pm-bar-wrapper {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    height: 100%;
    position: relative;
    z-index: 2;
    margin: 0 4px;
}
.pm-bar {
    width: 100%;
    max-width: 36px;
    border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.pm-bar.over { background: var(--emerald); box-shadow: 0 0 10px rgba(16,185,129,0.3); }
.pm-bar.under { background: var(--danger); box-shadow: 0 0 10px rgba(220,38,38,0.3); }
.pm-bar-val {
    position: absolute; top: -20px; left: 0; right: 0;
    text-align: center; font-size: 0.8rem; font-weight: 800; color: white;
}
.pm-bar-label {
    position: absolute; bottom: -20px; left: 0; right: 0;
    text-align: center; font-size: 0.65rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
}

/* MODAL TABLE & BADGES */
.pm-confidence-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--card);
}
.pm-badge-hot { color: #fbbf24; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.pm-badge-mid { color: var(--muted); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.pm-badge-cold { color: #38bdf8; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.pm-hit-rate { font-size: 0.8rem; font-weight: 700; color: white; background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 12px; }

.pm-history-table {
    padding: 0 20px 20px; background: var(--card);
}
.pm-table-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.pm-table-row:last-child { border-bottom: none; }
.pm-table-game { color: var(--muted); font-weight: 600; }
.pm-table-res { font-weight: 800; }
.pm-table-res.over { color: var(--emerald); }
.pm-table-res.under { color: var(--danger); }

/* MODAL ACTIONS */
.pm-actions {
    display: flex; gap: 12px; padding: 20px; background: rgba(0,0,0,0.2);
}
.pm-btn {
    flex: 1; padding: 16px; border: none; border-radius: 12px;
    font-size: 1.1rem; font-weight: 900; color: white; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: transform 0.1s, filter 0.2s;
}
.pm-btn:active { transform: scale(0.96); }
.pm-btn-less { background: var(--danger); }
.pm-btn-more { background: var(--emerald); }
.pm-btn-sub { font-size: 0.7rem; opacity: 0.8; font-weight: 600; }
