/**
 * Enhanced AI Sports Picks CSS
 * Professional styling for enhanced pick analysis and display
 */

/* Enhanced Pick Results */
.enhanced-pick-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007cba;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 123, 186, 0.15);
    transition: all 0.3s ease;
}

.enhanced-pick-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 186, 0.25);
}

.pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.pick-header h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.confidence-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.confidence-high { background: linear-gradient(135deg, #28a745, #20c997); }
.confidence-medium { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.confidence-low { background: linear-gradient(135deg, #dc3545, #e83e8c); }

.pick-main {
    margin-bottom: 15px;
}

.recommendation-row {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #007cba;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pick-value {
    font-size: 16px;
    font-weight: 600;
    color: #007cba;
}

.pick-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.pick-details-row span {
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.stake-row {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    color: #000;
}

.stake-reasoning {
    color: #856404;
    font-style: italic;
}

.risk-row {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
}

.pick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.pick-actions .button {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pick-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Enhanced Game Cards */
.enhanced-game-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.enhanced-game-card:hover {
    border-color: #007cba;
    box-shadow: 0 4px 16px rgba(0,123,186,0.2);
}

.game-info h5 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.game-time {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.game-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Pick Analysis Modal */
.pick-analysis-modal {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.analysis-header {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin: -20px -20px 20px -20px;
}

.analysis-header h4 {
    margin: 0 0 15px 0;
    font-size: 22px;
}

.pick-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.summary-item {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.analysis-sections {
    margin: 20px 0;
}

.analysis-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.analysis-section h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.analysis-section p {
    margin: 0;
    line-height: 1.6;
    color: #212529;
}

.betting-recommendation {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.betting-recommendation h5 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 18px;
}

.bet-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.bet-rec-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.analysis-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* Place Bet Modal */
.place-bet-modal {
    max-width: 500px;
}

.bet-form h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-align: center;
}

.bet-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.bet-summary p {
    margin: 5px 0;
}

.bet-inputs {
    margin-bottom: 20px;
}

.bet-inputs label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.bet-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
}

.recommended-stake {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

.bet-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Container styling */
.ai-sports-picks-enhanced-widget {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Enhanced Navigation */
.enhanced-navigation {
    background: linear-gradient(135deg, #58a12e 0%, #464646 100%);
    padding: 0;
    display: flex;
    border-bottom: none;
    overflow-x: auto;
}

.enhanced-navigation .nav-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 18px 24px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.enhanced-navigation .nav-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.enhanced-navigation .nav-tab.nav-tab-active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #00d4aa;
}

.enhanced-navigation .nav-tab .dashicons {
    font-size: 16px;
}

/* Enhanced Content */
.enhanced-content {
    padding: 0;
}

.view-content {
    display: none;
    padding: 32px;
    min-height: 600px;
}

.view-content.active {
    display: block;
}

/* Headers */
.advanced-picks-header,
.strategies-header,
.bankroll-header,
.parlays-header,
.dashboard-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.advanced-picks-header h3,
.strategies-header h3,
.bankroll-header h3,
.parlays-header h3,
.dashboard-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.advanced-picks-header p,
.strategies-header p,
.bankroll-header p,
.parlays-header p,
.dashboard-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #00d4aa;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-stat .stat-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.quick-stat .stat-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.quick-stat .bankroll-amount {
    color: #00d4aa;
}

/* Enhanced Pick Configuration */
.enhanced-pick-config {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e9ecef;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-row:last-child {
    margin-bottom: 0;
}

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

.config-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.config-group select,
.config-group input {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.config-group select:focus,
.config-group input:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.bet-amount-container {
    display: flex;
    gap: 8px;
}

.bet-amount-container input {
    flex: 1;
}

.bet-amount-container .button-small {
    padding: 8px 12px;
    font-size: 12px;
}

/* Enhanced Games Container */
.enhanced-games-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.games-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.games-actions {
    display: flex;
    gap: 12px;
}

.games-list {
    padding: 24px;
}

.enhanced-game-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.enhanced-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enhanced-game-card:last-child {
    margin-bottom: 0;
}

.game-info h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.game-info .game-time {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}

.game-actions {
    display: flex;
    gap: 12px;
}

/* Pick Results */
.pick-result {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

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

.pick-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.confidence-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #d1ecf1;
    color: #0c5460;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

.recommendation {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
}

.pick-actions {
    display: flex;
    gap: 8px;
}

/* Strategy Templates */
.strategy-templates-section {
    margin-bottom: 32px;
}

.strategy-templates-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.template-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    border-color: #00d4aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.template-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.template-type {
    background: #00d4aa;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.template-card p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.template-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    color: #495057;
}

/* Strategy Form */
.custom-strategy-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e9ecef;
}

.custom-strategy-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.strategy-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group .unit {
    position: absolute;
    right: 12px;
    top: 38px;
    color: #6c757d;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* User Strategies */
.user-strategies-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strategy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.strategy-item:hover {
    border-color: #00d4aa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.strategy-info h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.strategy-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6c757d;
}

.strategy-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #495057;
}

.strategy-stats .win-rate {
    color: #28a745;
    font-weight: 600;
}

.strategy-stats .roi {
    color: #007bff;
    font-weight: 600;
}

.strategy-actions {
    display: flex;
    gap: 8px;
}

/* Bankroll Management */
.bankroll-overview {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.bankroll-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bankroll-card.main-balance {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    border: none;
}

.bankroll-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.bankroll-card.main-balance h4 {
    color: rgba(255, 255, 255, 0.9);
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.card-actions .button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-actions .button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-actions .button-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #00d4aa;
}

.card-actions .button-primary:hover {
    background: white;
}

.performance-grid,
.risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.perf-item,
.risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.perf-item:last-child,
.risk-item:last-child {
    border-bottom: none;
}

.perf-label,
.risk-label {
    font-size: 14px;
    color: #6c757d;
}

.perf-value,
.risk-value {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.profit-positive {
    color: #28a745 !important;
}

.profit-negative {
    color: #dc3545 !important;
}

.win-rate {
    color: #28a745;
}

/* Kelly Calculator */
.kelly-calculator-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e9ecef;
}

.kelly-calculator-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.kelly-calculator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: end;
}

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

.input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
}

.kelly-results {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: #6c757d;
}

.result-value {
    font-weight: 700;
    font-size: 16px;
    color: #00d4aa;
}

/* Transactions */
.transactions-section {
    margin-bottom: 32px;
}

.transactions-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.transactions-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.transactions-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    text-transform: capitalize;
}

.transaction-date {
    font-size: 12px;
    color: #6c757d;
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
}

.amount-positive {
    color: #28a745;
}

.amount-negative {
    color: #dc3545;
}

/* Parlay Builder */
.parlay-builder-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e9ecef;
}

.parlay-builder-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.parlay-builder {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parlay-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.parlay-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.parlay-picks-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.parlay-picks-container h5 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.selected-picks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.parlay-pick-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.pick-info h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.pick-info p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}

.pick-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pick-stats .confidence {
    background: #00d4aa;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.remove-from-parlay {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.remove-from-parlay:hover {
    background: #f8d7da;
}

.parlay-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.summary-item span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.parlay-bet-config {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.parlay-bet-config label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.parlay-bet-config input {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    width: 120px;
}

/* Dashboard */
.enhanced-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card.primary {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    border: none;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon .dashicons {
    font-size: 24px;
    color: #00d4aa;
}

.stat-card.primary .stat-icon .dashicons {
    color: white;
}

.stat-content h4 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-card.primary .stat-content h4 {
    color: white;
}

.stat-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.stat-card.primary .stat-content p {
    color: rgba(255, 255, 255, 0.9);
}

.stat-change,
.stat-detail {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.stat-card.primary .stat-change,
.stat-card.primary .stat-detail {
    color: rgba(255, 255, 255, 0.8);
}

/* Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-container h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.bankroll-chart-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bankroll-chart-section h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

/* Public Dashboard */
.public-dashboard {
    text-align: center;
}

.public-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.public-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* Enhanced Login Prompt */
.enhanced-login-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
    text-align: center;
}

.prompt-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.prompt-icon .dashicons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.prompt-text h4 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.prompt-text p {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.prompt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.prompt-actions .button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.prompt-actions .button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.prompt-actions .button-primary {
    background: white;
    color: #667eea;
}

.prompt-actions .button-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item .dashicons {
    font-size: 24px;
    color: white;
}

/* Enhanced Modals */
.enhanced-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.enhanced-modal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.enhanced-modal .close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: color 0.3s ease;
}

.enhanced-modal .close:hover {
    color: #000;
}

/* Buttons */
.button {
    background: #00d4aa;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.button:hover {
    background: #00b894;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.3);
}

.button:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-primary {
    background: #007bff;
}

.button-primary:hover {
    background: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.button-secondary {
    background: #6c757d;
}

.button-secondary:hover {
    background: #545b62;
}

.button-success {
    background: #28a745;
}

.button-success:hover {
    background: #1e7e34;
}

.button-danger {
    background: #dc3545;
}

.button-danger:hover {
    background: #c82333;
}

.button-warning {
    background: #ffc107;
    color: #212529;
}

.button-warning:hover {
    background: #e0a800;
    color: #212529;
}

.button-info {
    background: #17a2b8;
}

.button-info:hover {
    background: #138496;
}

.button-light {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.button-light:hover {
    background: #e2e6ea;
    color: #495057;
}

.button-dark {
    background: #343a40;
}

.button-dark:hover {
    background: #23272b;
}

.button-small {
    padding: 8px 12px;
    font-size: 12px;
}

.button-large {
    padding: 16px 32px;
    font-size: 16px;
}

.button-link {
    background: none;
    color: #007bff;
    border: none;
    padding: 0;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.button-link:hover {
    color: #0056b3;
    background: none;
    transform: none;
    box-shadow: none;
}

/* Notifications */
.notice {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
}

.notice-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.notice-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.notice-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
/* ENHANCED MOBILE EXPERIENCE - TABLET (768px and below) */
@media (max-width: 768px) {
    /* Main Container - Optimized for tablet */
    .ai-sports-picks-enhanced-widget {
        margin: 12px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    
    /* Navigation - Touch-friendly tabs */
    .enhanced-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 8px;
    }
    
    .enhanced-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .enhanced-navigation .nav-tab {
        padding: 16px 20px;
        font-size: 14px;
        min-width: 120px;
        flex-shrink: 0;
        border-radius: 8px 8px 0 0;
        margin: 0 2px;
    }
    
    .enhanced-navigation .nav-tab.nav-tab-active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Content Areas */
    .view-content {
        padding: 24px 20px;
        min-height: 500px;
    }
    
    /* Headers - Better mobile typography */
    .advanced-picks-header h3,
    .strategies-header h3,
    .bankroll-header h3,
    .parlays-header h3,
    .dashboard-header h3 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 12px;
        color: #ffffff;
    }
    
    .advanced-picks-header p,
    .strategies-header p,
    .bankroll-header p,
    .parlays-header p,
    .dashboard-header p {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* Configuration Section */
    .config-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .config-group label {
        font-size: 15px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .config-group select,
    .config-group input {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        min-height: 48px; /* Touch-friendly */
    }
    
    /* Game Cards - Enhanced for mobile */
    .enhanced-game-card {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    }
    
    .game-info h5 {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
        color: #0067b6;
    }
    
    .game-time {
        font-size: 14px;
        margin-bottom: 16px;
        color:#ffffff;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .game-actions .button {
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        min-height: 48px; /* Touch-friendly */
        transition: all 0.2s ease;
    }
    
    /* Pick Results - Mobile optimized */
    .enhanced-pick-result {
        padding: 20px;
        margin-top: 20px;
        border-radius: 12px;
    }
    
    .pick-header h6 {
        font-size: 16px;
    }
    
    .confidence-badge {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .recommendation-row {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .pick-value {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .pick-details-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .pick-details-row span {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .stake-row,
    .risk-row {
        padding: 14px;
        font-size: 14px;
        line-height: 1.4;
    }
    
    .pick-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .pick-actions .button {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    /* Modal Enhancements */
    .enhanced-modal .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 500px;
        padding: 24px;
        border-radius: 12px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .pick-analysis-modal h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .analysis-header {
        margin: -24px -24px 20px -24px;
        padding: 20px 24px;
        border-radius: 12px 12px 0 0;
    }
    
    .analysis-header h4 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .pick-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-item {
        padding: 12px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .analysis-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .analysis-section h5 {
        font-size: 15px;
        margin-bottom: 12px;
        color:#ffffff;
    }
    
    .analysis-section p {
        font-size: 14px;
        line-height: 1.5;
        color: #ffffff;
    }
    
    .betting-recommendation {
        padding: 20px;
        margin: 20px 0;
        border-radius: 10px;
    }
    
    .bet-rec-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bet-rec-item {
        padding: 14px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .analysis-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .analysis-actions .button {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 8px;
    }
    
    /* Template and Strategy Cards */
    .template-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .template-card,
    .strategy-item {
        padding: 20px;
        border-radius: 12px;
    }
    
    .strategy-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    
    .strategy-actions .button {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Bankroll Section */
    .bankroll-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bankroll-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .kelly-calculator {
        grid-template-columns: 1fr;
    }
    
    .calc-inputs {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .calc-inputs input,
    .calc-inputs select {
        padding: 12px 16px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 8px;
    }
    
    /* Stats and Charts */
    .enhanced-stats-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .quick-stats-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        text-align: center;
    }
    
    .quick-stat {
        padding: 12px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .stat-value {
        font-size: 20px;
        margin-top: 6px;
    }
    
    /* Forms */
    .prompt-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .prompt-actions .button {
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 8px;
    }
    
    /* Features Preview */
    .features-preview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px;
        text-align: center;
        border-radius: 12px;
    }
}

/* ENHANCED MOBILE EXPERIENCE - SMARTPHONE (480px and below) */
@media (max-width: 480px) {
    /* Container - Optimized for small screens */
    .ai-sports-picks-enhanced-widget {
        margin: 8px;
        border-radius: 16px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    }
    
    /* Navigation - Compact mobile tabs */
    .enhanced-navigation {
        padding: 0 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .enhanced-navigation .nav-tab {
        padding: 12px 8px;
        font-size: 12px;
        min-width: 80px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        border-radius: 12px 12px 0 0;
    }
    
    .enhanced-navigation .nav-tab .dashicons {
        font-size: 16px;
        margin: 0;
    }
    
    .enhanced-navigation .nav-tab-active {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        font-weight: 700;
    }
    
    /* Content Areas - Maximized screen usage */
    .view-content {
        padding: 16px 12px;
        min-height: 400px;
    }
    
    /* Headers - Mobile-first typography */
    .advanced-picks-header h3,
    .strategies-header h3,
    .bankroll-header h3,
    .parlays-header h3,
    .dashboard-header h3 {
        font-size: 22px;
        line-height: 1.1;
        margin-bottom: 8px;
        text-align: center;
        color:#ffffff;
    }
    
    .advanced-picks-header p,
    .strategies-header p,
    .bankroll-header p,
    .parlays-header p,
    .dashboard-header p {
        font-size: 15px;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Configuration - Touch-optimized */
    .config-row {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .config-group {
        margin-bottom: 16px;
    }
    
    .config-group label {
        font-size: 14px;
        font-weight: 700;
        color: #2c3e50;
        display: block;
        margin-bottom: 8px;
    }
    
    .config-group select,
    .config-group input {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        min-height: 56px; /* Extra touch-friendly */
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
    }
    
    .config-group select:focus,
    .config-group input:focus {
        border-color: #007cba;
        box-shadow: 0 0 0 3px rgba(0, 123, 186, 0.1);
        outline: none;
    }
    
    /* Game Cards - Mobile-first design */
    .enhanced-game-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border: 1px solid #f0f0f0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }
    
    .game-info {
        text-align: center;
        margin-bottom: 16px;
    }
    
    .game-info h5 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.2;
        color: #0067b6;
    }
    
    .game-time {
        font-size: 13px;
        color: #ffffff;
        margin-bottom: 0;
        font-weight: 500;
    }
    
    .game-actions {
        gap: 10px;
    }
    
    .game-actions .button {
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 12px;
        min-height: 52px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: none;
        transition: all 0.2s ease;
    }
    
    .game-actions .button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .game-actions .button-primary {
        background: linear-gradient(135deg, #007cba, #0056b3);
        color: white;
    }
    
    .game-actions .button-primary:hover {
        background: linear-gradient(135deg, #0056b3, #004085);
    }
    
    /* Pick Results - Mobile optimized display */
    .enhanced-pick-result {
        padding: 16px;
        margin-top: 16px;
        border-radius: 16px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px solid #007cba;
        box-shadow: 0 6px 25px rgba(0, 123, 186, 0.15);
    }
    
    .pick-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .pick-header h6 {
        font-size: 15px;
        margin: 0;
        font-weight: 700;
        color:#ffffff;
    }
    
    .confidence-badge {
        padding: 8px 20px;
        font-size: 13px;
        font-weight: 800;
        border-radius: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .recommendation-row {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        text-align: center;
        background: white;
        box-shadow: 0 3px 12px rgba(0,0,0,0.1);
        border-left: 4px solid #007cba;
    }
    
    .pick-value {
        font-size: 16px;
        font-weight: 700;
        color: #007cba;
        line-height: 1.3;
    }
    
    .pick-details-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .pick-details-row span {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 8px;
        text-align: center;
        background: white;
        border: 1px solid #dee2e6;
        font-weight: 600;
    }
    
    .stake-row {
        padding: 16px;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .risk-row {
        padding: 12px;
        font-size: 13px;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .pick-actions {
        gap: 8px;
        margin-top: 16px;
    }
    
    .pick-actions .button {
        padding: 14px 16px;
        font-size: 13px;
        font-weight: 700;
        min-height: 48px;
        border-radius: 10px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        border: none;
    }
    
    .pick-actions .view-analysis {
        background: linear-gradient(135deg, #6c757d, #495057);
        color: white;
    }
    
    .pick-actions .place-bet {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
    }
    
    /* Modal - Full mobile experience */
    .enhanced-modal {
        padding: 0;
    }
    
    .enhanced-modal .modal-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        padding: 20px 16px;
        border-radius: 0;
        overflow-y: auto;
        position: relative;
    }
    
    .enhanced-modal .close {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 32px;
        color: white;
        z-index: 10;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .pick-analysis-modal {
        padding-top: 60px; /* Account for close button */
    }
    
    .pick-analysis-modal h3 {
        font-size: 18px;
        margin-bottom: 16px;
        text-align: center;
        color: white;
    }
    
    .analysis-header {
        margin: -20px -16px 20px -16px;
        padding: 24px 16px;
        border-radius: 0;
    }
    
    .analysis-header h4 {
        font-size: 16px;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .pick-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .summary-item {
        padding: 12px;
        font-size: 13px;
        line-height: 1.3;
        text-align: center;
        border-radius: 8px;
    }
    
    .analysis-section {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .analysis-section h5 {
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: 700;
        text-align: center;
    }
    
    .analysis-section p {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
    }
    
    .betting-recommendation {
        padding: 16px;
        margin: 16px 0;
        border-radius: 12px;
    }
    
    .betting-recommendation h5 {
        font-size: 16px;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .bet-rec-grid {
        gap: 8px;
    }
    
    .bet-rec-item {
        padding: 12px;
        font-size: 13px;
        border-radius: 8px;
        text-align: center;
    }
    
    .analysis-actions {
        gap: 8px;
        margin-top: 20px;
        padding-top: 16px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e9ecef;
    }
    
    .analysis-actions .button {
        padding: 16px 20px;
        font-size: 14px;
        font-weight: 700;
        min-height: 52px;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: none;
    }
    
    /* Quick Stats - Mobile stack */
    .quick-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .quick-stat {
        padding: 12px 8px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .stat-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
    }
    
    .stat-value {
        font-size: 18px;
        font-weight: 800;
        margin-top: 4px;
    }
    
    /* Strategy Cards - Mobile optimized */
    .template-card,
    .strategy-item {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .strategy-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .strategy-actions .button {
        padding: 12px 16px;
        font-size: 12px;
        font-weight: 600;
        min-height: 40px;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    /* Forms - Touch optimized */
    .prompt-content {
        padding: 16px;
        text-align: center;
    }
    
    .prompt-actions {
        gap: 8px;
        margin-top: 16px;
    }
    
    .prompt-actions .button {
        padding: 16px 24px;
        font-size: 15px;
        font-weight: 700;
        min-height: 52px;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    /* Bankroll Management */
    .bankroll-card {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .calc-inputs input,
    .calc-inputs select {
        padding: 16px;
        font-size: 16px;
        min-height: 56px;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 16px;
        border-radius: 16px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 12px;
    }
    
    /* Parlay specific */
    .parlay-summary {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .parlay-bet-config {
        gap: 8px;
        margin-top: 16px;
    }
    
    .parlay-bet-config input,
    .parlay-bet-config select {
        padding: 16px;
        font-size: 16px;
        min-height: 56px;
        border-radius: 12px;
        text-align: center;
    }
    
    /* Loading States */
    .button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none !important;
    }
    
    /* Touch feedback */
    .button:active,
    .enhanced-game-card:active {
        transform: scale(0.98);
    }
    
    /* Improved scrolling on iOS */
    .enhanced-modal .modal-content,
    .view-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Print Styles */
@media print {
    .enhanced-navigation,
    .game-actions,
    .strategy-actions,
    .card-actions,
    .form-actions,
    .parlay-actions,
    .prompt-actions {
        display: none;
    }
    
    .ai-sports-picks-enhanced-widget {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .view-content {
        display: block !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ai-sports-picks-enhanced-widget {
        border: 2px solid;
    }
    
    .enhanced-game-card,
    .template-card,
    .strategy-item,
    .bankroll-card,
    .stat-card {
        border: 2px solid;
    }
}

/* Mobile-specific CSS enhancements */
.ai-sports-picks-mobile .ai-sports-picks-enhanced-widget {
    position: relative;
    overflow: hidden;
}

/* Mobile toast notifications */
.mobile-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10001;
    padding: 16px 24px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    text-align: center;
    font-weight: 600;
}

.mobile-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mobile-toast.notice-success {
    background: rgba(40, 167, 69, 0.95);
    color: white;
}

.mobile-toast.notice-error {
    background: rgba(220, 53, 69, 0.95);
    color: white;
}

.mobile-toast.notice-warning {
    background: rgba(255, 193, 7, 0.95);
    color: #212529;
}

/* Pull to refresh indicator */
.pull-to-refresh-indicator {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #007cba;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,123,186,0.2);
    animation: pulseRefresh 1s infinite;
}

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

/* Touch feedback animations */
@media (max-width: 768px) {
    .button:active,
    .nav-tab:active,
    .enhanced-game-card:active {
        animation: mobilePress 0.1s ease-out;
    }
}

@keyframes mobilePress {
    0% { transform: scale(1); }
    50% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/* Swipe indicators for navigation */
.ai-sports-picks-mobile .enhanced-navigation::after {
    content: "← Swipe to navigate →";
    display: block;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    padding: 4px 0 8px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .ai-sports-picks-mobile .enhanced-navigation::after {
        content: "← Swipe →";
        font-size: 10px;
    }
}

/* Improved scroll indicators */
.ai-sports-picks-mobile .enhanced-navigation {
    position: relative;
}

.ai-sports-picks-mobile .enhanced-navigation::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
    z-index: 1;
}

/* Mobile modal enhancements */
@media (max-width: 480px) {
    .enhanced-modal.mobile-fullscreen {
        background: rgba(0,0,0,0.95);
    }
    
    .enhanced-modal.mobile-fullscreen .modal-content {
        background: #f8f9fa;
        border-radius: 20px 20px 0 0;
        margin-top: 10%;
        height: 90vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .enhanced-modal.mobile-fullscreen .pick-analysis-modal {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px 80px 16px;
    }
    
    .enhanced-modal.mobile-fullscreen .analysis-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
}

/* Haptic feedback simulation for supported devices */
@media (max-width: 768px) {
    .button:active::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.3);
        border-radius: inherit;
        transform: translate(-50%, -50%) scale(0);
        animation: hapticFeedback 0.3s ease-out;
        pointer-events: none;
    }
}

@keyframes hapticFeedback {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .ai-sports-picks-enhanced-widget {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .enhanced-game-card {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        border-color: #404040;
    }
    
    .enhanced-pick-result {
        background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
        border-color: #007cba;
    }
    
    .recommendation-row,
    .pick-details-row span,
    .analysis-section {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .config-group select,
    .config-group input {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .mobile-toast,
    .pull-to-refresh-indicator,
    .button:active,
    .enhanced-game-card:active {
        animation: none !important;
        transition: none !important;
    }
}

/* Large text support */
@media (max-width: 768px) {
    .large-text .game-info h5 {
        font-size: 20px;
    }
    
    .large-text .pick-value {
        font-size: 18px;
    }
    
    .large-text .analysis-section p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .large-text .button {
        font-size: 18px;
        padding: 18px 24px;
        min-height: 60px;
    }
}
