/* ─── Table VIP Component (Modern Gold-Red Oriental Theme) ────────────────── */

.table-vip-wrapper {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    transition: all var(--transition-base);
}

.table-vip-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.table-vip {
    margin-bottom: 0;
    font-size: var(--font-size-base);
}

/* Header Columns */
.table-vip thead th {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    text-align: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xs);
    padding: 14px 16px;
    white-space: nowrap;
    border: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

/* Table Cells */
.table-vip tbody td {
    text-align: center;
    vertical-align: middle;
    padding: 14px 16px;
    border-color: var(--color-border-light);
    font-size: var(--font-size-base);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.table-vip tbody tr {
    transition: background-color var(--transition-fast);
}

.table-vip tbody tr:hover {
    background-color: var(--color-border-light);
}

/* Column 1: Date/Day */
.table-vip tbody td:first-child {
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
    white-space: nowrap;
    font-size: var(--font-size-sm);
}

/* Column 2: Predicted Numbers */
.table-vip tbody td:nth-child(2) {
    font-weight: var(--font-weight-extrabold);
    color: var(--color-blue);
    font-size: var(--font-size-lg);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

/* 🌟 Today Row (Newest prediction) - Gold Theme */
.table-vip tbody tr.row-today td {
    background: linear-gradient(95deg, var(--color-accent-light) 0%, #fffdf0 50%, #fffdf0 100%);
    border-top: 1px solid rgba(255, 179, 0, 0.2);
    border-bottom: 1px solid rgba(255, 179, 0, 0.2);
}

.table-vip tbody tr.row-today td:nth-child(2) {
    color: var(--color-primary-dark);
    font-size: var(--font-size-xl);
    text-shadow: 0 1px 2px rgba(183, 28, 28, 0.1);
}

/* Badge for Today's date */
.badge-today-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gradient-gold);
    color: var(--color-dark-surface);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-right: 6px;
    box-shadow: 0 2px 5px rgba(255, 179, 0, 0.3);
    text-transform: uppercase;
}

/* 🟢 Win badge styling */
.badge-win {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-green-light);
    color: var(--color-green);
    border: 1px solid rgba(46, 125, 50, 0.25);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.08);
}

.table-vip tbody td.cell-win {
    background-color: rgba(46, 125, 50, 0.02);
}

/* 🟡 Pending badge styling */
.badge-pending {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
    border: 1px solid rgba(255, 179, 0, 0.3);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.08);
}

.table-vip tbody td.cell-pending {
    background-color: rgba(255, 179, 0, 0.01);
}

/* 🔴 Lose styling */
.table-vip tbody td.cell-lose {
    color: var(--color-text-muted) !important;
    font-size: var(--font-size-sm);
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   🌟 Premium 1-Column Custom UI Layouts
   ───────────────────────────────────────────────────────────────────────────── */

/* 1. Timeline Layout (e.g. Dan De Bat Tu history) */
.timeline-history-wrapper {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.timeline-history {
    position: relative;
    padding-left: 32px;
    margin-bottom: 0;
}

.timeline-history::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 12px;
    bottom: 10px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-md);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted);
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 3px var(--color-border-light);
    z-index: 2;
}

.timeline-dot.dot-win {
    background: var(--color-green);
    box-shadow: 0 0 0 3px var(--color-green-light);
}

.timeline-dot.dot-pending {
    background: var(--color-accent-dark);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.timeline-dot.dot-lose {
    background: var(--color-text-muted);
    box-shadow: 0 0 0 3px var(--color-border-light);
}

.timeline-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.timeline-card:hover {
    border-color: var(--color-border);
    transform: translateX(4px);
    background: var(--color-surface);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.timeline-result {
    font-size: var(--font-size-sm);
}

/* 2. Premium Prediction Cards (e.g. Soi Cau Tong Hop 247) */
.prediction-cards-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.prediction-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.prediction-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.prediction-card__header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    padding: 14px 20px;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

.prediction-card__header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
}

.prediction-card__header-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.prediction-card__header.header-today {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, #b78a00 100%);
}

.prediction-card__body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.prediction-item-box {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.prediction-item-box__title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prediction-item-box__numbers {
    font-size: var(--font-size-xl);
    font-weight: 900;
    color: var(--color-primary-dark);
    letter-spacing: 1px;
}

.prediction-item-box__numbers.blue-text {
    color: var(--color-blue);
}

.prediction-card__footer {
    border-top: 1px solid var(--color-border-light);
    padding: 12px 20px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* 3. Premium Numbers Box (e.g. for long Dan De lists in tables) */
.numbers-box-premium {
    background: var(--color-surface);
    border: 1.5px dashed rgba(229, 57, 53, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    color: var(--color-primary-dark) !important;
    font-weight: 700;
    font-size: var(--font-size-base) !important;
    line-height: 1.7;
    letter-spacing: 0.5px;
    max-width: 100%;
    margin: 4px auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    display: inline-block;
    text-align: center;
    transition: all var(--transition-fast);
}

.numbers-box-premium:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: scale(1.01);
}

.row-today .numbers-box-premium {
    background: #ffffff;
    border-color: rgba(255, 179, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.1), inset 0 1px 2px rgba(255, 179, 0, 0.05);
}

.row-today .numbers-box-premium:hover {
    border-color: var(--color-accent-dark);
    background: #fffdf0;
}


