/* ===== LOTO 6/49 ANALYZER PRO — FRONTEND STYLES ===== */

:root {
    --loto-primary: #1a1a2e;
    --loto-secondary: #16213e;
    --loto-accent: #e94560;
    --loto-gold: #f5a623;
    --loto-green: #0f9b58;
    --loto-blue: #4a90d9;
    --loto-text: #333;
    --loto-light: #f8f9fa;
    --loto-border: #e0e0e0;
    --loto-radius: 12px;
    --loto-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.loto649-wrap * { box-sizing: border-box; }

.loto649-wrap {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--loto-text);
}

/* ===== TABS ===== */
.loto649-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: var(--loto-primary);
    padding: 12px;
    border-radius: var(--loto-radius) var(--loto-radius) 0 0;
}

.loto649-tab {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.loto649-tab:hover { background: rgba(255,255,255,0.2); }
.loto649-tab.active { background: var(--loto-accent); color: #fff; }

/* ===== PANELS ===== */
.loto649-panel {
    display: none;
    background: #fff;
    padding: 24px;
    border: 1px solid var(--loto-border);
    border-top: none;
    border-radius: 0 0 var(--loto-radius) var(--loto-radius);
    min-height: 400px;
}

.loto649-panel.active { display: block; }
.loto649-panel h2 { margin: 0 0 20px; color: var(--loto-primary); font-size: 1.4rem; }
.loto649-panel h3 { color: var(--loto-secondary); margin: 16px 0 10px; }

/* ===== CARDS ===== */
.loto649-card {
    background: var(--loto-light);
    border: 1px solid var(--loto-border);
    border-radius: var(--loto-radius);
    padding: 20px;
    margin-bottom: 20px;
}

/* ===== FORM ===== */
.loto649-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.loto649-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

.loto649-form-group select,
.loto649-form-group input[type="date"],
.loto649-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--loto-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border 0.2s;
}

.loto649-form-group select:focus,
.loto649-form-group input:focus { border-color: var(--loto-accent); outline: none; }

/* ===== BUTTONS ===== */
.loto649-btn {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.loto649-btn-primary { background: var(--loto-accent); color: #fff; }
.loto649-btn-primary:hover { background: #c73652; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,69,96,0.4); }
.loto649-btn-secondary { background: var(--loto-green); color: #fff; }
.loto649-btn-secondary:hover { background: #0a7d48; }
.loto649-btn-outline { background: transparent; color: var(--loto-primary); border: 2px solid var(--loto-primary); }
.loto649-btn-outline:hover { background: var(--loto-primary); color: #fff; }
.loto649-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== TICKET CARD ===== */
.loto649-tickets-container h3 { margin-bottom: 16px; }

.loto649-ticket {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-radius: var(--loto-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--loto-shadow);
    position: relative;
    overflow: hidden;
}

.loto649-ticket::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(233,69,96,0.1);
    border-radius: 50%;
}

.loto649-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    opacity: 0.7;
}

.loto649-ticket-method {
    background: var(--loto-accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    color: #fff;
}

.loto649-ticket-numbers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.loto649-ball {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5a623, #e8920a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245,166,35,0.5);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.loto649-ball:hover { transform: scale(1.1); }

.loto649-ticket-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-end;
}

.loto649-ticket-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.loto649-ticket-btn:hover { background: rgba(255,255,255,0.25); }

.loto649-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ===== FREQUENCY CHART ===== */
.loto649-chart-wrap {
    background: #fff;
    border-radius: var(--loto-radius);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--loto-border);
    overflow-x: auto;
}

.loto649-chart-wrap canvas { max-height: 300px; }

/* ===== HOT/COLD ===== */
.loto649-hot-cold {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.loto649-hot, .loto649-cold {
    background: var(--loto-light);
    border-radius: var(--loto-radius);
    padding: 16px;
}

.loto649-hot h4 { color: #e94560; margin: 0 0 12px; }
.loto649-cold h4 { color: var(--loto-blue); margin: 0 0 12px; }

.loto649-num-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--loto-border);
    padding: 5px 10px;
    border-radius: 20px;
    margin: 4px;
    font-size: 13px;
    font-weight: 600;
}

.loto649-num-chip .chip-num {
    background: var(--loto-accent);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.loto649-cold .loto649-num-chip .chip-num { background: var(--loto-blue); }

/* ===== SUMMARY BAR ===== */
.loto649-summary-bar {
    background: var(--loto-primary);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--loto-radius);
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.loto649-summary-bar strong { color: var(--loto-gold); }

/* ===== GRID VIEW ===== */
.loto649-num-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 16px;
}

.loto649-grid-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    cursor: default;
    transition: transform 0.2s;
}

.loto649-grid-cell:hover { transform: scale(1.05); }
.loto649-grid-cell .cell-count { font-size: 10px; font-weight: 400; opacity: 0.8; }

/* ===== ARCHIVE TABLE ===== */
.loto649-archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.loto649-archive-table th {
    background: var(--loto-primary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.loto649-archive-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--loto-border);
}

.loto649-archive-table tr:hover td { background: #f8f0ff; }

.loto649-archive-table .draw-num {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--loto-gold);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin: 2px;
}

/* ===== PREDICTIONS ===== */
.loto649-pred-card {
    background: #fff;
    border: 1px solid var(--loto-border);
    border-left: 4px solid var(--loto-accent);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.loto649-pred-numbers { display: flex; gap: 8px; flex-wrap: wrap; }
.loto649-pred-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--loto-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.loto649-pred-meta { flex: 1; font-size: 13px; color: #666; }
.loto649-pred-meta strong { color: var(--loto-primary); }

.loto649-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-verified { background: #d1e7dd; color: #0f5132; }

/* ===== STATS GRID ===== */
.loto649-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.loto649-stat-card {
    background: var(--loto-primary);
    color: #fff;
    border-radius: var(--loto-radius);
    padding: 20px;
    text-align: center;
}

.loto649-stat-card .s-num { font-size: 2rem; font-weight: 700; color: var(--loto-gold); }
.loto649-stat-card .s-label { font-size: 13px; opacity: 0.7; margin-top: 4px; }

/* ===== PAGINATION ===== */
.loto649-pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.loto649-page-btn {
    padding: 6px 12px;
    border: 1px solid var(--loto-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.loto649-page-btn:hover { background: var(--loto-primary); color: #fff; }
.loto649-page-btn.active { background: var(--loto-accent); color: #fff; border-color: var(--loto-accent); }

/* ===== INFO / LOADING ===== */
.loto649-info {
    background: #e8f4fd;
    border-left: 4px solid var(--loto-blue);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    margin-bottom: 16px;
}

.loto649-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.loto649-spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 3px solid #ddd;
    border-top-color: var(--loto-accent);
    border-radius: 50%;
    animation: loto-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes loto-spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .loto649-tabs { flex-direction: column; }
    .loto649-hot-cold { grid-template-columns: 1fr; }
    .loto649-ball { width: 42px; height: 42px; font-size: 15px; }
    .loto649-ticket-numbers { gap: 8px; }
    .loto649-num-grid { grid-template-columns: repeat(5, 1fr); }
}

@media print {
    .loto649-tabs, .loto649-btn, .loto649-ticket-actions,
    .loto649-actions-bar { display: none !important; }
    .loto649-panel { display: block !important; border: none; }
    .loto649-ticket { break-inside: avoid; }
}

/* ===== AUTO INVATARE TAB ===== */

.loto649-tab-ai {
    background: linear-gradient(135deg, #e94560, #f5a623) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(233,69,96,0.4);
    position: relative;
    overflow: visible;
}

.loto649-tab-ai::after {
    content: 'NOU';
    position: absolute;
    top: -6px; right: -4px;
    background: #fff;
    color: #e94560;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* AL Header */
.al-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.al-header-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(233,69,96,0.5));
}

.al-header h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--loto-primary); }
.al-subtitle { color: #666; font-size: 14px; margin: 0; }

/* Setup card */
.al-setup-card { border: 2px solid transparent; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#e94560,#f5a623,#4a90d9) border-box; }

.al-step-row { display: flex; gap: 16px; }
.al-step-num {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #e94560, #f5a623);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px;
    flex-shrink: 0; margin-top: 2px;
}

.al-step-body { flex: 1; }
.al-step-body strong { font-size: 15px; color: var(--loto-primary); }
.al-step-desc { font-size: 13px; color: #888; margin: 4px 0 12px; }

/* Date select */
.al-date-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--loto-border);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: border 0.2s;
}
.al-date-select:focus { border-color: var(--loto-accent); outline: none; box-shadow: 0 0 0 3px rgba(233,69,96,0.15); }

.al-date-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    min-height: 28px;
}

.al-date-badge.future { background: #d1fae5; color: #065f46; }
.al-date-badge.past   { background: #fef3c7; color: #92400e; }

/* Period grid */
.al-period-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.al-period-opt { cursor: pointer; }
.al-period-opt input[type="radio"] { display: none; }

.al-period-card {
    border: 2px solid var(--loto-border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.al-period-card:hover { border-color: var(--loto-accent); background: #fff5f5; }
.al-period-opt input:checked + .al-period-card,
.al-period-card.selected {
    border-color: var(--loto-accent);
    background: linear-gradient(135deg, #fff5f5, #fff0e8);
    box-shadow: 0 2px 12px rgba(233,69,96,0.2);
}

.al-period-icon { font-size: 1.4rem; }
.al-period-name { font-weight: 700; font-size: 13px; color: var(--loto-primary); }
.al-period-sub  { font-size: 11px; color: #999; }

/* Run button */
.al-run-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #e94560, #f5a623);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(233,69,96,0.4);
}
.al-run-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(233,69,96,0.5); }
.al-run-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.al-btn-icon { font-size: 1.4rem; }

/* History */
.al-history-card { margin-top: 16px; }
.al-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.al-history-header h3 { margin: 0; }
.al-small-btn { padding: 7px 14px !important; font-size: 13px !important; }
.al-empty-msg { color: #999; font-size: 14px; font-style: italic; }

.al-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--loto-border);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    transition: background 0.2s;
}
.al-history-item:hover { background: #f8f9fa; }
.al-history-date { font-weight: 700; color: var(--loto-primary); min-width: 100px; }
.al-history-period { color: #666; flex: 1; }
.al-history-badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.al-badge-past   { background: #fef3c7; color: #92400e; }
.al-badge-future { background: #d1fae5; color: #065f46; }
.al-badge-nodata { background: #f3f4f6; color: #6b7280; }

/* ===== LOADING OVERLAY ===== */
.al-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,20,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.al-loading-box {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(233,69,96,0.3);
}

.al-clock-container {
    margin: 0 auto 24px;
    width: 140px; height: 140px;
}

.al-clock-svg { width: 100%; height: 100%; }

.al-loading-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.al-loading-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 20px;
    min-height: 18px;
    transition: all 0.3s;
}

.al-loading-steps {
    text-align: left;
    margin-top: 16px;
}

.al-lstep {
    color: rgba(255,255,255,0.35);
    font-size: 13px;
    padding: 5px 0;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 12px;
    margin-bottom: 4px;
    transition: all 0.5s;
}
.al-lstep.active {
    color: #f5a623;
    border-left-color: #f5a623;
    font-weight: 600;
}
.al-lstep.done {
    color: #4ade80;
    border-left-color: #4ade80;
}
.al-lstep.done::before { content: '✓ '; }

/* ===== MODALS ===== */
.al-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
    overflow-y: auto;
}

.al-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: al-modal-in 0.3s ease;
}

.al-modal-past { max-width: 900px; }

@keyframes al-modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.al-modal-close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px 16px 0 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.al-modal-close:hover { background: #fee2e2; color: #dc2626; }

.al-modal-header-future,
.al-modal-header-past {
    display: flex;
    gap: 16px;
    padding: 28px 28px 0;
    align-items: flex-start;
}
.al-modal-emoji { font-size: 3rem; line-height: 1; }
.al-modal-htitle h2 { margin: 0 0 6px; font-size: 1.3rem; color: var(--loto-primary); }
.al-modal-meta { font-size: 13px; color: #666; }

/* Inline stats */
.al-inline-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 28px;
    background: var(--loto-light);
    margin: 16px 0 0;
}
.al-stat-pill {
    background: #fff;
    border: 1px solid var(--loto-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.al-stat-pill strong { color: var(--loto-accent); }

/* Section title */
.al-section-title {
    padding: 16px 28px 8px;
    margin: 0;
    font-size: 1rem;
    color: var(--loto-secondary);
    border-top: 1px solid var(--loto-border);
}

/* Real result box */
.al-real-box {
    margin: 16px 28px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}
.al-real-label {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.al-real-balls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.al-real-ball {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5a623, #e8920a);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    box-shadow: 0 4px 16px rgba(245,166,35,0.6);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.al-no-real-box {
    margin: 12px 28px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: #92400e;
}

/* Predictions grid */
.al-preds-grid {
    padding: 0 28px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 620px) { .al-preds-grid { grid-template-columns: 1fr; } }

.al-pred-card {
    background: var(--loto-light);
    border: 2px solid var(--loto-border);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.2s;
}
.al-pred-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.al-pred-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.al-pred-method {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--loto-accent);
}
.al-pred-num-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.al-pred-numbers { display: flex; gap: 6px; flex-wrap: wrap; }
.al-pred-ball {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--loto-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    transition: all 0.2s;
}

.al-pred-ball.matched {
    background: linear-gradient(145deg, #16a34a, #15803d) !important;
    box-shadow: 0 2px 8px rgba(22,163,74,0.5);
    transform: scale(1.1);
}

.al-match-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}
.match-0 { background: #f3f4f6; color: #6b7280; }
.match-1, .match-2 { background: #fef3c7; color: #92400e; }
.match-3 { background: #fed7aa; color: #9a3412; }
.match-4 { background: #bbf7d0; color: #14532d; }
.match-5 { background: #86efac; color: #14532d; font-size: 14px; }
.match-6 { background: linear-gradient(135deg,#f5a623,#e94560); color: #fff; font-size: 15px; animation: jackpot-pulse 1s infinite; }

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

/* Match summary */
.al-match-summary {
    margin: 0 28px 20px;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 12px;
    color: #fff;
}
.al-match-summary h4 { margin: 0 0 12px; color: #f5a623; }
.al-match-bars { display: flex; flex-direction: column; gap: 8px; }
.al-match-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.al-match-row-label { width: 80px; color: rgba(255,255,255,0.7); }
.al-match-row-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.al-match-row-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#e94560,#f5a623); transition: width 1s; }
.al-match-row-count { width: 30px; text-align: right; font-weight: 700; color: #f5a623; }

/* Modal disclaimer */
.al-modal-disclaimer {
    padding: 14px 28px 24px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid var(--loto-border);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .al-period-grid { grid-template-columns: repeat(2,1fr); }
    .al-header { flex-direction: column; }
    .al-step-row { gap: 10px; }
    .al-modal-header-future, .al-modal-header-past { padding: 20px 20px 0; }
    .al-section-title { padding: 12px 20px 6px; }
    .al-preds-grid { padding: 0 16px 16px; }
    .al-real-box { margin: 12px 16px; }
}

/* ===== NEW TABS: SESIUNEA CURENTĂ + CUM FUNCȚIONEAZĂ ===== */
.loto649-tab-sesiune {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(16,185,129,0.4);
}
.loto649-tab-sesiune:hover { opacity: 0.9; }

.loto649-tab-help {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(59,130,246,0.4);
}
.loto649-tab-help:hover { opacity: 0.9; }

/* ===== JOACA ONLINE BUTTON ===== */
.joaca-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    text-decoration: none !important;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 16px;
    transition: opacity .2s;
}
.joaca-btn:hover { opacity: 0.85; text-decoration: none !important; }

.joaca-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    transition: opacity .2s;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.joaca-all-btn:hover { opacity: 0.85; text-decoration: none !important; }

/* ===== ROI MODAL CLOSE BUTTON FIX ===== */
.roi-modal-close {
    position: sticky !important;
    top: 0 !important;
    float: right !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 34px !important;
    text-align: center !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ===== RAPOARTE TAB - fix dropdown background ===== */
#tab-rapoarte select,
#tab-rapoarte input[type="date"],
#frontend-period-preset {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* ===== CUM FUNCTIONEAZA HELP TAB ===== */
.help-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.help-section h2 {
    font-size: 1.3rem;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.help-section h3 {
    font-size: 1rem;
    color: #1e293b;
    margin: 20px 0 8px;
    padding-left: 12px;
    border-left: 3px solid #3b82f6;
}
.help-section p, .help-section li {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}
.help-section ul { padding-left: 20px; margin: 8px 0; }
.help-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.help-tip {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    margin: 12px 0;
    font-size: 13px;
    color: #14532d;
}

/* ===== NEW TABS: SESIUNEA CURENTĂ + CUM FUNCȚIONEAZĂ ===== */
.loto649-tab-sesiune {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(16,185,129,0.4);
}
.loto649-tab-sesiune:hover { background: linear-gradient(135deg,#059669,#047857) !important; }
.loto649-tab-sesiune.active { background: linear-gradient(135deg,#047857,#065f46) !important; }

.loto649-tab-help {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(59,130,246,0.4);
}
.loto649-tab-help:hover { background: linear-gradient(135deg,#1d4ed8,#1e40af) !important; }
.loto649-tab-help.active { background: linear-gradient(135deg,#1e40af,#1e3a8a) !important; }

/* ===== MODAL CLOSE BUTTON — X visible ===== */
.roi-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: #ef4444;
    color: #fff !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
}
.roi-modal-close:hover { background: #dc2626; transform: scale(1.1); }

/* ===== JOACA ONLINE BUTTONS ===== */
.joaca-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e94560;
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s;
    margin-left: 8px;
}
.joaca-btn:hover { background: #c0392b !important; color: #fff !important; transform: scale(1.02); }

.joaca-all-btn {
    display: inline-block;
    background: linear-gradient(135deg,#e94560,#c0392b);
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    transition: .2s;
}
.joaca-all-btn:hover { opacity: .9; color: #fff !important; transform: scale(1.01); }

/* ===== FORM ELEMENTS — prevent black background in dark themes ===== */
.loto649-wrap select,
.loto649-wrap input[type="date"],
.loto649-wrap input[type="text"] {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
}

/* =====================================================
   EFEMERIDE / ASTROLOGIC — stiluri noi
   ===================================================== */

/* Buton astrologic în generator */
#btn-generate-astro {
    background: linear-gradient(135deg, #9333ea, #7c3aed) !important;
    color: white !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: .2s !important;
}
#btn-generate-astro:hover {
    opacity: .88;
    transform: translateY(-1px);
}

/* Bilete astrologice — bile violet */
.loto649-ball.astro-ball {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

/* Card Rapoarte — Astrologic */
.rapoarte-card-astro {
    border-color: #c084fc;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

/* Dropdown Backtest Istoric */
#hist-session-type,
#hist-period-range {
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
}
#btn-hist-reload {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: .2s;
}
#btn-hist-reload:hover { background: #1d4ed8; }

/* Progress bar efemeride calcule — violet */
#ephcalc-progress-fill {
    background: linear-gradient(90deg, #9333ea, #c084fc) !important;
}

/* ---- ROI Astrologic — fix text vizibil ---- */
#tab-roi-astrologic .ra-stat-pill,
#tab-roi-astrologic .ra-stat-pill strong,
.ra-stat-pill { color: #0f172a !important; }
.ra-stat-pill strong { color: #e11d48 !important; }

#ra-table tbody tr td,
#ra-tbody tr td {
    color: #0f172a !important;
}
#ra-table thead tr th {
    color: #fff !important;
}

/* Backtest Istoric — ascunde butonul Actualizează dacă rămâne în DOM */
#btn-hist-reload { display: none !important; }
#hist-period-range { display: none !important; }

/* ---- Rapoarte — fix text negru în tabele teste ---- */
#tab-rapoarte .rapoarte-card table td,
#tab-rapoarte .rapoarte-card table th,
#frontend-test-single-result,
#frontend-test-period-result,
#frontend-test-4m-single-result,
#frontend-test-4m-period-result,
#frontend-astro-test-result {
    color: #0f172a !important;
}

#tab-rapoarte .rapoarte-card table tbody tr td {
    color: #0f172a !important;
    background-color: #fff;
}

#tab-rapoarte .rapoarte-card table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* ---- Sesiunea Astrologică — auto layout ---- */
.sa-ticket-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}
.sa-date-label {
    font-size: 11px;
    color: #7c3aed;
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 12px;
}
.joaca-btn-sa {
    display: inline-flex;
    align-items: center;
    background: #7c3aed;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- Backtest Istoric — AJAX tabele text negru ---- */
#hist-ajax-content table td {
    color: #0f172a !important;
}
