.bajam-wrap {
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
}

.bajam-header {
    margin-bottom: 24px;
}

.bajam-page-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.4;
}

.bajam-page-subtitle {
    margin: 0;
    color: #6b7280;
    white-space: pre-line;
}

.bajam-section {
    margin-bottom: 34px;
}

.bajam-section-title {
    margin: 0 0 16px;
    font-size: 20px;
}

.bajam-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bajam-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.bajam-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.bajam-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.badge-open {
    background: #dcfce7;
    color: #166534;
}

.badge-closed {
    background: #fee2e2;
    color: #991b1b;
}

.bajam-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.bajam-team-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bajam-team-flag img,
.bajam-team-flag .bajam-no-flag {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
}

.bajam-team-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.bajam-vs {
    font-size: 18px;
    font-weight: 800;
    color: #94a3b8;
    padding: 0 6px;
}

.bajam-start-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bae6fd;
    color: #0f172a;
    font-weight: 700;
}

.bajam-start-icon {
    font-size: 18px;
    line-height: 1;
}

.bajam-start-text {
    font-size: 14px;
}

.bajam-card-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bajam-prize-box {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
}

.bajam-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.bajam-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.bajam-input-group input[type="number"] {
    width: 100%;
    border: 1px solid #dbe1ea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.bajam-input-group input[type="number"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bajam-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.bajam-submit:hover {
    transform: translateY(-1px);
}

.bajam-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.bajam-form-message {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
    color: #475569;
}

.bajam-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
}

.bajam-alert-success {
    background: #dcfce7;
    color: #166534;
}

.bajam-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.bajam-predicted-score {
    margin-top: 12px;
    font-size: 15px;
    color: #0f172a;
}

.bajam-result-box {
    margin-top: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
}

.bajam-winner-box {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
    color: #166534;
    font-weight: 800;
    text-align: center;
}

.bajam-match-details-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 2px;
}

.bajam-match-details-row-static {
    margin-top: 10px;
}

.bajam-match-detail-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.bajam-match-detail-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.bajam-match-detail-value {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.bajam-empty-state,
.bajam-login-box {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
}

.bajam-login-box a {
    font-weight: 700;
}

.bajam-table-wrapper {
    overflow-x: auto;
}

.bajam-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.bajam-leaderboard-table thead th {
    background: #0f172a;
    color: #fff;
    padding: 14px 12px;
    text-align: right;
    font-size: 14px;
}

.bajam-leaderboard-table tbody td {
    padding: 14px 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #0f172a;
}

.bajam-leaderboard-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

@media (max-width: 900px) {
    .bajam-card-grid {
        grid-template-columns: 1fr;
    }

    .bajam-teams {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bajam-team-box {
        justify-content: center;
    }

    .bajam-vs {
        display: none;
    }

    .bajam-inputs {
        grid-template-columns: 1fr;
    }

    .bajam-match-details-row {
        grid-template-columns: 1fr;
    }
}